Ir para conteúdo
  • 0

Editar essa magia colocar um protection zone.


AdilsonHacker

Pergunta

Galera, queria um pequeno reajuste nessa magia é que tipo os jogadores podem usar ela e entrar pro depot, queria a ajuda de vcs para colocar uma função que ao usa-la o player fique imediatamente com pz, para não permitir a entrada dele a uma área protection zone.

 

Spell:

 

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.4, 1.8)
 
local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
 
local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
 
local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
 
local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat11, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
 
local combat12 = createCombatObject()
setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat12, COMBAT_PARAM_EFFECT, 13)
setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
 
local combat13 = createCombatObject()
setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat13, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -6, -70, -6, -68, -1, -1, 11, 13)
 
local combat14 = createCombatObject()
setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat14, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -6, -70, -6, -68, -1, -1, 11, 13)
 
local combat15 = createCombatObject()
setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat15, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -6, -70, -6, -68, -1, -1, 11, 13)
 
local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -6, -70, -6, -68, -1, -1, 11, 13)
 
local combat17 = createCombatObject()
setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat17, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC, -6, -70, -6, -68, -1, -1, 11, 13)
 
local combat18 = createCombatObject()
setCombatParam(combat18, COMBAT_PARAM_EFFECT, 13)
setCombatParam(combat18, COMBAT_PARAM_AGGRESSIVE, 0)
 
local combat19 = createCombatObject()
setCombatParam(combat19, COMBAT_PARAM_EFFECT, 13)
setCombatParam(combat19, COMBAT_PARAM_AGGRESSIV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0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
 
arr20 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
 
local condition18 = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition18, CONDITION_PARAM_TICKS, 6000)
setConditionFormula(condition18, -0.9, 0, -0.9, 0)
setCombatCondition(combat18, condition18)
 
