Alguem sabe como faço pra essa spell não funcionar em uma determinada área??
--Calculed by ta4e-- --For tibia 8.22-- --Made in 12/09/08-- local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) function getCombatFormulas(cid, lv, maglv) local formula_min = ((lv*0.25 + maglv*3) * 3.3) local formula_max = ((lv*0.25 + maglv*3) * 3.9)if(formula_max < formula_min) then local tmp = formula_max formula_max = formula_min formula_min = tmp end return formula_min, formula_max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
Eu tentei esse Code (abaixo) que usei pra fazer a magic wall não funcionar em uma determinada área mais não funcionou nesse /\
local fromPosition = {x = 817, y = 946, z = 7} -- top left cornor of the playground local toPosition = {x = 854, y = 1004, z = 7} -- bottom right cornor of the playground if isInArea(getThingPosition(cid), fromPosition, toPosition) then return false, doPlayerSendCancel(cid, "Você nao pode usar essa runa em zombie event.") end