mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
items draw rework, npc trade fix
This commit is contained in:
@@ -210,10 +210,10 @@ local function onOpenNpcTrade(items)
|
||||
newItem.name = item[2]
|
||||
newItem.weight = item[3] / 100
|
||||
|
||||
if item[4] >= 0 then
|
||||
if item[4] > 0 then
|
||||
newItem.price = item[4]
|
||||
table.insert(tradeItems[BUY], newItem)
|
||||
elseif item[5] >= 0 then
|
||||
elseif item[5] > 0 then
|
||||
newItem.price = item[5]
|
||||
table.insert(tradeItems[SELL], newItem)
|
||||
else
|
||||
|
Reference in New Issue
Block a user