Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help (https://forums.graalonline.com/forums/showthread.php?t=7138)

Metal-Slug 07-10-2001 08:05 PM

Help
 
i cant script very well at all, i am making a guild house for my prosporus guild Nitako, i need help scripting an NPC that is like a gate, only Nitako can get in, unless one says open gate, and then any one can get in, also i need somone to help me script something like the dojo in saneterian. also i need...

SkooL 07-10-2001 08:14 PM

NPC Code:

if (created) {
show;
}

if (playertouchsme&&strequals(#G,Nitaku) {
hidelocal;
}
else {showlocal;}


If someone in the guild touchs the door, the door hides, someone isn't, the door shows...

Knightoffrost 07-10-2001 08:33 PM

if(playerenters) {
show
}
if(playertouchsme && strequals(g,Nitako) {
hidelocal;
sleep2;
showlocal;
}
if(playersays(open) && strequals(g,Nitako) {
hide;
sleep2;
show;
}

Just put that in the gate gif

SkooL 07-10-2001 08:56 PM

Quote:

Originally posted by Knightoffrost
if(playerenters) {
show
}
if(playertouchsme && strequals(g,Nitako) {
hidelocal;
sleep2;
showlocal;
}
if(playersays(open) && strequals(g,Nitako) {
hide;
sleep2;
show;
}

Just put that in the gate gif

Errr...you need a space in your sleeps, 'sleep 2' not 'sleep2'.

Knightoffrost 07-10-2001 08:59 PM

oops
 
Use this

if(playerenters) {
show
}
if(playertouchsme && strequals(g,Nitako) {
hidelocal;
sleep 2;
showlocal;
}
if(playersays(open) && strequals(g,Nitako) {
hide;
sleep 2;
show;
}


Bah no matter. there it is..

Metal-Slug 07-10-2001 09:01 PM

i know all that, but i want it to stay open, actually, i can do that

Knightoffrost 07-10-2001 09:26 PM

Thats a very simple script,if your asking then why are you saying you can do it now :rolleyes: :rolleyes: :rolleyes:


All times are GMT +2. The time now is 04:10 PM.

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