LE
pedido

Como Colocar !buypromotion Help Plx

Por leandraodl, 01 de nov. de 2012 em Scripts

promotion
2
772
leandraodlL
01 de novembro de 2012 às 15:23

COMO EU POSSO COLOCAR !buypromotion no servidor, nao acho o npc do server obrigado!

notle2012N
01 de novembro de 2012 às 16:09

criei um aqui rapidinho vai em

data\talkactions\scripts\nomedoarquivo.lua

local t = {2160,1}  -- 2160 e id e 1 e quantidade
function onSay(cid, words, param, channel)
if doPlayerRemoveItem(cid,t[1],t[2]) then
if getPlayerVocation(cid) <= 4 and doPlayerSetVocation(cid, getPlayerVocation(cid)+4) then
doSendMagicEffect(getPlayerPosition(cid), math.random(28,30))
doPlayerSendTextMessage(cid, 22, "Parabens voce recebeu a  Promotion.")
else
doPlayerSendCancel(cid,"Voce ja tem a promotion.")
end
else
doPlayerSendCancel(cid,"sem grana.")
return true
end
end

talkactions.xml

<talkaction words="!buypromotion" event="script" value="nomedoarquivo.lua"/>