Error On Start Up
Code: Select all
Unknown SystemHook AttackHookthis is from the doco
Code: Select all
Pseudocode for the core combat system.
if( attackhook )
call hook
if hook returned 1, exit
endifCode: Select all
SystemHookScript Attack.ecl
{
AttackHook Attackfunc
}Code: Select all
exported function Attackfunc( attacker, defender )
if (attacker == defender)
return 1;
endif
var weaponType := cfg[attacker.weapon.objtype];
if (attacker.npctemplate) //special attack styles.. currently in for monsters with anim probs
if (GetObjProperty(attacker, "SpecialAttack"))
DoSpecialMonsterAttack(attacker, defender, weaponType, GetObjProperty(attacker, "SpecialAttack"));
return 1;
endif
endif
if (weaponType.Attribute=="Archery")
ArcheryAttack( attacker, defender );
return 1;
endif
return 0;
endfunction Any help you can offer would be greatly appreciated! thanks GIB