Para o efeito, tenta usar este aqui:
local vocs = {
[1] = {effect = 234},
[2] = {effect = 234},
[3] = {effect = 13}
}
--- Id da vocação, efeito ---
function onThink(cid, interval)
local voc = getPlayerVocation(cid)
if vocs[voc] then
local efeito = vocs[voc].effect
doSendMagicEffect(getCreaturePosition(cid), efeito)
return true
end
local time = -1
addEvent(function(), time*1000)
return true
end







info
Grupo: Artesão
Registrado: 24/10/11
Posts: 133
Reputação: +55
Char no Tibia: ...
Olá pessoal, eu to motando um servidor 8.54 só que eu peguei um script de Efeitos nas vocation aqui mesmo no xtibia, mas tambem estou usando um script de cada vocation com seu outfit. E parece que o script de outfit não ta deixando o de efeitos roda.. ajuda ai
Data/creaturescript/effect.lua
local vocs = {
["Goku SSJ"] = {effect = 234},
["Goku SSJ3"] = {effect = 234},
["Goku SSJ3a"] = {effect = 13}
}
function onThink(cid, interval)
local voc = getPlayerVocationName(cid)
if vocs[voc] then
local efeito = vocs[voc].effect
doSendMagicEffect(getCreaturePosition(cid), efeito)
return true
end
local time = -1
addEvent(function() onRaio(cid) end, time*1000)
return true
end
Agora o Data/creaturescript/looktypes.lua
local outfits = {
[1] = {lookType = 69}, -- o numero 9 é o ID da vocação e 69 é o ID do looktype.
[2] = {lookType = 37},
[3] = {lookType = 18},
[4] = {lookType = 71},
[5] = {lookType = 70},
[11] = {lookType = 30}
}
function onLogin(cid)
local voc_id = getPlayerVocation(cid)
if getPlayerVocation(cid) > 0 then
doSetCreatureOutfit(cid, outfits[voc_id], -1)
end
return TRUE
end
Se alguem poder ajudar :x REP
Editado Dezembro 19 por CrazzyMaster