Joined: 09 Feb 2008 Posts: 6 Location: south of Brazil
Posted: Wed Feb 27, 2008 7:40 pm Post subject: lootgroup / lootindex
maybe my english dont allow a good explanation... sorry
my npcdesc have a new property:
LootIndex <Index>
file: systems/loot/config/lootindex.cfg
the unique problem, the distro 097 use the directory "includes/" in loot package, maybe need be fixed for /include/.
later, i made a update in :death: package -> npcdeath.src
Code:
# new include
include ":loot:lootParser";
#
# update in function core_NpcDeath(...)
#
var template := GetObjProperty(corpse, "npctemplate");
var npc_cfg := NPC_GetNPCConfig(template);
var npc_lootIndex := npc_cfg.LootIndex;[b] // new property from npcdesc.cfg[/b]
Loot_Generate(corpse, npc_lootGroup); [b] // loot package in systems[/b]