|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
Join Date: Apr 2003
Age: 32
Posts: 248
|
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 |
|
|
|
|
|
#2 (permalink) | |
|
Quote:
I've already replied this into the Script Support post, but I need some info to help you. |
||
|
|
|
|
|
#3 (permalink) |
|
Forum Novice
Join Date: Apr 2003
Age: 32
Posts: 248
|
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(); } |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|