Hello epvpers!
Im looking for a way to update server name in realtime
I like Sro Stats in vSroMax and i want to make something like this.
I using A101 pck to update server name But it's only update onetime in login progess. Wait a few min, server status goes to check ^^
Hello epvpers!
Im looking for a way to update server name in realtime
I'm not sure what you are asking about "realtime" but this is an example how to change that server name with the player count :
PHP Code:
// packet = the original packet (0xA101)
// newPacket = the new one with your edit
Packet newPacket = new Packet(packet.Opcode, packet.Encrypted,packet.Massive);
while (packet.ReadUInt8() == 1)
{
newPacket.WriteUInt8(1); // while flag
newPacket.WriteUInt8(packet.ReadUInt8()); // farm id
newPacket.WriteAscii(packet.ReadAscii()); // farm name
}
while (packet.ReadUInt8() == 1)
{
newPacket.WriteUInt8(1); // while flag
newPacket.WriteUInt16(packet.ReadUInt16()); // server id
string serverName = packet.ReadAscii();
ushort online = packet.ReadUInt16();
ushort capacity = packet.ReadUInt16();
newPacket.WriteAscii(serverName+" ("+ online + "/"+ capacity + ")"); // server name
newPacket.WriteUInt16(online); // online
newPacket.WriteUInt16(capacity); // capacity
newPacket.WriteUInt8(packet.ReadUInt8()); // is available
newPacket.WriteUInt8(packet.ReadUInt8()); // server -> farm id
}
// Send the edited packet, not the original
this.Send(newPacket); // or whatever you use..
It should work live. Server sends A101 when it's requested, so it will even change without having to restart the client. Whenever you click list, it's requested, and i think it's requested every x seconds as well.
I'm not sure what you are asking about "realtime" but this is an example how to change that server name with the player count :
PHP Code:
// packet = the original packet (0xA101)
// newPacket = the new one with your edit
Packet newPacket = new Packet(packet.Opcode, packet.Encrypted,packet.Massive);
while (packet.ReadUInt8() == 1)
{
newPacket.WriteUInt8(1); // while flag
newPacket.WriteUInt8(packet.ReadUInt8()); // farm id
newPacket.WriteAscii(packet.ReadAscii()); // farm name
}
while (packet.ReadUInt8() == 1)
{
newPacket.WriteUInt8(1); // while flag
newPacket.WriteUInt16(packet.ReadUInt16()); // server id
string serverName = packet.ReadAscii();
ushort online = packet.ReadUInt16();
ushort capacity = packet.ReadUInt16();
newPacket.WriteAscii(serverName+" ("+ online + "/"+ capacity + ")"); // server name
newPacket.WriteUInt16(online); // online
newPacket.WriteUInt16(capacity); // capacity
newPacket.WriteUInt8(packet.ReadUInt8()); // is available
newPacket.WriteUInt8(packet.ReadUInt8()); // server -> farm id
}
// Send the edited packet, not the original
this.Send(newPacket); // or whatever you use..
yes i using this method but not realtime ^^ restart client required
It should work live. Server sends A101 when it's requested, so it will even change without having to restart the client. Whenever you click list, it's requested, and i think it's requested every x seconds as well.
Hmm.. By server, the only option I can see is keeping a reference from that client about his last packet opcode sent and using the ping opcode as refresh, AND maybe a datetime or counter to not overload sending too much "refresh" on every client ping .. Just put this data on website and problem solved, better visualization
Yeah I tried, the name does not update.
Interesting, then you'll manually have to do with a dll. Send your own info packet and change that text by yourself..
FTW Battle Record Update Realtime? 03/09/2019 - SRO Private Server - 0 Replies Hello epvpers!
How to realtime update _SiegeFortressBattleRecord table ?
Thank's!
[24/7] ReaLTiMe/Survival/RPG Server 1.5.2 05/22/2013 - Minecraft Server Advertising - 0 Replies Minecraft Server ReaLTimE
Server-IP: 93.186.205.122
_____________________________________________
[Tool] Realtime server stats retriever (login trick) 10/22/2007 - SRO Hacks, Bots, Cheats & Exploits - 13 Replies This little script shows stats of chosen server(stats=population)
So you can login in few minutes with this tool
It has autologin funcionality too - it can type your login info and then wait for free slots on server and login you automaticaly.
This works for every server - just specifiy it in settings.ini(there is option for your acc info too)
well... loading times are really long...
this script DOES NOT send your id pw anywhere...