Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = createCombatObject()
- setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
- setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
- setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -10.20, -300, -11.40, -300)
- local condition = createConditionObject(CONDITION_PARALYZE)
- setConditionParam(condition, CONDITION_PARAM_TICKS, 3000)
- setConditionFormula(condition, -0.9, 1, -0.9, 1)
- local arr = {
- {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, 1, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 1, 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 area = createCombatArea(area)
- setCombatArea(combat, area)
- function onTargetTile(cid, pos)
- doSendDistanceShoot({x = pos.x - 9, y = pos.y - 8, z = pos.z}, pos, CONST_ANI_FIRE)
- return addEvent(doCombat, 100, cid, combat, positionToVariant(pos))
- end
- setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
- function onCastSpell(cid, var)
- local p = getThingPos(cid)
- local ka = {x = p.x, y = p.y, z = p.z}
- local ppp = nil
- local player = nil
- local check = false
- if canPlayerWearOutfit(cid, 138, 3) or canPlayerWearOutfit(cid, 130, 3) then
- check = true
- end
- for x = ka.x - 1, ka.x + 1 do
- for y = ka.y - 1, ka.y + 1 do
- ppp = {x = x, y = y, z = p.z}
- player = getTopCreature(ppp).uid
- if check then
- if player > 0 and getCreatureName(player) ~= getCreatureName(cid) then
- doAddCondition(player, condition)
- end
- end
- end
- end
- return doCombat(cid, combat, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement