![]() |
Help with event script
Im trying to make a sumo event and i thought it would be simple as putting warps around the island your supposed to stay on but it doesnt work if your hit into it so i tried writing something for it and that doesnt work...i have tried 2 or 3 thins like onwater or onmap commands and i cant figure out why it doesnt work any advice would be greatly appreciated
|
Re: Help with event script
Quote:
Why not just use, if (playerx<10) { warp; or so |
probly needs a timeout or something as just haveing onwater will not call that script...put a if (created || timeout) timeout=0.05; somewhere in there MAKE SURE IT IS UNDER A //#CLIENTSIDE
|
Yeah, without //#CLIENTSIDE it wouldn't work, make sure you add it to the top of your script so it works online.
I just got used to adding //#CLIENTSIDE to the top of my scripts =p... hehe -Eagle |
if (playerx<10) { warp;
so with that just make 4 imageless npc's with the diffrent x and y coords? |
No. 'warp' is not a command. You're expected to fill the gaps yourself.
|
Quote:
|
Quote:
I'm 100% sure that you don't know how client-side & server-side work. So Shh... |
Quote:
GACK *falls over dead* |
Quote:
|
Quote:
He said "make sure you add it to the top of your script so it works online",meaning that serverside scripts dont work online. Try to read the posts =/ |
Quote:
"Serverside scripts works online too" Implying that it works offline. |
ok ive taken your advice and wrote a npc but still doesnt go for me.... it all looks like it should work but it doesnt if some1 could point out what i did wrong plz tell me
// NPC made by Gravis //#CLIENTSIDE if (playerx>40) { setlevel2 zetonevent1.nw,32,50; } if (playerx<25) { setlevel2 zetonevent1.nw,32,50; } if (playery>36) { setlevel2 zetonevent1.nw,32,50; } if (playery<21) { setlevel2 zetonevent1.nw,32,50; } |
Timeout, dude.
It won't check until something forces it to do so. I think that was already mentioned. |
yes i did mention that -_- but also setlevel2 dont work clientside so u need a triggeraction since it is not a weapon do sometin like if (playerx>blahblah) triggeraction x,y,warp,params;
make sure u have in the clientside if (created) setshape 1,1,1; u might not need that but i am pretty sure u do (as i have not yet made npcs that are hidden and use triggeraction yet as i have no need for them) then above the //#CLIENTSIDE make it have if (actionwarp) setlevel2 blahblah.blah,blah,blah; =) hope my blahs help u heh [EDIT] Quote:
[/EDIT] |
Quote:
So i understood it wrong..^_^ |
| All times are GMT +2. The time now is 07:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.