Battledale_PRC8/_module/nss/jw_anvil_attack.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

17 lines
538 B
Plaintext

void main()
{
object oAttacker=GetLastDamager();
object oWeapon1=GetItemInSlot(INVENTORY_SLOT_LEFTHAND,oAttacker);
object oWeapon2=GetItemInSlot(INVENTORY_SLOT_RIGHTHAND,oAttacker);
if (GetTag(oWeapon1)=="jw_smiths_tools"||GetTag(oWeapon2)=="jw_smiths_tools")
{
DelayCommand(0.3,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_COM_SPARKS_PARRY),GetLocation(OBJECT_SELF)));
FloatingTextStringOnCreature("*Bashes*",oAttacker);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(400),OBJECT_SELF);
}
}