Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-04-2001, 09:48 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
Question 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?


__________________

  #2  
Old 07-04-2001, 09:52 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
//#CLIENTSIDE
if (playerenters||timeout) {
if (castlepush1){
show;
play secret.wav;
}
timeout=0.05;
}

__________________

  #3  
Old 07-04-2001, 11:47 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
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 : /
__________________

  #4  
Old 07-05-2001, 06:59 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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;
  #5  
Old 07-05-2001, 07:16 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
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.
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
  #6  
Old 07-06-2001, 03:36 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
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
__________________

  #7  
Old 07-06-2001, 03:55 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
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 >.<
__________________

  #8  
Old 07-10-2001, 11:14 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Question

I though Zoom effects were disabled!
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
  #9  
Old 07-11-2001, 04:59 AM
Guest
Posts: n/a
Re: quick question

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




Don't you need == and not =?
  #10  
Old 07-11-2001, 05:11 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
I think = works but you should use ==
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:47 PM.


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