Public feed
#928921
Index: src/server/usermanager.cpp===================================================================--- src/server/usermanager.cpp (Revision 1136)+++ src/server/usermanager.cpp (Arbeitskopie)@@ -1408,7 +1408,7 @@ if (!client->IsAlive()) {- psserver->SendSystemError(client->GetClientNum(),"You are dead, you cannot loot now");+ psserver->SendSystemError(client->GetClientNum(),"You are dead, you cannot loot now."); return; } @@ -1418,18 +1418,27 @@ psserver->SendSystemError(clientnum,"You don't have a target selected."); return; }+ + gemNPC *npc = target->GetNPCPtr();+ + if (target->IsAlive() && !npc)+ {+ psserver->SendSystemError(clientnum, "You can't loot a person that is alive.");+ return;+ } - if (target->IsAlive())+ if (target->IsAlive() && npc) {- psserver->SendSystemError(clientnum, "You can't loot person that is alive");+ psserver->SendSystemError(clientnum, "You can't loot a creature that is alive."); return; } ++ // Check target lootable by this client- gemNPC *npc = target->GetNPCPtr(); if (!npc) {- psserver->SendSystemError(clientnum, "You can loot NPCs only");+ psserver->SendSystemError(clientnum, "You can only loot NPCs."); return; }