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.
This commit is contained in:
16
_module/nss/jw_anvil_attack.nss
Normal file
16
_module/nss/jw_anvil_attack.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user