passing overwrites to npc

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
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

passing overwrites to npc

Post by mr bubbles »

Passinig the title_suffix, and title_prefix to the overwrite option in createnpcfromtemplate doesn't work.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib »

WHat is the name with which you are sending these?

title_prefix or titleprefix, etc. Try both and let me know.
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Post by mr bubbles »

I was using' title_prefix'.

Just tried 'titleprefix' and it works perfectly, thanks.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib »

I added this to the notes in corechanges file for next core release. Posting here for FYI also:

Code: Select all

3-30 MuadDib
        Notes : Due to questions involving this, here is a partial list of things passable
                through the override of CreateNPCFromTemplate that use different names:
                Common Properties:
                    TRUEOBJTYPE
                    TRUECOLOR
                    TITLEPREFIX
                    TITLESUFFIX
                    TITLEGUILD
                    TITLERACE
                These should work also from the override you usually use. Noting these
                due to being named differently than what you usually use and see.                    
Locked