Natal tá chegando
Comecem a preparar Quests com itens de natal.
script pro Santa Doll
IDs 6512 e 6513
data\actions\scripts\Santa.lua
-- Santa Claus - Fala uma mensagem de Natal (By Conde Sapo) function onUse(cid, item, frompos, item2, topos) rand = math.random(1, 5) if rand == 1 then doPlayerSay(cid, "Jingle bells, jingle bells..." ,16) doSendMagicEffect(cid, frompos, 22) elseif rand == 2 then doPlayerSay(cid, "Ho ho ho!" ,16) elseif rand == 3 then doPlayerSay(cid, "Have you been naughty?",16) elseif rand == 4 then doPlayerSay(cid, "Have you been nice?",16) elseif rand == 5 then doPlayerSay(cid, "Merry Christmas!",16) end return 1 end
Primeiro geramos um número randônico de 1 a 5
rand = math.random(1, 5)
Pra cada resultado desse número , uma mensagem diferente (5 possibilidades)
o randônico 1 tem uma mensagem diferente
if rand == 1 then doPlayerSay(cid, "Jingle bells, jingle bells..." ,16) doSendMagicEffect(cid, frompos, 22)
Vem com MagicEffect (estrelinhas)
Depois edite o arquivo data\actions\actions.xml
Acrescente isto
<action itemid="6512" script="Santa.lua" /> <action itemid="6567" script="Santa.lua" />
Divirtam-se clicando no bonequinho.
Parte dos créditos vai pra
WikiPedia
Sem as frazes que encontrei lá eu não teria conseguido fazer este tuto
Sendo asim :
5% by WikiPedia (Pelas frazes e pela imagem do Papai Noel)
95.5% by Conde Sapo (Por fazer o script)
EXCLUVIVO PARA XTIBIA
Denunciar aqui se encontrar em outro forum