HoS_PRC8/_mod/_module/nss/sr_wemic.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

31 lines
1.0 KiB
Plaintext

#include "x2_inc_itemprop"
#include "x3_inc_skin"
void fnSpeedMonitor()
{ // PURPOSE: Monitor speed should be moving
object oMe=OBJECT_SELF;
effect eSpeed;
if (GetLocalInt(oMe,"bBurstOfSpeed")) eSpeed=EffectMovementSpeedIncrease(99);
else { eSpeed=EffectMovementSpeedIncrease(33); }
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eSpeed,oMe,5.03);
DelayCommand(5.0,fnSpeedMonitor());
} // fnSpeedMonitor()
void main()
{
/* object oPC=OBJECT_SELF;
itemproperty iProp;
object oSkin=GetItemInSlot(INVENTORY_SLOT_CARMOUR,oPC);
SetSkinInt(oPC,"bSetWemicProperties",TRUE);
// set properties
iProp=ItemPropertyAbilityBonus(ABILITY_STRENGTH,2);
IPSafeAddItemProperty(oSkin,iProp);
iProp=ItemPropertyAbilityBonus(ABILITY_CONSTITUTION,2);
IPSafeAddItemProperty(oSkin,iProp);
iProp=ItemPropertyDecreaseAbility(ABILITY_INTELLIGENCE,2);
IPSafeAddItemProperty(oSkin,iProp);
AssignCommand(oPC,fnSpeedMonitor());
SendMessageToPC(oPC,"Wemic Properties have been applied to your character."); */
}