Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2003, 10:01 PM
Gravis2k Gravis2k is offline
Registered User
Join Date: Jun 2003
Location: AR
Posts: 52
Gravis2k is on a distinguished road
Send a message via ICQ to Gravis2k Send a message via AIM to Gravis2k Send a message via Yahoo to Gravis2k
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
__________________
My first roll on Kingdoms

Last edited by Gravis2k; 07-22-2003 at 10:14 PM..
Reply With Quote
  #2  
Old 07-23-2003, 12:04 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
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
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #3  
Old 07-23-2003, 01:09 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
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
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 07-23-2003, 05:54 AM
190 190 is offline
Registered User
Join Date: Mar 2001
Location: Boston, MA (USA)
Posts: 146
190 is on a distinguished road
Send a message via AIM to 190
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
__________________

-------------------
Current Job : Manager of Vendetta
AIM : FCartman007
Reply With Quote
  #5  
Old 07-23-2003, 07:51 AM
Gravis2k Gravis2k is offline
Registered User
Join Date: Jun 2003
Location: AR
Posts: 52
Gravis2k is on a distinguished road
Send a message via ICQ to Gravis2k Send a message via AIM to Gravis2k Send a message via Yahoo to Gravis2k
if (playerx<10) { warp;

so with that just make 4 imageless npc's with the diffrent x and y coords?
__________________
My first roll on Kingdoms
Reply With Quote
  #6  
Old 07-23-2003, 07:54 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
No. 'warp' is not a command. You're expected to fill the gaps yourself.
__________________
Reply With Quote
  #7  
Old 07-23-2003, 09:36 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
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...
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #8  
Old 07-23-2003, 06:37 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
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...
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #9  
Old 07-23-2003, 07:11 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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*
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #10  
Old 07-23-2003, 07:47 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
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?
Reply With Quote
  #11  
Old 07-23-2003, 07:58 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
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 =/
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #12  
Old 07-23-2003, 08:36 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
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.
Reply With Quote
  #13  
Old 07-23-2003, 09:28 PM
Gravis2k Gravis2k is offline
Registered User
Join Date: Jun 2003
Location: AR
Posts: 52
Gravis2k is on a distinguished road
Send a message via ICQ to Gravis2k Send a message via AIM to Gravis2k Send a message via Yahoo to Gravis2k
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;
}
__________________
My first roll on Kingdoms
Reply With Quote
  #14  
Old 07-23-2003, 09:35 PM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
Timeout, dude.

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

I think that was already mentioned.
Reply With Quote
  #15  
Old 07-24-2003, 12:15 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
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]
__________________
Do it with a DON!
Reply With Quote
  #16  
Old 07-24-2003, 02:35 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
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..^_^
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
Reply


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 07:46 PM.


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