Lopaskurwa
Active Member
- Joined
- Oct 6, 2017
- Messages
- 873
- Solutions
- 2
- Reaction score
- 49
So i have two problems one is small other is bigger.
First problem (small)
Question: How to remove the purple effect because now it put two effects one is that red this one is fine and on top this purple effect, how to remove it?
Other problem is bigger when this training machine attack me, my shielding is not "skilling" always stays where he is. Maybe i should make psychal dmg but still if i put energydame so fishing should grow but nothing happening to.
it should slowly grow when he attacks. Its same think when monsters attack u, your shielding should grow. Ideas?
First problem (small)
Question: How to remove the purple effect because now it put two effects one is that red this one is fine and on top this purple effect, how to remove it?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ARROW)
function onCastSpell(cid, var)
doCombat(cid, combat, var)
end
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 9)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -0.9, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
it should slowly grow when he attacks. Its same think when monsters attack u, your shielding should grow. Ideas?