Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-04-2002, 04:54 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Serverwarp Problems

I can't seem to get serverwarp to work x.X I tried this:
NPC Code:

if (actionserverside)
{ serverwarp #p(0);}

//#CLIENTSIDE
if (playerchats && startswith(/jumpto,#c))
{ triggeraction 0,0,serverside,[npc name],#e(8,-1,#c);}


it SHOULD work, i tried a half a dozen things. Even made it if weaponfired trigger it to serverwarp Babylon; not working x.X And then I even tried it CLIENTSIDE... no luck =/
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #2  
Old 09-04-2002, 05:04 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
I've never actually gotten serverwarp to work.

Edit.
You're using their g-servers as the warping place, right?
I've tried "newmain" a few times, and that never worked.
Reply With Quote
  #3  
Old 09-04-2002, 05:09 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
i belive its clientside?
NPC Code:

//#CLIENTSIDE
if (playerchats&&startswith(/jumpto,#c)) {
tokenize #c;
serverwarp #t(1);
}




works fine

say "/jumpto newmain"

no need for #e, i belive all gserber names are just one word
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #4  
Old 09-05-2002, 12:18 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
Re: Serverwarp Problems

Quote:
Originally posted by emortylone
I can't seem to get serverwarp to work x.X I tried this:
NPC Code:

if (actionserverside)
{ serverwarp #p(0);}

//#CLIENTSIDE
if (playerchats && startswith(/jumpto,#c))
{ triggeraction 0,0,serverside,[npc name],#e(8,-1,#c);}


it SHOULD work, i tried a half a dozen things. Even made it if weaponfired trigger it to serverwarp Babylon; not working x.X And then I even tried it CLIENTSIDE... no luck =/
---Shifter
NPC Code:


if (playerchats) {
tokenize #c;
if (strequals(#t(0),/warp)){
serverwarp #t(1);
}
}


__________________
"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
  #5  
Old 09-05-2002, 06:12 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Re: Serverwarp Problems

Quote:
Originally posted by emortylone
I can't seem to get serverwarp to work x.X I tried this:
NPC Code:

if (actionserverside)
{ serverwarp #p(0);}

//#CLIENTSIDE
if (playerchats && startswith(/jumpto,#c))
{ triggeraction 0,0,serverside,[npc name],#e(8,-1,#c);}


it SHOULD work, i tried a half a dozen things. Even made it if weaponfired trigger it to serverwarp Babylon; not working x.X And then I even tried it CLIENTSIDE... no luck =/
---Shifter
1. Isnt serverwarp clientside?
2. Babylon servername is babylon not Babylon, dunno if it matters
3. this script is in the weapon -System on Babylon already
Reply With Quote
  #6  
Old 09-05-2002, 06:27 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
just a simple
NPC Code:

//#CLIENTSIDE
if (playerchats && startswith(/jumpto,#c)) serverwarp #e(8,-1,#c);


would work
__________________

subliminal message: 1+1=3
Reply With Quote
  #7  
Old 09-06-2002, 04:03 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
That's VERY odd... I played with it for like 20-30 minutes, and did EXACTLY what you guys are saying?? I think I'll mess w/ it a bit l8er when I get home. Thanx anyways.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #8  
Old 09-06-2002, 04:45 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
.oO(if (created) serverwarp newmain; to be put into the daynight NPC on 2k1...)

Little Challenge: If you could add one NPC to every playerworld, how'd you script it to send all players of every server to, say, Atlantis at the very same moment?
Winner gets his NPC added once I get global RC.
Reply With Quote
  #9  
Old 09-06-2002, 11:32 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOLz Loriel, he he. You're a crazy crazy man You'd have to take the timevars and set for a certain point to warp them. I got it working... slightly. Main wouldn't go to classic for some reason =/
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #10  
Old 09-06-2002, 04:02 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by emortylone
LOLz Loriel, he he. You're a crazy crazy man You'd have to take the timevars and set for a certain point to warp them. I got it working... slightly. Main wouldn't go to classic for some reason =/
---Shifter
I believe, and it was said on G2k1 RC Chat, that timevar is local for each server :/ so you would to do really much calculations there, no?
Reply With Quote
  #11  
Old 09-10-2002, 04:25 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Here is a list of all the servers you can server warp to:
  • newmain = Graal 2001
  • graal2002 = Graal 2002
  • classic = Graal Classic
  • unholy = Unholy Nation
  • npulse = N-Pulse
  • delteria = Delteria
  • babylon = Babylon
  • dd = DoomsDay
  • maloria = Maloria
  • galbadia = Galbadia
  • enigma = Enigma
  • shaded = Shaded Legends
  • atlantis = Atlantis
  • providence = Providence
  • faheria = Faheria
  • frolic = Frolic
  • doragon = Doragon Koden
  • kharlia = Valikorlia

And here is how to use serverwarp:

NPC Code:

NPC Code:

//#CLIENTSIDE
if (playerenters) {
serverwarp newmain;
}





replace newmain with any server on the list above.

::edit::

there should be global.vars
__________________
- R0bin
Reply With Quote
  #12  
Old 09-10-2002, 09:13 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
There SHOULD be.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #13  
Old 09-10-2002, 10:49 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
he he, I already figured it out, but thanks though There SHOULD be a globalvar though
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:14 AM.


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