• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Npc script

tatara

New Member
Joined
Jan 1, 2023
Messages
36
Reaction score
3
GitHub
Tatara
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 :

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)
 
Back
Top