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
Strange things with desc and changing desc.

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

Author Message
phao



Joined: 31 Aug 2007
Posts: 33

PostPosted: Wed Sep 12, 2007 5:31 pm    Post subject: Strange things with desc and changing desc. Reply with quote

when pressed ctrl+alt, UO show a lot of name (i think suposed to be the item desc or player names) and i've made a custom item (0x5806) that has this desc "Trap Making Recipe Book", and when i press ctrl-alt, i got the 'original' name, which is Book of Truth?

see:
http://i4.photobucket.com/albums/y111/Adrielbr/estranho.jpg

is there any way to fix that?


Also..

is there any way to change the desc of a item?
like this recipe book stores scrolls refering to recipes, so i want to make the script of adding recipes, increase a 'recipe-count' so when the player clicks in the book, appear:

'Crafting Recipe Book (#)' where # is the number of recipes in the book, to do that i need to change the desc, and the .desc is r/o so, how can i change the desc?

Author Message
CWO



Joined: 04 Feb 2006
Posts: 677
Location: Chicago, IL USA

PostPosted: Wed Sep 12, 2007 7:40 pm    Post subject: Reply with quote

There is no way to fix Ctrl+Alt. When you press the key combo, the client asks POL for the name of all mobiles in the area which POL returns. The client never asks nor listens to anything about the items in the area, it automatically just lists the default name of the item.

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 500

PostPosted: Wed Sep 12, 2007 10:30 pm    Post subject: Reply with quote

To set the single click name a player will see:
item.name := "xxxxx";

To read that name in a script use:
item.desc


Of course, you can always use tooltips to display item properties: eg
Recipe Count: 10

Author Message
Xadhoom



Joined: 26 May 2006
Posts: 30

PostPosted: Thu Sep 13, 2007 3:35 am    Post subject: Reply with quote

OldnGrey wrote:
item.name := "xxxxx";

Use the function SetName to change the name/desc

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 500

PostPosted: Thu Sep 13, 2007 3:55 am    Post subject: Reply with quote

You can do it as you like. I was merely making a point about desc.

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