• 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!

Coin Problem

Thixz

New Member
Joined
Jun 13, 2009
Messages
65
Reaction score
0
Hey guys i will put a seller of item vip im my ot server but i dont know how to the npc sell the item for vip coins how can i change the gold coin for the vip coin?

thanks
 
Hmm i don't know much bout NPCs xD but i could post u a Talkaction which works like that
because many talkactions arent so weird than many npcs xd
 
Look i found this one


elseif msgcontains(msg, 'slayer medal') then
selfSay('Voce tem os 50 Slayer Coins para comprar 1 Slayer Medal?')
talk_state = 14
talk_start = os.clock()
elseif talk_state == 14 and msgcontains(msg, 'yes') then
if getPlayerItemCount(cid,2157) >= 50 then
if doPlayerRemoveItem(cid,2157,50) then
selfSay('Parabens! Voce adquiriu um item Vip!')
doPlayerAddItem(cid,8979,1)
end
else
selfSay('Desculpe, voce nao tem os itens necessarios!')
end


how can i change for he sell more items?


Sureee guy you can post it will be helpfull for me
 
Well sorry that i cant help u with the npc
but heres the talkaction:
Code:
function onSay (cid, words, param)
if doPlayerRemoveItem (cid, 2157,50) == TRUE then
    doPlayerAddItem(cid,8979,1) 
        doSendMagicEffect(getPlayerPosition(cid),12) 
    doPlayerSendTextMessage(cid,22,"You've bought an Amulet of Loss!")  
    else 
    doPlayerSendCancel(cid,"You don't have enough money.")
    doSendMagicEffect(getPlayerPosition(cid),2)
    end
    return true
    end
just make more of them and call them for example
!buysword
!buyclub
and so on :p will be better than many npcs
 
Sure thank you so much it will be good for other function on my server
rep+ you

but can anyone make the npc haha'?
 
Back
Top