lootgroup / lootindex

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.

Moderator: POL Developer

Post Reply
claudior0x
New User
Posts: 6
Joined: Sat Feb 09, 2008 4:12 pm

lootgroup / lootindex

Post 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]
Post Reply