Hi guys. I need some help and i dont know how to figure it out. So idea is that i need npc who will sell 1 exact rune ( rune id : 2295 )
So i need npc to sell 1, 10 and 100x of those rune and accept as payment item with id 2688. (2688 item is not considered as money)
(server is ancient xml on yurots engine (7.6))
i have already rune seller who sells runes but for cash, his script look like :
So i need npc to sell 1, 10 and 100x of those rune and accept as payment item with id 2688. (2688 item is not considered as money)
(server is ancient xml on yurots engine (7.6))
i have already rune seller who sells runes but for cash, his script look like :
Lua:
elseif msgcontains(msg, '100 uh') then
buy(cid,2273,100,5000)
elseif msgcontains(msg, '10 uh') then
buy(cid,2273,10,500)
elseif msgcontains(msg, 'uh') then
buy(cid,2273,1,50)