Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = createCombatObject()
- setCombatParam(combat, COMBAT_PARAM_HITCOLOR, TEXTCOLOR_ORANGE)
- setCombatParam(combat, COMBAT_PARAM_HITEFFECT, 20)
- setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
- setCombatParam(combat, COMBAT_PARAM_EFFECT, 9)
- function onGetFormulaValues(cid, level, maglevel)
- min = 35 + (level) + (maglevel)
- max = 45 + (level * 1.5) + (maglevel * 1.5)
- return -min, -max
- end
- setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
- local exhaust = createConditionObject(CONDITION_EXHAUST)
- setConditionParam(exhaust, CONDITION_PARAM_SUBID, 1)
- setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
- setCombatCondition(combat, exhaust)
- local exhaustt = createConditionObject(CONDITION_EXHAUST)
- setConditionParam(exhaustt, CONDITION_PARAM_SUBID, 2)
- setConditionParam(exhaustt, CONDITION_PARAM_TICKS, 10000)
- setCombatCondition(combat, exhaustt)
- local exhausttt = createConditionObject(CONDITION_EXHAUST)
- setConditionParam(exhausttt, CONDITION_PARAM_SUBID, 3)
- setConditionParam(exhausttt, CONDITION_PARAM_TICKS, 10000)
- setCombatCondition(combat, exhausttt)
- local disable = createConditionObject(CONDITION_PACIFIED)
- setConditionParam(disable, CONDITION_PARAM_TICKS, 10000)
- setCombatCondition(combat, disable)
- function onTargetCreature(cid, target)
- local function doesExist(target)
- if not isPlayer(target) then
- return false
- else
- doCreatureSetNoMove(target, false)
- setPlayerStorageValue(target, 89999, 0) --Stun Effect Storage
- end
- end
- if (isPlayer(target)) then
- doCreatureSetNoMove(target, true)
- setPlayerStorageValue(target, 89999, 1) --Stun Effect Storage
- addEvent(doesExist, 10000, target)
- end
- end
- setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
- function onCastSpell(cid, var)
- local config = {
- storage = 90000,
- cooldown = 1
- }
- if (getPlayerGroupId(cid) < 3) then
- if getExhausted(cid, config.storage) == false then
- doPlayerSendCancel(cid, "You need to wait " .. exhaustion.get(cid, config.storage) + 1 .. " seconds before using this jutsu.")
- doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
- return false
- end
- setExhausted(cid, config.storage, config.cooldown)
- end
- return doCombat(cid, combat, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement