Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 08-16-2004, 03:55 PM   #1 (permalink)
Forum Novice
 
alambik's Avatar
 
Join Date: Apr 2003
Age: 32
Posts: 248
Arrow Changing server dynamicaly

Hi,

I would like to create a gate that redirect a player to another server.
I think I should use directly the 0x8C packet, but I do not know the way to send a packet to a player.

I know there is a "Send" method in the Mobile class, and a "Packet" class, but I don't know how to send such packet according to the documentation of thoses classes.

Does anybody know how to program packet sending ???

Thanx ;-)

Code:
Sent By: Server 0x8C - Server Connect/Redirect (11 bytes) 
Variable Type Start Index Packet/Variable Name 
byte 0 Packet ID (0x8C - Server Connect/Redirect) 
byte[4] 1 Gameserver IP Address 
ushort 5 Gameserver port 
uint 7 Account UID 
Client will send 0x91 (Server Login Request) to the server that is specified in this packet
alambik is offline   Reply With Quote
Old 08-16-2004, 08:24 PM   #2 (permalink)
 
Join Date: Oct 2002
Location: Brasilia / Brazil
Age: 23
Posts: 337
Send a message via ICQ to Rokam Send a message via MSN to Rokam
Default

Quote:
Originally Posted by alambik
Hi,

I would like to create a gate that redirect a player to another server.
I think I should use directly the 0x8C packet, but I do not know the way to send a packet to a player.

I know there is a "Send" method in the Mobile class, and a "Packet" class, but I don't know how to send such packet according to the documentation of thoses classes.

Does anybody know how to program packet sending ???

Thanx ;-)

Code:
Sent By: Server 0x8C - Server Connect/Redirect (11 bytes) 
Variable Type Start Index Packet/Variable Name 
byte 0 Packet ID (0x8C - Server Connect/Redirect) 
byte[4] 1 Gameserver IP Address 
ushort 5 Gameserver port 
uint 7 Account UID 
Client will send 0x91 (Server Login Request) to the server that is specified in this packet
plz, any moderator remove duble posts...

I've already replied this into the Script Support post, but I need some info to help you.
Rokam is offline   Reply With Quote
Old 07-21-2005, 06:54 PM   #3 (permalink)
Forum Novice
 
alambik's Avatar
 
Join Date: Apr 2003
Age: 32
Posts: 248
Default

no good answer anywhere ...

Perhap's something that look like this ?

void RedirectToAnotherServe (NetState state)
{
string _ServerName="The New Server";
int _Percent=100;
TimeZone _TimeZone(0);
IPEndPoint _IP("84.47.144.157:2593");
ServerInfo _NewServer (_ServerName, _Percent, _TimeZone, _IP);
state.Send( new PlayServerAck( _NewServer ));
state.Dispose();
}
alambik is offline   Reply With Quote
Old 07-21-2005, 08:05 PM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

The only way this would be possible, is to change the core.

Hence you have a really big problem if you actually need help doing it.
Phantom is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5