Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Serverwarp (https://forums.graalonline.com/forums/showthread.php?t=63914)

talkingnoodle 02-04-2006 08:56 PM

Serverwarp
 
I am requesting serverwarp to be a serverside command...for use with getplayer on serverside

Skyld 02-04-2006 09:49 PM

Quote:

Originally Posted by talkingnoodle
I am requesting serverwarp to be a serverside command...for use with getplayer on serverside

There's no point, just set a string or flag on the serverside, and then have the clientside check for that string or flag to be set and serverwarp from there.

Moondeath_2 02-04-2006 09:55 PM

Quote:

Originally Posted by Skyld
There's no point, just set a string or flag on the serverside, and then have the clientside check for that string or flag to be set and serverwarp from there.

Couldn't you juse use this I may be a little off but I'm sure it should work. ^^

PHP Code:

function onActionServerside() 
 {
   
with (findplayer("AccountName")) {
    
player.triggerclient("NPCName","reconnect");
  }
}

  
The NPC Below is the npc you are triggering

// #CLIENTSIDE

function onActionClientside() {
 if (
params[0] == "reconnect") {
  
serverwarp("servername");
  }


Edit: I'd suggest NOT using flags in a way it's useless.

talkingnoodle 02-04-2006 10:04 PM

Quote:

Originally Posted by Skyld
There's no point, just set a string or flag on the serverside, and then have the clientside check for that string or flag to be set and serverwarp from there.

yea i realized that right after i made this thread...

Moondeath_2 02-04-2006 10:05 PM

Please read my edit. I say flags aren't needed, you make me laugh.

Edit: I offered help you acted like a fool, used a bad script and blocked my aim screen name I bid good day to you. :rolleyes:

Ajira 02-05-2006 02:21 AM

Quote:

Originally Posted by Moondeath_2
Couldn't you juse use this I may be a little off but I'm sure it should work. ^^

PHP Code:

function onActionServerside() 
 {
   
with (findplayer("AccountName")) {
    
player.triggerclient("NPCName","reconnect");
  }


Edit: I'd suggest NOT using flags in a way it's useless.

I believe it's triggerclient("gui", "weaponname", "reconnect"); :)

ApothiX 02-05-2006 11:14 AM

Quote:

Originally Posted by Ajira
I believe it's triggerclient("gui", "weaponname", "reconnect"); :)

and I believe triggerclient() doesn't fire the ActionClientside() event, it would be more like:

PHP Code:

function onReconnect() {



Moondeath_2 02-05-2006 11:39 AM

Quote:

Originally Posted by Ajira
I believe it's triggerclient("gui", "weaponname", "reconnect"); :)

Wrong.

(02:09.53 pm) <Chadley> Moondeath: triggerclient("gui","weaponname","action",params)
(02:10.13 pm) <Moondeath> I tested it on my server the other day..
(02:10.17 pm) <Moondeath> It worked fine.. o.o
(02:10.34 pm) <Deek`> !bank rob
(02:10.35 pm) <Twusk> *** BANK ALARM! Deek` fails to bypass bank security.
(02:10.44 pm) <Moondeath> I'll remember that one :x
(02:11.41 pm) <Moondeath> He can't script any better, i assure you of that he worked on my playerworld. I fired him...
(02:11.58 pm) <Chadley> oh that's weird
(02:12.10 pm) <Chadley> triggerclient and triggerserver act different :/
(02:12.26 pm) <Chadley> putting the "gui" in that doesn't affect anything x.x

At least chadley knows. ^^

Quote:

Originally Posted by ApothiX
and I believe triggerclient() doesn't fire the ActionClientside() event, it would be more like:

PHP Code:

function onReconnect() {



Wrong again tried it didn't respond at all. :spam:

Ajira 02-06-2006 12:03 AM

Quote:

Originally Posted by ApothiX
and I believe triggerclient() doesn't fire the ActionClientside() event, it would be more like:

PHP Code:

function onReconnect() {



That's only on 3D servers, I'm afraid :(

ApothiX 02-06-2006 06:09 PM

Quote:

Originally Posted by Moondeath_2
..

Why exactly did you post a completely irrelevant IRC Log? (Posting private logs is against the forum rules.)

Quote:

Originally Posted by Ajira
That's only on 3D servers, I'm afraid :(

Oh, my bad :(


All times are GMT +2. The time now is 09:44 AM.

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