Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat1 = createCombatObject()
- setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
- setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 0, -100, 0, -100)
- arr1 = {
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 1, 0, 0, 0},
- {0, 0, 0, 1, 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},
- }
- local area1 = createCombatArea(arr1)
- setCombatArea(combat1, area1)
- local function onCastSpell1(parameters)
- return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)
- end
- function onCastSpell(cid, var)
- local p = getCreaturePosition(cid)
- local x = {
- [0] = {x=p.x+2, y=p.y-1, z=p.z},
- [1] = {x=p.x+4, y=p.y+1, z=p.z},
- [2] = {x=p.x+2, y=p.y+4, z=p.z},
- [3] = {x=p.x-1, y=p.y+1, z=p.z}
- }
- local y = {
- [0] = um, -- /\
- [1] = dois, -- >>
- [2] = tres, -- \/
- [3] = quatro -- <<
- }
- pos = x[getCreatureLookDirection(cid)]
- eff = y[getCreatureLookDirection(cid)]
- doSendMagicEffect(pos, eff)
- doCombat(cid, combat1, var)
- local parameters = { cid = cid, var = var}
- addEvent(onCastSpell1, 100, parameters)
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement