Graal Forums

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

Gravis2k 07-22-2003 10:01 PM

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

mhermher 07-23-2003 12:04 AM

Re: Help with event script
 
Quote:

Originally posted by Gravis2k
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
OMG I AM SO IDEALISCIT!

Why not just use, if (playerx<10) { warp;
or so

zokemon 07-23-2003 01:09 AM

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

190 07-23-2003 05:54 AM

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

Gravis2k 07-23-2003 07:51 AM

if (playerx<10) { warp;

so with that just make 4 imageless npc's with the diffrent x and y coords?

Kaimetsu 07-23-2003 07:54 AM

No. 'warp' is not a command. You're expected to fill the gaps yourself.

Tseng 07-23-2003 09:36 AM

Quote:

Originally posted by 190
I just got used to adding //#CLIENTSIDE to the top of my scripts =p... hehe

-Eagle

That's all well and good...if you have no plan of doing any serverside scripting whatsoever...

osrs 07-23-2003 06:37 PM

Quote:

Originally posted by 190
Yeah, without //#CLIENTSIDE it wouldn't work, make sure you add it to the top of your script so it works online.

Serverside scripts works online too ;x
I'm 100% sure that you don't know how client-side & server-side work.
So Shh...

Dach 07-23-2003 07:11 PM

Quote:

Originally posted by Gravis2k
if (playerx<10) { warp;

so with that just make 4 imageless npc's with the diffrent x and y coords?

4 npcs?
GACK
*falls over dead*

protagonist 07-23-2003 07:47 PM

Quote:

Originally posted by osrs


Serverside scripts works online too ;x
I'm 100% sure that you don't know how client-side & server-side work.
So Shh...

Uh. Serverside scripts only work online. What are you talking about?

osrs 07-23-2003 07:58 PM

Quote:

Originally posted by protagonist


Uh. Serverside scripts only work online. What are you talking about?

Read his post..
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 =/

protagonist 07-23-2003 08:36 PM

Quote:

Originally posted by osrs


Read his post..
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 =/

I read your post. It makes absolutely no sense.

"Serverside scripts works online too"

Implying that it works offline.

Gravis2k 07-23-2003 09:28 PM

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;
}

TribulationStaff 07-23-2003 09:35 PM

Timeout, dude.

It won't check until something forces it to do so.

I think that was already mentioned.

zokemon 07-24-2003 12:15 AM

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:

Originally posted by osrs


Serverside scripts works online too ;x

I am almost positive he ment that serverside works online also as WELL as clientside meaning clientside isn't the only thing that works online (cause "serverside" which offline is just not haveing //#CLIENTSIDE DOES work offline just not like it does online =P)
[/EDIT]

osrs 07-24-2003 02:35 AM

Quote:

Originally posted by protagonist

I read your post. It makes absolutely no sense.

"Serverside scripts works online too"

Implying that it works offline.

No..geez -_-'
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.