From 6edb4c2b37cad1588d7535047408a314fb75f485 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 8 Dec 2014 05:40:38 -0600 Subject: [PATCH] Added "weapon_1" and "weapon_2" to Zone.SetEntityAttribute --- zone/remote_call.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/remote_call.cpp b/zone/remote_call.cpp index 61dea7797..4c64af556 100644 --- a/zone/remote_call.cpp +++ b/zone/remote_call.cpp @@ -329,6 +329,7 @@ void handle_rc_set_entity_attribute(const std::string &method, const std::string if (params[1] == "size"){ ent->ChangeSize(atoi(params[2].c_str())); } if (params[1] == "texture"){ ent->SendIllusionPacket(0, 0xFF, atoi(params[2].c_str()), 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0); } if (params[1] == "gender"){ ent->SendIllusionPacket(0, atoi(params[2].c_str()), 0xFF, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0); } - + if (params[1] == "weapon_1"){ ent->WearChange(7, atoi(params[2].c_str()), 0); } + if (params[1] == "weapon_2"){ ent->WearChange(8, atoi(params[2].c_str()), 0); } } } \ No newline at end of file