Page 1 of 1

lootgroup / lootindex

Posted: Wed Feb 27, 2008 3:40 pm
by claudior0x
maybe my english dont allow a good explanation... sorry :P

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: Select all

# 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] 

now we can config all lootgroups for each NPC.

Any suggestions about?
Hickstein.

[/b]