Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Does anyone know.... (https://forums.graalonline.com/forums/showthread.php?t=18571)

FungusAmungus 12-09-2001 08:12 AM

Does anyone know....
 
Does anyone know how o do attachplayertoobj i really need it for a draw bridge i am working on so if you know please reaspond to this.

Sennema 12-09-2001 08:21 AM

you put

NPC Code:

if(playertouchsme){
attachplayertoobj value,value,value,value;
//Can't remember how many values, and dont have Graal on this comp
}
if(playerattached){
crap on this;
}



enjoy

Falcor 12-09-2001 11:30 PM

Yoiu idiot, you probably confused him more then need be!

attachplayertoobj id,type;

you can leave the id as just that if you wanna attach the player to the current npc. The type will always be 1 unless Stefan adds another one (Maybe attaching to players?)

Faheria_GP2 12-09-2001 11:40 PM

mention that playerattached is a flag, not an event, so it needs to be inside an event, like this
NPC Code:

if (event) {
if (playerattached) {
commands();
}
}


maximus_asinus 12-09-2001 11:53 PM

How do I make this attachplayertoobj work with a bridge?I can't seem to figure this out.

Falcor 12-10-2001 12:03 AM

I will say this one more time. If you r a newbie scripter. Do not try to make l33t things. Stick tot he basics and work from there. You are trying to build a skyscrapper when you doint know how to pick up the wood yet.

maximus_asinus 12-10-2001 12:53 AM

lol,I know how to script but I never used this command before.
It was just added to the commands.rtf when graal 2.1 was released.So I didn't know to much about it.

jeff335 12-10-2001 03:39 AM

Falados, this script doesn't seem too tricky...so you don't need to get all uppity, it's not the Graal 2001 systemnpc or something.

jeff335 12-10-2001 03:48 AM

Falados, this script doesn't seem too tricky...so you don't need to get all uppity, it's not the Graal 2001 systemnpc or something. Setshape2 is a simple command, and attachplayertoobj (though tricky) is worth learning, even for noobs


All times are GMT +2. The time now is 11:36 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.