- IguAdministrador
- King Carteira : 75
Reputação : 60
Eu sou : Webmaster
Tópicos : 19
Data de Cadastro : 24/01/2018
Staff Animation
27/1/2018, 21:37
Função: Cria uma animação para staffs com uma frase de sua escolha,e cor.
no caso essa é frase 'staff' de cor branca.
Vamos ao Script !
Em creaturescripts/scripts crie um arquivo:
staffeffect.lua
Dentro do arquivo cole isto:
Em creaturescripts.xml, adicione a tag:
Créditos:
Dwarfer.
no caso essa é frase 'staff' de cor branca.
Vamos ao Script !
Em creaturescripts/scripts crie um arquivo:
staffeffect.lua
Dentro do arquivo cole isto:
- Spoiler:
- local t = {access = 3, -- acesso mínimo para sair o efeito
text = "STAFF", textcolor = COLOR_ORANGE, effect = CONST_ME_FIREWORK_YELLOW, interval = 10}
function onLogin(cid)
if getPlayerAccess(cid) >= t.access then
SendEffect(cid, t.effect, t.text, t.interval, t.textcolor)
end
return true
end
function SendEffect(cid, effect, text, time, color)
if isPlayer(cid) then
doSendMagicEffect(getPlayerPosition(cid), effect)
doSendAnimatedText(getPlayerPosition(cid), text, color)
addEvent(SendEffect, time*1000, cid, effect, text, time, color)
end
return true
end
Em creaturescripts.xml, adicione a tag:
- Código:
<event type="login" name="StaffEffect" event="script" value="staffeffect.lua"/>
Créditos:
Dwarfer.
Permissões neste sub-fórum
Não podes responder a tópicos
|
|