Se tem como botar a magia ai pra eu ver, ou voce quer que eu faça a magia tambem?
- Forums
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Item Com Magia
5
1.4k
info
Group: Conde
Joined: 09/09/09
Posts: 528
Reputation: +424
Tibia Character: Emekalo Makalo

21 de maio de 2010 às 14:31
info
Group: Campones
Joined: 12/05/10
Posts: 10
Reputation: 0
Tibia Character: Nun jógo mais

21 de maio de 2010 às 15:15
tipo fais com qualquer magia de area que eu arrumo depois
info
Group: Visconde
Joined: 03/02/09
Posts: 361
Reputation: +200
Tibia Character: Fearless Man

21 de maio de 2010 às 15:16
Tente esse script:
function onEquip(cid, item, slot)
local spellName = "Light Healing"
if canPlayerLearnInstantSpell(cid, spellName) then
if not getPlayerLearnedInstantSpell(cid, spellName) then
doPlayerLearnInstantSpell(cid, spellName)
doPlayerSendTextMessage(cid,25,"Now you are able to cast " .. spellName .. ". These words is " .. getInstantSpellWords(spellName) .. ".")
else
doPlayerSendCancel(cid,"You already have learned the spell " .. spellName .. ".")
return FALSE
end
else
doPlayerSendCancel(cid,"You cannot learn the spell " .. spellName .. ".")
return FALSE
end
return TRUE
end
function onDeEquip(cid, item, slot)
local spellName = "Light Healing"
if getPlayerLearnedInstantSpell(cid, spellName) then
doPlayerUnlearnInstantSpell(cid, spellName)
doPlayerSendTextMessage(cid,25,"Now you are not able to cast " .. spellName .. ".")
end
return TRUE
end
Não se esqueça de adicionar a tag ao seu movements.xml e editar no script o nome da magia. No caso, está configurada para adicionar o Exura. Outra coisa a fazer é mudar na tag de sua magia, em spells.xml, a parte 'needlearn="0"' para 'needlearn="1"'.
flw
Edited Maio 21 by apocarai
info
Group: Campones
Joined: 12/05/10
Posts: 10
Reputation: 0
Tibia Character: Nun jógo mais

22 de maio de 2010 às 10:45
vlw mais onde que o item entra ai?



info
Group: Campones
Joined: 12/05/10
Posts: 10
Reputation: 0
Tibia Character: Nun jógo mais
Tipo do script:Não sei
Protocolo (versão do Tibia):8.54
Servidor utilizado:Alissow 3.9.0
Nível de experiência:pouquisima
Adicionais/Informações:Assim eu queria que ao equipar serto item tipo uma sword vc pudesse soltar uma certa magia mais que o item continuase la
plx fais ai