mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 15:48:22 +00:00
Shared task service
This commit is contained in:
+11
-7
@@ -2831,14 +2831,18 @@ void command_spawn(Client *c, const Seperator *sep)
|
||||
|
||||
void command_test(Client *c, const Seperator *sep)
|
||||
{
|
||||
c->Message(15, "Triggering test command");
|
||||
EQ::Net::DynamicPacket p;
|
||||
p.PutCString(0, "TestPacket");
|
||||
worldserver.RouteMessage("Tasks", 1234, p);
|
||||
|
||||
if (sep->arg[1]) {
|
||||
c->SetPrimaryWeaponOrnamentation(atoi(sep->arg[1]));
|
||||
}
|
||||
if (sep->arg[2]) {
|
||||
c->SetSecondaryWeaponOrnamentation(atoi(sep->arg[2]));
|
||||
}
|
||||
//c->Message(15, "Triggering test command");
|
||||
//
|
||||
//if (sep->arg[1]) {
|
||||
// c->SetPrimaryWeaponOrnamentation(atoi(sep->arg[1]));
|
||||
//}
|
||||
//if (sep->arg[2]) {
|
||||
// c->SetSecondaryWeaponOrnamentation(atoi(sep->arg[2]));
|
||||
//}
|
||||
}
|
||||
|
||||
void command_texture(Client *c, const Seperator *sep)
|
||||
|
||||
@@ -118,6 +118,13 @@ uint16 WorldServer::GetPort() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void WorldServer::RouteMessage(const std::string &filter, int type, const EQ::Net::Packet &p)
|
||||
{
|
||||
if (m_connection) {
|
||||
m_connection->RouteMessage(filter, type, p);
|
||||
}
|
||||
}
|
||||
|
||||
void WorldServer::SetZoneData(uint32 iZoneID, uint32 iInstanceID) {
|
||||
auto pack = new ServerPacket(ServerOP_SetZone, sizeof(SetZone_Struct));
|
||||
SetZone_Struct* szs = (SetZone_Struct*)pack->pBuffer;
|
||||
|
||||
@@ -35,6 +35,7 @@ public:
|
||||
void SendPacket(ServerPacket* pack);
|
||||
std::string GetIP() const;
|
||||
uint16 GetPort() const;
|
||||
void RouteMessage(const std::string &filter, int type, const EQ::Net::Packet& p);
|
||||
|
||||
void HandleMessage(uint16 opcode, const EQ::Net::Packet &p);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user