local condition19 = createConditionObject(CONDITION_FIRE)
setConditionParam(condition19, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition19, 1, 1000, -200)
addDamageCondition(condition19, 1, 1000, -199)
addDamageCondition(condition19, 1, 1000, -198)
addDamageCondition(condition19, 1, 1000, -197)
addDamageCondition(condition19, 1, 1000, -196)
addDamageCondition(condition19, 1, 1000, -195)
addDamageCondition(condition19, 1, 1000, -194)
addDamageCondition(condition19, 1, 1000, -193)
addDamageCondition(condition19, 1, 1000, -192)
addDamageCondition(condition19, 1, 1000, -191)
addDamageCondition(condition19, 1, 1000, -190)
addDamageCondition(condition19, 1, 1000, -189)
addDamageCondition(condition19, 1, 1000, -188)
addDamageCondition(condition19, 1, 1000, -187)
addDamageCondition(condition19, 1, 1000, -186)
addDamageCondition(condition19, 1, 1000, -185)
addDamageCondition(condition19, 1, 1000, -184)
addDamageCondition(condition19, 1, 1000, -182)
addDamageCondition(condition19, 1, 1000, -181)
addDamageCondition(condition19, 1, 1000, -180)
addDamageCondition(condition19, 1, 1000, -179)
addDamageCondition(condition19, 1, 1000, -178)
addDamageCondition(condition19, 1, 1000, -177)
addDamageCondition(condition19, 1, 1000, -176)
addDamageCondition(condition19, 1, 1000, -175)
addDamageCondition(condition19, 1, 1000, -174)
addDamageCondition(condition19, 1, 1000, -173)
addDamageCondition(condition19, 1, 1000, -172)
addDamageCondition(condition19, 1, 1000, -171)
addDamageCondition(condition19, 1, 1000, -169)
addDamageCondition(condition19, 1, 1000, -168)
addDamageCondition(condition19, 1, 1000, -167)
addDamageCondition(condition19, 1, 1000, -166)
addDamageCondition(condition19, 1, 1000, -165)
addDamageCondition(condition19, 1, 1000, -164)
addDamageCondition(condition19, 1, 1000, -163)
addDamageCondition(condition19, 1, 1000, -162)
addDamageCondition(condition19, 1, 1000, -161)
addDamageCondition(condition19, 1, 1000, -160)
addDamageCondition(condition19, 1, 1000, -159)
addDamageCondition(condition19, 1, 1000, -158)
addDamageCondition(condition19, 1, 1000, -157)
addDamageCondition(condition19, 1, 1000, -156)
addDamageCondition(condition19, 1, 1000, -155)
addDamageCondition(condition19, 1, 1000, -154)
addDamageCondition(condition19, 1, 1000, -153)
addDamageCondition(condition19, 1, 1000, -152)
addDamageCondition(condition19, 1, 1000, -151)
addDamageCondition(condition19, 1, 1000, -150)
addDamageCondition(condition19, 1, 1000, -149)
addDamageCondition(condition19, 1, 1000, -148)
addDamageCondition(condition19, 1, 1000, -147)
addDamageCondition(condition19, 1, 1000, -146)
addDamageCondition(condition19, 1, 1000, -145)
addDamageCondition(condition19, 1, 1000, -144)
addDamageCondition(condition19, 1, 1000, -143)
addDamageCondition(condition19, 1, 1000, -142)
addDamageCondition(condition19, 1, 1000, -141)
addDamageCondition(condition19, 1, 1000, -140)
addDamageCondition(condition19, 1, 1000, -139)
addDamageCondition(condition19, 1, 1000, -138)
addDamageCondition(condition19, 1, 1000, -137)
addDamageCondition(condition19, 1, 1000, -136)
addDamageCondition(condition19, 1, 1000, -135)
addDamageCondition(condition19, 1, 1000, -134)
addDamageCondition(condition19, 1, 1000, -133)
addDamageCondition(condition19, 1, 1000, -132)
addDamageCondition(condition19, 1, 1000, -131)
addDamageCondition(condition19, 1, 1000, -130)
addDamageCondition(condition19, 1, 1000, -129)
addDamageCondition(condition19, 1, 1000, -128)
addDamageCondition(condition19, 1, 1000, -127)
addDamageCondition(condition19, 1, 1000, -126)
addDamageCondition(condition19, 1, 1000, -125)
addDamageCondition(condition19, 1, 1000, -124)
addDamageCondition(condition19, 1, 1000, -123)
addDamageCondition(condition19, 1, 1000, -122)
addDamageCondition(condition19, 1, 1000, -121)
addDamageCondition(condition19, 1, 1000, -120)
addDamageCondition(condition19, 1, 1000, -119)
addDamageCondition(condition19, 1, 1000, -118)
addDamageCondition(condition19, 1, 1000, -117)
addDamageCondition(condition19, 1, 1000, -116)
addDamageCondition(condition19, 1, 1000, -115)
addDamageCondition(condition19, 1, 1000, -114)
addDamageCondition(condition19, 1, 1000, -113)
addDamageCondition(condition19, 1, 1000, -112)
addDamageCondition(condition19, 1, 1000, -111)
addDamageCondition(condition19, 1, 1000, -110)
addDamageCondition(condition19, 1, 1000, -109)
addDamageCondition(condition19, 1, 1000, -108)
addDamageCondition(condition19, 1, 1000, -107)
addDamageCondition(condition19, 1, 1000, -106)
addDamageCondition(condition19, 1, 1000, -105)
addDamageCondition(condition19, 1, 1000, -104)
addDamageCondition(condition19, 1, 1000, -103)
addDamageCondition(condition19, 1, 1000, -102)
addDamageCondition(condition19, 1, 1000, -101)
addDamageCondition(condition19, 1, 1000, -100)
addDamageCondition(condition19, 1, 1000, -99)
addDamageCondition(condition19, 1, 1000, -98)
addDamageCondition(condition19, 1, 1000, -97)
addDamageCondition(condition19, 1, 1000, -96)
addDamageCondition(condition19, 1, 1000, -95)
addDamageCondition(condition19, 1, 1000, -94)
addDamageCondition(condition19, 1, 1000, -93)
addDamageCondition(condition19, 1, 1000, -92)
addDamageCondition(condition19, 1, 1000, -91)
addDamageCondition(condition19, 1, 1000, -90)
addDamageCondition(condition19, 1, 1000, -89)
addDamageCondition(condition19, 1, 1000, -88)
addDamageCondition(condition19, 1, 1000, -87)
addDamageCondition(condition19, 1, 1000, -86)
addDamageCondition(condition19, 1, 1000, -85)
addDamageCondition(condition19, 1, 1000, -84)
addDamageCondition(condition19, 1, 1000, -83)
addDamageCondition(condition19, 1, 1000, -82)
addDamageCondition(condition19, 1, 1000, -81)
addDamageCondition(condition19, 1, 1000, -80)
addDamageCondition(condition19, 1, 1000, -79)
addDamageCondition(condition19, 1, 1000, -78)
addDamageCondition(condition19, 1, 1000, -77)
addDamageCondition(condition19, 1, 1000, -76)
addDamageCondition(condition19, 1, 1000, -75)
addDamageCondition(condition19, 1, 1000, -74)
addDamageCondition(condition19, 1, 1000, -73)
addDamageCondition(condition19, 1, 1000, -72)
addDamageCondition(condition19, 1, 1000, -71)
addDamageCondition(condition19, 1, 1000, -70)
addDamageCondition(condition19, 1, 1000, -69)
addDamageCondition(condition19, 1, 1000, -68)
addDamageCondition(condition19, 1, 1000, -67)
addDamageCondition(condition19, 1, 1000, -66)
addDamageCondition(condition19, 1, 1000, -65)
addDamageCondition(condition19, 1, 1000, -64)
addDamageCondition(condition19, 1, 1000, -63)
addDamageCondition(condition19, 1, 1000, -62)
addDamageCondition(condition19, 1, 1000, -61)
addDamageCondition(condition19, 1, 1000, -60)
addDamageCondition(condition19, 1, 1000, -59)
addDamageCondition(condition19, 1, 1000, -58)
addDamageCondition(condition19, 1, 1000, -57)
addDamageCondition(condition19, 1, 1000, -56)
addDamageCondition(condition19, 1, 1000, -55)
addDamageCondition(condition19, 1, 1000, -54)
addDamageCondition(condition19, 1, 1000, -53)
addDamageCondition(condition19, 1, 1000, -52)
addDamageCondition(condition19, 1, 1000, -51)
addDamageCondition(condition19, 1, 1000, -50)
addDamageCondition(condition19, 1, 1000, -49)
addDamageCondition(condition19, 1, 1000, -48)
addDamageCondition(condition19, 1, 1000, -47)
addDamageCondition(condition19, 1, 1000, -46)
addDamageCondition(condition19, 1, 1000, -45)
addDamageCondition(condition19, 1, 1000, -44)
addDamageCondition(condition19, 1, 1000, -43)
addDamageCondition(condition19, 1, 1000, -42)
addDamageCondition(condition19, 1, 1000, -41)
addDamageCondition(condition19, 1, 1000, -40)
addDamageCondition(condition19, 1, 1000, -39)
addDamageCondition(condition19, 1, 1000, -38)
addDamageCondition(condition19, 1, 1000, -37)
addDamageCondition(condition19, 1, 1000, -36)
addDamageCondition(condition19, 1, 1000, -35)
addDamageCondition(condition19, 1, 1000, -34)
addDamageCondition(condition19, 1, 1000, -33)
addDamageCondition(condition19, 1, 1000, -32)
addDamageCondition(condition19, 1, 1000, -31)
addDamageCondition(condition19, 1, 1000, -30)
addDamageCondition(condition19, 1, 1000, -29)
addDamageCondition(condition19, 1, 1000, -28)
addDamageCondition(condition19, 1, 1000, -27)
addDamageCondition(condition19, 1, 1000, -26)
addDamageCondition(condition19, 1, 1000, -25)
addDamageCondition(condition19, 1, 1000, -24)
addDamageCondition(condition19, 1, 1000, -23)
addDamageCondition(condition19, 1, 1000, -22)
addDamageCondition(condition19, 1, 1000, -21)
addDamageCondition(condition19, 1, 1000, -20)
addDamageCondition(condition19, 1, 1000, -19)
addDamageCondition(condition19, 1, 1000, -18)
addDamageCondition(condition19, 1, 1000, -17)
addDamageCondition(condition19, 1, 1000, -16)
addDamageCondition(condition19, 1, 1000, -15)
addDamageCondition(condition19, 1, 1000, -14)
addDamageCondition(condition19, 1, 1000, -13)
addDamageCondition(condition19, 1, 1000, -12)
addDamageCondition(condition19, 1, 1000, -11)
addDamageCondition(condition19, 1, 1000, -10)
addDamageCondition(condition19, 1, 1000, -9)
addDamageCondition(condition19, 1, 1000, -8)
addDamageCondition(condition19, 1, 1000, -7)
addDamageCondition(condition19, 1, 1000, -6)
addDamageCondition(condition19, 1, 1000, -5)
addDamageCondition(condition19, 1, 1000, -4)
addDamageCondition(condition19, 1, 1000, -3)
addDamageCondition(condition19, 1, 1000, -2)
addDamageCondition(condition19, 1, 1000, -1)
setCombatCondition(combat19, condition19)
 
