Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Serverwarp Problems (https://forums.graalonline.com/forums/showthread.php?t=37288)

emortylone 09-04-2002 04:54 AM

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

Torankusu 09-04-2002 05:04 AM

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.

RavenTelvecho 09-04-2002 05:09 AM

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

osrs 09-05-2002 12:18 AM

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



user13-xo 09-05-2002 06:12 AM

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

Falcor 09-05-2002 06:27 AM

just a simple
NPC Code:

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


would work

emortylone 09-06-2002 04:03 AM

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

Loriel 09-06-2002 04:45 AM

.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.

emortylone 09-06-2002 11:32 AM

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

Loriel 09-06-2002 04:02 PM

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?

R0b1n-NPC 09-10-2002 04:25 PM

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 :D

Tyhm 09-10-2002 09:13 PM

There SHOULD be.

emortylone 09-10-2002 10:49 PM

he he, I already figured it out, but thanks though :D There SHOULD be a globalvar though
---Shifter


All times are GMT +2. The time now is 01:34 AM.

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