darksun84
Sir Spamalot
Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35
|
RE: Is there a way to implement vendor buy in an enhanced client?
04-07-2017, Nolok
- Fixed: random ranges ( e.g.: {i_dagger 1 i_gold 1} ) sometimes returned a totally random and unexpected value.
If the value was used to create an item, it could either create a random item or not create it at all, without logging any error.
- Fixed: vendors couldn't re-sell the items bought from the players.
- Fixed: with the current User Interface (the blue one, not the orange which is older) of the Enhanced Client, in the buy gump
the paperdoll of the vendor often was missing on the left.
IMPORTANT: with the same UI of the EC the buy gump may not work, because it doesn't show the items in stock.
This occurs with the new UI (blue) and not with the old (orange) because the new one wants the vendor to have
its name inclusive of the title. If the "the" keyword and the following title aren't found, the code of the interface
generates an internal error and halts the execution of the remaining code (which renders the items in the list).
As example: if the vendor name is Greg the items don't show, but if you set the NAME (and not the TITLE property)
to Greg the Butcher ("the" word is mandatory) the items are finally shown.
Since the client retrieves the name with the tooltip data (Cliloc 1042971) the server sends, if you want a workaround
to this requirement, you can leave untouched the NAME property and send a custom name cliloc which contains also the work/trade title:
ADDCLILOC 1042971, <NAME> The <QVAL <ISEMPTY <TITLE>> ? Vendor : <TITLE>>
The change is only on the xperimental version i think
(This post was last modified: 12-20-2018 08:45 PM by darksun84.)
|
|
12-20-2018 08:45 PM |
|
|
midikit
Journeyman
Posts: 59
Likes Given: 9
Likes Received: 0 in 0 posts
Joined: Apr 2016
Reputation: 0
|
RE: Is there a way to implement vendor buy in an enhanced client?
Thanks coruja
Thanks to this, a long standing problem has been resolved.
It seems that a long time ago I removed all 'the' in the title for the NPC @clienttooltip configuration.
This time, I checked the Enhanced client.
I noticed that the 'vendor buy' gump works because of the title or whatever method use to include 'the'.
I am creating 'LocalizedStrings.uop' for language display and some reasons.
It created a cliloc and contained 'the' in its contents.
Also, the 'weblink' command does not work by default, but when modify certain parts of UOSA.exe, also know that the weblink of the modified address works.
(This post was last modified: 12-24-2018 02:18 PM by midikit.)
|
|
12-24-2018 02:16 PM |
|
|