local condition20 = createConditionObject(CONDITION_MUTED)
setConditionParam(condition20, CONDITION_PARAM_TICKS, 12000)
setCombatCondition(combat20, condition20)
 
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
local area11 = createCombatArea(arr11)
local area12 = createCombatArea(arr12)
local area13 = createCombatArea(arr13)
local area14 = createCombatArea(arr14)
local area15 = createCombatArea(arr15)
local area16 = createCombatArea(arr16)
local area17 = createCombatArea(arr17)
local area18 = createCombatArea(arr18)
local area19 = createCombatArea(arr19)
local area20 = createCombatArea(arr20)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)
setCombatArea(combat11, area11)
setCombatArea(combat12, area12)
setCombatArea(combat13, area13)
setCombatArea(combat14, area14)
setCombatArea(combat15, area15)
setCombatArea(combat16, area16)
setCombatArea(combat17, area17)
setCombatArea(combat18, area18)
setCombatArea(combat19, area19)
setCombatArea(combat20, area20)
 
local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end
 
local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end
 
local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end
 
local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end
 
local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end
local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end
 
local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end
 
local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end
 
local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end
 
local function onCastSpell11(parameters)
doCombat(parameters.cid, combat11, parameters.var)
end
 
local function onCastSpell12(parameters)
doCombat(parameters.cid, combat12, parameters.var)
end
 
