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
Packaged npcdesc.cfg issues...

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

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 286
Location: Myrtle Beach, South Carolina

PostPosted: Tue May 06, 2008 1:26 pm    Post subject: Packaged npcdesc.cfg issues... Reply with quote

Why does it automatically append the package name to the npctemplate of an npc? Can this be removed?

Or is there a really good reason?


Code:

    npc := (Packaged npc.)
    var npcdesc_cfg := ReadConfigFile(":*:npcdesc");
    var npc_entry := npcdesc_cfg[npc.NPCTemplate];


I rest my case, lol.

And yes, I've tried adding the package brackets :pkgname: to the npcdesc entry for the npc and POL still appends the brackets so it winds up double.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1081
Location: Southern Central USA

PostPosted: Thu May 08, 2008 12:41 am    Post subject: Reply with quote

In the WoD scripts there was a function just for stripping the package name from the template name.

I suppose one reason for appending the pkg name might be if several NPCs in different pkgs shared a script with a common name and you wanted to fire that script for any given NPC all you'd have to do is grab the pkg name from the template to fire the appropriate script.

It's annoying when you first start using packaged NPCs. Used to drive me crazy when I started messing with WoD but I kind of like it being that way.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 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