Code: Select all
function DoSilverHit (byref attacker, byref defender, byref rawdamage);
if (!IsAnUndeadCreature (defender.npctemplate))
return;
endif
PlayObjectCenteredEffect (defender, FX_GLOW, 7, 7);
ApplyRawDamage (defender, rawdamage);
if (GetObjProperty (defender, "summoned"))
PlaySoundEffect (attacker, SFX_SPELL_MANA_VAMPIRE);
if (!checkskill (defender, SKILLID_MAGICRESISTANCE, -1, 0))
PlayStationaryEffect (defender.x, defender.y, defender.z, FX_SMOKE, 0xA, 0xA );
MoveObjectToLocation (defender, 5288, 1176, 0, MOVEOBJECT_FORCELOCATION);
damage (defender, GetVital (defender, "Life") + 100);
endif
endif
endfunctionCode: Select all
Compiling: d:/shard2/Broken Blade/pkg/mithcombat/hitscripts/main_melee.src
Token '(' cannot follow token 'damage'
Function damage() is not defined.
Error compiling statement at d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 222
Error in IF statement starting at File: d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 219
Error compiling statement at d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 219
Error in IF statement starting at File: d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 217
Error compiling statement at d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 217
Error in function 'DoSilverHit', File: d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 222
Error in function 'DoSilverHit'.
File: d:\shard2\Broken Blade\pkg\mithcombat\hitscripts\main_melee.src, Line 222please and thankyou for the help guys,
-mat