PenUltima Online

It is currently Sat Sep 06, 2008 1:08 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Strange things with desc and changing desc.
PostPosted: Wed Sep 12, 2007 1:31 pm 
Offline

Joined: Fri Aug 31, 2007 2:25 pm
Posts: 58
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/A ... tranho.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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 3:40 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 748
Location: Chicago, IL USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 6:30 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 547
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 11:35 pm 
Offline

Joined: Fri May 26, 2006 12:53 am
Posts: 30
OldnGrey wrote:
item.name := "xxxxx";

Use the function SetName to change the name/desc

_________________
Scripter on Faerun's Legend
www.faerunslegends.it


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 11:55 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 547
You can do it as you like. I was merely making a point about desc.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl