Merchants
Moderator: Team Members
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Hey John, if you get a second could you put this on your server and see if you have any problems getting it working? It is not 100% done yet as the buybuck items are listing correctly, but for whatever reason the client doesnt send anything when you click buy. Please let me know if you have any problems.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
I can actually buy just fine. I had to change the command_text back to "frommerchant" though, from "Buy from merchant". Not sure why it should care what the display text is, but at least it is working.
There is a little visual oddity though with the merchant list: Also note, the Buy Stack does seem to work, but the display in player inventory doesn't seem to show (10), if it is supposed to. I cannot remember. But when I Sell Stack, it shows the quantity fine.
There is a little visual oddity though with the merchant list: Also note, the Buy Stack does seem to work, but the display in player inventory doesn't seem to show (10), if it is supposed to. I cannot remember. But when I Sell Stack, it shows the quantity fine.
You do not have the required permissions to view the files attached to this post.
Last edited by John Adams on Sat Sep 20, 2008 6:01 pm, edited 1 time in total.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Yah these are the old items with 1/2 the data in place, so I am not worried. I changed the qty of items sold, and that little * didn't change. I thought maybe it was supposed to show qty in stock, but I guess not.
PS: I thought by your statement you meant that the client (in general) sent nothing when you clicked Buy hah. but in re-reading, you meant just the buy-back tab
PS: I thought by your statement you meant that the client (in general) sent nothing when you clicked Buy hah. but in re-reading, you meant just the buy-back tab
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
OK, I am uploading a new version. This fixes all of the merchant issues that I know about. BTW the * meant that the item was stackable. I have since added a field in the items table that allows you to specify which items are stackable and how high. Buyback should work properly. If you find any errors at all please let me know. It should work perfectly now. 
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
There are a few things that aren't exactly like live and I logged on there to verify my findings with some screen shots. We basically have two scenarios, merchants and brokers and I'm not sure if you've even taken into account brokers yet but I'll post it anyway for future reference.

So it turns if an item has an asterix, then that means it is stackable. If an item does not have an asterix, then it is not stackable. This is shown in screen shots 1, 2, and 3.
If an item is indeed stackable, then all three buttons will be present. The "Buy x (stack)" button shows the MAX stack size for that item. So in screen shot one, the max number of dough that can be stacked is 200 (harvestables are like this now). In screen shot 2, the max number of dried bread that can be stacked is 20.
In screen shot 3, a torch is not stackable showing this by no asterix and the "Buy x (stack)" and "Buy Quantity" buttons are not shown.
Remember that merchants have unlimited number of supplies meaning they cannot run out of items being sold. Now there is a time when the asterix can be a number.

Here we have the broker window. The number where the asterix would normally be shows the amount of that item the player is selling. So Klubbernight is selling 400 lion meat and you cannot buy more than 400 from him.

So it turns if an item has an asterix, then that means it is stackable. If an item does not have an asterix, then it is not stackable. This is shown in screen shots 1, 2, and 3.
If an item is indeed stackable, then all three buttons will be present. The "Buy x (stack)" button shows the MAX stack size for that item. So in screen shot one, the max number of dough that can be stacked is 200 (harvestables are like this now). In screen shot 2, the max number of dried bread that can be stacked is 20.
In screen shot 3, a torch is not stackable showing this by no asterix and the "Buy x (stack)" and "Buy Quantity" buttons are not shown.
Remember that merchants have unlimited number of supplies meaning they cannot run out of items being sold. Now there is a time when the asterix can be a number.

Here we have the broker window. The number where the asterix would normally be shows the amount of that item the player is selling. So Klubbernight is selling 400 lion meat and you cannot buy more than 400 from him.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Yah, I havent messed with brokers yet. However, stackable items already work. Change the stack_count field in the items table to the max stack size for that item and it will enable the other 2 buttons. There might be certain cases where you want the NPC to run out of an item and the Emu allows this, however if you leave the quantity in the merchants table the default of 65535 they will never run out.Scatman wrote: So it turns if an item has an asterix, then that means it is stackable. If an item does not have an asterix, then it is not stackable. This is shown in screen shots 1, 2, and 3.
If an item is indeed stackable, then all three buttons will be present. The "Buy x (stack)" button shows the MAX stack size for that item. So in screen shot one, the max number of dough that can be stacked is 200 (harvestables are like this now). In screen shot 2, the max number of dried bread that can be stacked is 20.
In screen shot 3, a torch is not stackable showing this by no asterix and the "Buy x (stack)" and "Buy Quantity" buttons are not shown.
Remember that merchants have unlimited number of supplies meaning they cannot run out of items being sold. Now there is a time when the asterix can be a number.
In short, the above problems are only configuration items and not actual problems. The only thing I need to fix is like Zcoretri mentioned about the stack size limited by existing items. I'm not sure about the inventory window opening though.
Who is online
Users browsing this forum: No registered users and 0 guests