Oi gente eu gostaria de por aquele comando "!aol" no meu server pois meu server veio sem se alguem puder me ajudar eu agradeco.
eu gotaria de preferencia que a pessoa me mandase um tutorial por link
Oi gente eu gostaria de por aquele comando "!aol" no meu server pois meu server veio sem se alguem puder me ajudar eu agradeco.
eu gotaria de preferencia que a pessoa me mandase um tutorial por link
crie um talaction/scripts .lua chamado aol
nele coloque :
function onSay(cid, words, param) if getPlayerItemCount(cid,2160) >=10 then doPlayerAddItem(cid,2173) doPlayerRemoveItem(cid,2160,10) else doPlayerSendCancel(cid,"Você não tem dinheiro suficiente") end end
e no talkactions.xml é só voce colocar esta tag
<talkaction words="!aol" event="script" value="aol.lua"/>
ajudei ?? rep+
Para trocar o valor da aol troque aqui : if getPlayerItemCount(cid,2160) >=10 then
2160 = id de um dinheiro , nao sei ao certo qual é, e o >=10 é a quantidade maior ou igual a 10 é so modificar aí!! AJUDEI?? REP+ POR FAVOR
Veja Meu novo Servidor de Dragon Ball na versao 8.57:http://www.xtibia.com/forum/topic/163190-dragon-ball-server/
Veja meu tutorial de Teleport Talkactions:
http://www.xtibia.com/forum/topic/164905-como-fazer-seu-teleport-talkactions/#entry1084885
Veja meu novo blog , e Acesse:
Ajudei ?? Rep + Por favor
Meta :<X> Reputação 25
< > Reputação 50
< > Reputação 100