Packaged npcdesc.cfg issues...

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.

Moderator: POL Developer

Locked
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am
Location: Myrtle Beach, South Carolina
Contact:

Packaged npcdesc.cfg issues...

Post by MontuZ » Tue May 06, 2008 9:26 am

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

    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.

Yukiko
Distro Developer
Posts: 2522
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Post by Yukiko » Wed May 07, 2008 8:41 pm

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.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Locked