Shared task service

This commit is contained in:
KimLS
2019-06-09 18:39:32 -07:00
parent c1484a698c
commit b3a3d9bec5
23 changed files with 338 additions and 54 deletions
+11 -7
View File
@@ -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)
+7
View File
@@ -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;
+1
View File
@@ -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);