local function onCastSpell13(parameters)
doCombat(parameters.cid, combat13, parameters.var)
end
 
local function onCastSpell14(parameters)
doCombat(parameters.cid, combat14, parameters.var)
end
 
local function onCastSpell15(parameters)
doCombat(parameters.cid, combat15, parameters.var)
end
 
local function onCastSpell16(parameters)
doCombat(parameters.cid, combat16, parameters.var)
end
 
local function onCastSpell17(parameters)
doCombat(parameters.cid, combat17, parameters.var)
end
 
local function onCastSpell18(parameters)
doCombat(parameters.cid, parameters.combat18, parameters.var)
end
 
local function onCastSpell19(parameters)
doCombat(parameters.cid, parameters.combat19, parameters.var)
end
 
local function onCastSpell20(parameters)
doCombat(parameters.cid, parameters.combat20, parameters.var)
end
 
 
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20 }
addEvent(onCastSpell1, 1, parameters)
addEvent(onCastSpell2, 300, parameters)
addEvent(onCastSpell3, 600, parameters)
addEvent(onCastSpell4, 900, parameters)
addEvent(onCastSpell5, 1200, parameters)
addEvent(onCastSpell6, 1500, parameters)
addEvent(onCastSpell7, 1800, parameters)
addEvent(onCastSpell8, 2100, parameters)
addEvent(onCastSpell9, 2400, parameters)
addEvent(onCastSpell10, 2700, parameters)
addEvent(onCastSpell11, 3000, parameters)
addEvent(onCastSpell12, 3300, parameters)
addEvent(onCastSpell13, 3600, parameters)
addEvent(onCastSpell14, 3900, parameters)
addEvent(onCastSpell15, 4200, parameters)
addEvent(onCastSpell16, 4500, parameters)
addEvent(onCastSpell17, 4800, parameters)
addEvent(onCastSpell18, 1, parameters)
addEvent(onCastSpell19, 3500, parameters)
addEvent(onCastSpell20, 1, parameters)
 
return TRUE
end

Agradeço desde já!
Editado por AdilsonTsunami
Link para o comentário
Compartilhar em outros sites

12 respostass a esta questão

Posts Recomendados

  • 0

Essa magia e enorme porque se nao faz um for nisso?

 

tenta usar essa tag abaixo do ultimo onCastSpell(cid, var)

 

 

if getTileInfo(getThingPos(cid)).protection then
doPlayerSendCancel(cid, "Cannot use magic while in protection zone.")
return true
end

 

Link para o comentário
Compartilhar em outros sites

  • 0

Essa magia e enorme porque se nao faz um for nisso?

 

tenta usar essa tag abaixo do ultimo onCastSpell(cid, var)

 

 

if getTileInfo(getThingPos(cid)).protection then

doPlayerSendCancel(cid, "Cannot use magic while in protection zone.")

return true

end

 

Sem resultados, não apareceu nenhum erro, mais também não funcionou.

Link para o comentário
Compartilhar em outros sites

  • 0

Como nao cara testei aqui e foi? se fez algo errado nao ultima parte troca isso entao ao nao esta em ara de proteçao?

 

function onCastSpell(cid, var)

if getTileInfo(getThingPos(cid)).protection then
doPlayerSendCancel(cid, "Cannot use magic while in protection zone.")
return true
end

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20 }
addEvent(onCastSpell1, 1, parameters)
addEvent(onCastSpell2, 300, parameters)
addEvent(onCastSpell3, 600, parameters)
addEvent(onCastSpell4, 900, parameters)
addEvent(onCastSpell5, 1200, parameters)
addEvent(onCastSpell6, 1500, parameters)
addEvent(onCastSpell7, 1800, parameters)
addEvent(onCastSpell8, 2100, parameters)
addEvent(onCastSpell9, 2400, parameters)
addEvent(onCastSpell10, 2700, parameters)
addEvent(onCastSpell11, 3000, parameters)
addEvent(onCastSpell12, 3300, parameters)
addEvent(onCastSpell13, 3600, parameters)
addEvent(onCastSpell14, 3900, parameters)
addEvent(onCastSpell15, 4200, parameters)
addEvent(onCastSpell16, 4500, parameters)
addEvent(onCastSpell17, 4800, parameters)
addEvent(onCastSpell18, 1, parameters)
addEvent(onCastSpell19, 3500, parameters)
addEvent(onCastSpell20, 1, parameters)

return TRUE
end

 

Editado por nociam
Link para o comentário
Compartilhar em outros sites

  • 0

Desculpe @nociam eu postei antes de ver o que vc falou, bom acho que você não entendeu oq eu quis dizer, eu quis dizer ao usar essa magia é adicionado aquela espadinha vermelha que não permite o player entrar no dp após ter atacado alguém ta ligado? é bem isso.

 

Grato!


@up

Editado por AdilsonTsunami
Link para o comentário
Compartilhar em outros sites

  • 0
local condition_infight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition_infight, CONDITION_PARAM_TICKS, -1)



doAddCondition(cid, condition_infight)
depois do oncastspell deve resolver.
Link para o comentário
Compartilhar em outros sites

  • 0

 

local condition_infight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition_infight, CONDITION_PARAM_TICKS, -1)

 

 

 

doAddCondition(cid, condition_infight)

depois do oncastspell deve resolver.

 

Nenhum erro no console, porém nenhum resultado.

affs preciso muito disso, obrigado por tentar ajudar.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...