Ir para conteúdo

Posts Recomendados

Bom Pessoal to com esse script de transform:

 

  Mostrar conteúdo oculto

Porém esse script transforma mais quando player desloga a outfit volta,Alguem pode me ajudar?
Link para o comentário
https://xtibia.com/forum/topic/228496-spell/
Compartilhar em outros sites


 

function onCastSpell(cid, var)

local config = {

[398] = {level = 50, newvoc = 399, outfit = 495, eff = 32},

[399] = {level = 100, newvoc = 400, outfit = 496, eff = 32},

[400] = {level = 150, newvoc = 401, outfit = 497, eff = 32},

[401] = {level = 200, newvoc = 402, outfit = 498, eff = 32}

}

trans = config[getPlayerVocation(cid)]

if not trans then

doPlayerSendCancel(cid, "You can not transform.") return false

elseif getPlayerLevel(cid) >= trans.level then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "You not level " .. trans.level .. " to transform.")

end

doCreatureChangeOutfit(cid, {lookType = trans.outfit})

doPlayerSetVocation(cid, trans.newvoc)

doSendMagicEffect(getCreaturePosition(cid), trans.eff)

doPlayerSendCancel(cid, "You Transformed!")

return true

end

 

Link para o comentário
https://xtibia.com/forum/topic/228496-spell/#findComment-1612769
Compartilhar em outros sites

 

  Mostrar conteúdo oculto

 

 

Nao é uma spell é um talkaction, mais se ajudar tamo junto ^^, se precisar de ajuda a editar ai manda pm

Link para o comentário
https://xtibia.com/forum/topic/228496-spell/#findComment-1613543
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...