iw2d / kinoko

mushroom game server emulator for v95
16 stars 19 forks source link

bug npc shop #24

Open leevccc opened 2 hours ago

leevccc commented 2 hours ago

ShopDialog.java

in case Buy

if (!im.canAddItem(itemId, count)) {

and

final Item boughtItem = ii.createItem(user.getNextItemSn(), rechargeable ? ii.getSlotMax() : count);

count should be replace of quantity

int quantity = count * shopItem.getQuantity();

leevccc commented 2 hours ago

for example

set a item sell x2000 for 1 mesos

player buy 1 (count)

he cose 1mesos, but get only 1 (count), actually, he should get 1 x 2000