Ir para conteúdo

Featured Replies

Postado

IAE GALERA DO TK.

 

TERIA COMO COLOCAR PRA GANHAR HP E MP NESSES ADDONS QUE ESTAO AQUE ?

SCRIPT:

 

function onLogin(cid)
registerCreatureEvent(cid, "EffectOutLogin")
registerCreatureEvent(cid, "OutfitEffects")
return 
doCreatureChangeOutfit(cid,{lookType = getCreatureOutfit(cid).lookType, lookHead =  getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons})
end
local events = {}
function onOutfit(cid, old, current)


-------------------------------------------- CONFIGURE ABAIXO------------------------------------------
local effect = {
[149] = 66,
[145] = 66,
[264] = 36,
[253] = 36,
[252] = 41,
[251] = 41, 
[229] = 32,
[229] = 32         --para adicionar mais outfits e eventos apenas coloque uma virgula depois do 4 e siga o padrão.
}
local tempo = 300 --tempo entre 1 efeito e outro em milisegundos
-------------------------------------------FIM DA CONFIGURAÇÃO ---------------------------------------
local o,c= effect[old.lookType],effect[current.lookType]
if getPlayerAccess(cid) > 2 then return true
elseif (not o or not c or o) then stopEvent(events[getPlayerGUID(cid)]) end
if c then
function WalkEffect(cid, c, pos)
if not isCreature(cid) then return LUA_ERROR end
if c then frompos = getThingPos(cid)
doSendMagicEffect(frompos, c)
events[getPlayerGUID(cid)] = addEvent(WalkEffect, tempo, cid, c, frompos)
end return true end
WalkEffect(cid, c, {x=0, y=0, z=0}) end
return true
end

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.1k
  • Posts 512.4k

Informação Importante

Confirmação de Termo