Hi, im using this in my cavebot as action for buyin mp, but it doesnt work, bot just standing with open trade and do nothing, any help?
as i suppose the IF.. is not workinh, gotta same problem with talking to npc but fix was easy, here i dont know how, any ideas?
local HP_TO_BUY = positive(HP_AMOUNT-itemcount(HP))
local MP_TO_BUY = positive(MP_AMOUNT-itemcount(MP))
if Client.isTradeOpened() then
if HP_AMOUNT > 0 and itemcount(HP) < HP_AMOUNT then
if MP_AMOUNT > 0 and itemcount(MP) < MP_AMOUNT then