mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 15:57:58 +00:00
[Feature] Add "Keeps Sold Items" Flag to NPCs (#2671)
# Perl - Add `$npc->GetKeepsSoldItems()`. - Add `$npc->SetKeepsSoldItems(keeps_sold_items)`. # Lua - Add `npc:GetKeepsSoldItems()`. - Add `npc:SetKeepsSoldItems(keeps_sold_items)`. # Notes - Allows operators to keep specific NPCs from keeping items sold to them. - Keeps NPCs from being cluttered with stuff like Cloth Caps, Bone Chips, etc.
This commit is contained in:
@@ -8,7 +8,7 @@ void command_modifynpcstat(Client *c, const Seperator *sep)
|
||||
ListModifyNPCStatMap(c);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!c->GetTarget() || !c->GetTarget()->IsNPC()) {
|
||||
c->Message(Chat::White, "You must target an NPC to use this command.");
|
||||
return;
|
||||
@@ -76,6 +76,7 @@ std::map<std::string, std::string> GetModifyNPCStatMap()
|
||||
{ "hp_regen_per_second", "HP Regen Per Second" },
|
||||
{ "int", "Intelligence" },
|
||||
{ "_int", "Intelligence" },
|
||||
{ "keeps_sold_items", "Keeps Sold Items" },
|
||||
{ "level", "Level" },
|
||||
{ "loottable_id", "Loottable ID" },
|
||||
{ "mana_regen", "Mana Regen" },
|
||||
|
||||
Reference in New Issue
Block a user