Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   quick question (https://forums.graalonline.com/forums/showthread.php?t=6517)

Bravo_LAT-Admin 07-04-2001 09:48 PM

quick question
 
ok first of all in one npc i have this script

//#CLIENTSIDE
if (!castlepush1) {canbepushed;canbepulled}
if (castlepush1) {cannotbepushed;cannotbepulled;
}
if (x=33&&y=25) {set castlepush1;}


then in another i have this
//#CLIENTSIDE
if (castlepush1){show;
play secret.wav;
}
if (playertouchsme) {set starkey;
say 0;
hidelocal;
}

ok basically the second npc is suppose to appear after the first one is pushed to 33,35 but heres the thing. i found while testing it that after i pushed it to the right spot the item didn't appear i had to go up and touch the first npc again for the second to appear. How can i fix this?



grim_squeaker_x 07-04-2001 09:52 PM

NPC Code:
//#CLIENTSIDE
if (playerenters||timeout) {
if (castlepush1){
show;
play secret.wav;
}
timeout=0.05;
}


Bravo_LAT-Admin 07-04-2001 11:47 PM

hmm what about this
 
ty thats been buging me. hmm what about this one?

if (!pikazsaysyes) {setlevel2 30,30,levelname.graal}

even when i have the flag set it warps me out : /

Admins 07-05-2001 06:59 PM

No the x/y position must be checked in
a timeout. You must know that the
script is normally only called when there
happens something, e.g. you touch the npc.

And its setlevel levelnames,x,y;

toad1413 07-05-2001 07:16 PM

Quote:

Originally posted by Stefan
And its setlevel levelnames,x,y;
setlevel2 actually. setlevel has just levelname and it puts you on the x,y you were at in the last level remember.

Bravo_LAT-Admin 07-06-2001 03:36 AM

hmmm ok i think i get it now thanx. and on the seocnd one that was a typo thats what i get for typing up a question real quick 0.o. thanx : D

Bravo_LAT-Admin 07-06-2001 03:55 AM

yet another
 
the flag thign suddenly decided to work today *shrug* anyway for zoom efect. Is this simply all you need for it

Setzoomeffect 3;

if i do that its suppose to zoom in right? well i can't get it to >.<

SaijinGohan 07-10-2001 11:14 PM

I though Zoom effects were disabled!:confused:

07-11-2001 04:59 AM

Re: quick question
 
NPC Code:
if (x=33&&y=25) 




Don't you need == and not =?

Slaktmaster 07-11-2001 05:11 AM

I think = works but you should use ==


All times are GMT +2. The time now is 10:29 AM.

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