Nussa
Lindão
Só vi uns problemas :
CONST_ME_DRAWBLOOD não é spell 1.CONST_ME_DRAWBLOOD = a Spells1 e assim por diante
É spell 0 (zero)
Isso fez deslocar toda sua tabela de imagens.
E no seu MOSTRAR SPOIL (aconselho por codebox)
CONST_ME_MAGIC_RED = 1 (é 13)
CONST_ME_HITBYFIRE = 1 (é 15)
CONST_ME_SOUND_WHITE = 2 (é 24)
CONST_ME_CRAPS = 2 (é 26)
Versões antigas de OT só vão até o 26
seria legal você informar isso...
Fora isso ,
A D O R E I











info
Grupo: Artesão
Registrado: 03/09/06
Posts: 127
Reputação: +6
As spells tem effects como voces sabem
Alguns nao sabem de "có" mas com esse tutorial vai
te ajudar a lembrar ^^
Ots velhos so dao suporte até a 26 (Vlw conde Sapo)
A Screen Shot(divida em duas tabelas):
Como Usa-las
Um pequeno exemplo usando a forma da magia exori vis
local storevalue = 2578 -- value where exhausted is saved local exhausttime = 1 -- 1 second exhaustion local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.4, -30, -0.5, 0) local arr = { {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 3, 0} } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) local pAccess = getPlayerAccess(cid) -- Returns the player's access if (isPlayer(cid) == TRUE and pAccess < 3) then if (exhaust(cid, storevalue, exhausttime) == 1) then return doCombat(cid, combat, var) else doPlayerSendCancel(cid, "You are exhausted.") end else return doCombat(cid, combat, var) end endAli onde tem "CONST_ME_DRAWBLOOD"
substitua pelo nome/numero do efeito que voce quer
por exemplo eu quero uma exori vis com o efeito de fire
coloca no lugar de "CONST_ME_DRAWBLOOD" isso "CONST_ME_FIREAREA" ou "6"
entemderam? Creio que sim =)
Aquilo "COMBAT_ENERGYDAMAGE" eu chamo de efeito secundário
depois crio um tutorial com eles e como usa-los tambem
Tutorial->http://www.xtibia.com/forum/index.php?showtopic=65788
Abraços
DragonBoster
//
Editado Outubro 14 por DragonBoster