Page 1 of 2
PC vendors: No Price displayed.
Posted: Mon Apr 10, 2006 12:45 am
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!)
Posted: Mon Apr 10, 2006 12:55 am
by Grimson
For now just open the normal buy gump via "vendor buy" or the tool-tip option.
Posted: Mon Apr 10, 2006 1:50 am
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.

Posted: Mon Apr 10, 2006 2:00 am
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.
Posted: Mon Apr 10, 2006 7:04 am
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.
Posted: Mon Apr 10, 2006 12:14 pm
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.
Posted: Mon Apr 10, 2006 5:47 pm
by giwo
Good, it shouldn't work, the buy gump is only for normal vendors, not player vendors.

Posted: Mon Apr 10, 2006 7:14 pm
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.
Posted: Mon Apr 10, 2006 7:26 pm
by Grimson
giwo wrote:Good, it shouldn't work, the buy gump is only for normal vendors, not player vendors.

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.
Posted: Mon Apr 10, 2006 9:03 pm
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.
Posted: Mon Apr 10, 2006 9:34 pm
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.
Items and their description/price then comes up like this when you hover over them:
If hovering over a container, the following shows up:
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

Posted: Mon Apr 10, 2006 9:37 pm
by Grimson
Ok, that's something I can work with

.
Posted: Mon Apr 10, 2006 10:17 pm
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...
Posted: Mon Apr 10, 2006 10:27 pm
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.
Posted: Thu Jun 01, 2006 1:24 am
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!!
Posted: Sun Jun 04, 2006 11:18 am
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.
Posted: Mon Jun 05, 2006 1:54 am
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!
Posted: Thu Jun 22, 2006 8:43 pm
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.
Posted: Fri Jun 23, 2006 2:06 am
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.
Posted: Fri Jun 23, 2006 7:15 am
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?