primero va em data\spells\script copie um qual qer arqivo renomeio para trap abra e apague tudo oq estiver dentro e coloke
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.8, -12000, -1.5, -12000)
arr = {
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
em seguida salve e va em spells.xml
abra e coloke la
<instant name="Trap" words="exevo gran mas trap" selftarget="1" aggressive="0" lvl="30000" maglv="4" mana="5" soul="0" exhaustion="1" prem="1" enabled="1" script="trap.lua"><vocation id="2"/><vocation id="1"/><vocation id="3"/><vocation id="4"/><vocation id="6"/><vocation id="5"/><vocation id="8"/><vocation id="7"/></instant>
e não vamos esquecer da Ss
tivi muito trabalho nissu
comentem
plx
:weight_lift: :weight_lift: :weight_lift: