[FIXED] PC vendors: No Price displayed.

Here we stuff all the bugs we've managed to squash/squish/squelch.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

PC vendors: No Price displayed.

Post by stranf »

Not sure if this is a bug, of if I just don't know how to do it:

I created a few PC vendors using the UOx3 guide. When I place an object in the pack it asks for a price and description.

(the description dosen't seem to do anything btw.)

The PC can then buy the object (the correct amount of money is subtracted),

but i fyou say "vendor price"-double click or any other method to display the cost you are never told.

So my PCs now are buying things blind. (This can also be an exploit on dishonest shards......just set that sword to 2000 gp, and if the player has that amount in the pack, it's gone!)
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

For now just open the normal buy gump via "vendor buy" or the tool-tip option.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Wow. Never thought of that. You can purchase items from PC vendors using the "vendor buy" gump?

I'll have to give it a try.

I've used "open backpack" too see what they have, but haven't used the vendor buy. :wink:
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

stranf wrote:Wow. Never thought of that. You can purchase items from PC vendors using the "vendor buy" gump?

I'll have to give it a try.
Yes, that should work. PC vendors are just normal vendors that are owned by a player.

Edit:
This doesn't seem to work, the item isn't put into the correct place. I'll see if I can fix it.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

No, PC vendors are not normal vendors

Normal vendors use buypack and sellpack, PC vendors can't even buy items. Moreover all items in a PC vendor are placed in its pack, not its' sellpack, which is why vendor buy won't work.
Scott
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

giwo wrote:Moreover all items in a PC vendor are placed in its pack, not its' sellpack, which is why vendor buy won't work.
This is why I tryed to let BuyShop() send the contents of the pack when the vendor is a player vendor, but for some reason it doesn't work.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Good, it shouldn't work, the buy gump is only for normal vendors, not player vendors. :P
Scott
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Hmm...

So it there no way to view the price? Apperently it sets correctly, all we need to do is find away for the vendor to "say" the variable.
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

giwo wrote:Good, it shouldn't work, the buy gump is only for normal vendors, not player vendors. :P
Then we should remove the shopkeeper tag from the player vendors ;).

@Stranf
How is the price beeing displayed on OSI servers?

It shouldn't be to hard to add it to the Tooltips.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Actually I have no idea. When I was on OSI, I never had enough money to buy anything. :).

IRC, it appeared as a tooltip. Like:

"Black Pearl: 1000
Cost: 1000"



Not quite sure though. Whether or not the NPC can ID it via a target curser, or the tooltip either way is fine with me.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Just went online on Europa and did some research ;)

On the official shards you can either double-click the NPC to open the backpack with the goods for sale, or open the paperdoll through the context-menu - where the owner can play "dress up the paperdoll" with his vendor.
Image

Items and their description/price then comes up like this when you hover over them:
Image

If hovering over a container, the following shows up:
Image

If single-clicking on an item, you get the [Buy] context menu. You'll also get that for containers, but if they're not for sale - you won't be allowed to buy them =P
Image
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

Ok, that's something I can work with :).
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks Grimson!

Hey Xu, is inflation that bad on OSI?

A fruit basket for nearly 20K? I can't believe that. I think I bought my first boat for 3500 or something to that effect. I begged around all the banks for nearly every penny of it. :) Good times back in '97...
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Looks like it, stranf =)

I am totally out of the loop where item-prices on the official shards are concerned, I still have my previous "dex-monkey" set of chainmail/plate armor that I bought years ago =) Haven't bought anything from player vendors in YEARS. heh.
-= Ho Eyo He Hum =-
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

I know Grimson has been sick for the past couple of weeks,

(hope you're feeling better).

Just wanting to bump this thread to see if any work is currently in the works to get vendor prices displayed. I logged onto 3.6c expirimental and it hasn't been implemented yet.

As always, thanks and good work!!
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

I know Grimson has been sick for the past couple of weeks,

(hope you're feeling better).
I'm finally getting back to normal, thanks.
Just wanting to bump this thread to see if any work is currently in the works to get vendor prices displayed. I logged onto 3.6c expirimental and it hasn't been implemented yet.

As always, thanks and good work!!
I'll try to find the time for this in the next few days.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks. But if you don't have time, or would rather work another more interesting part of UO I found a simple fix.

Using one of the book icons from the add menu, I usually set it's name to "Ginseing, 1000 GP" and then put the book int he pack

I tell the vendor the price of the book is 3000000 gold (so no PC will buy it), and then when you scroll over the book it will tell you the price of the item in the pack.

This seems to have worked so far, and I"m fairly satisified with this pseudo-fix for now.

But thanks again!
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

It took quite long, but I finally found the time to fix this. The price and the description are now within the tooltip of the items. A new CVS version is availabe at the usual thread.

I couldn't add the [Buy] menu as I didn't found a viewer/editor for the intloc06 file. So I have no idea what text ID I have to use.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Using latest cvs version (0.98-3.6e with Grimson's fixes for price/description in tooltip), the addition of new items to the player vendor stops working after restarting the server. He will still respond to commands, but will not ask for price or description when placing an item inside the container.
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

Using latest cvs version (0.98-3.6e with Grimson's fixes for price/description in tooltip), the addition of new items to the player vendor stops working after restarting the server. He will still respond to commands, but will not ask for price or description when placing an item inside the container.
Hmmm, it does work here. How does he respond to the "status" and "gold" commands? Can you give me a way to reproduce this?
Post Reply