PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
lootgroup / lootindex

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097
Display posts from previous:   

Author Message
claudior0x



Joined: 09 Feb 2008
Posts: 6
Location: south of Brazil

PostPosted: Wed Feb 27, 2008 7:40 pm    Post subject: lootgroup / lootindex Reply with quote

maybe my english dont allow a good explanation... sorry Razz

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]



now we can config all lootgroups for each NPC.

Any suggestions about?
Hickstein.

[/b]

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty