mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
fix npctrade buy with bps and ignorecapacity
This commit is contained in:
@@ -391,7 +391,7 @@ end
|
|||||||
|
|
||||||
function NPCTrade.onTradeClick()
|
function NPCTrade.onTradeClick()
|
||||||
if getCurrentTradeType() == BUY then
|
if getCurrentTradeType() == BUY then
|
||||||
g_game.buyItem(selectedItem.ptr, quantityScroll:getValue(), buyWithBackpack:isChecked(), ignoreCapacity:isChecked())
|
g_game.buyItem(selectedItem.ptr, quantityScroll:getValue(), ignoreCapacity:isChecked(), buyWithBackpack:isChecked())
|
||||||
else
|
else
|
||||||
g_game.sellItem(selectedItem.ptr, quantityScroll:getValue(), ignoreEquipped:isChecked())
|
g_game.sellItem(selectedItem.ptr, quantityScroll:getValue(), ignoreEquipped:isChecked())
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user