SCTX |
scn NDArmorGreavesSCRIPT
ref tempRef
begin OnEquip player
if getPCInfamy > 1
MessageBox "You are unable to equip the holy armor. Walk the Pilgrim's Way to repent of your sins and once again seek the favor of the gods."
set tempRef to GetContainer
tempRef.unequipitem NDArmorHeavyGreaves1 1
tempRef.unequipitem NDArmorHeavyGreaves2 1
tempRef.unequipitem NDArmorHeavyGreaves3 1
tempRef.unequipitem NDArmorHeavyGreaves4 1
tempRef.unequipitem NDArmorHeavyGreaves5 1
tempRef.unequipitem NDArmorLightGreaves1 1
tempRef.unequipitem NDArmorLightGreaves2 1
tempRef.unequipitem NDArmorLightGreaves3 1
tempRef.unequipitem NDArmorLightGreaves4 1
tempRef.unequipitem NDArmorLightGreaves5 1
else
set ND00.GreavesEquipped to 1
Player.AddSpell NDLpGreavesShieldOther
endif
end
begin OnUnequip player
; NOTE: Any changes here need to be reflected in ND00 stages, which are used when placing armor on the armor stand
set ND00.GreavesEquipped to 0
Player.RemoveSpell NDLpGreavesShieldOther
end
begin OnDrop player
set ND00.GreavesCarried to 0
end
begin OnAdd player
set ND00.GreavesCarried to 1
end
|