PRC8/trunk/scripts/urang_hips.nss

24 lines
816 B
Plaintext
Raw Normal View History

#include "prc_inc_spells"
#include "x0_i0_modes"
void main()
{
object oPC = OBJECT_SELF;
if(GetIsAreaNatural(GetArea(oPC)) != AREA_NATURAL)
{
FloatingTextStringOnCreature("*You need natural surroundings to camouflage yourself in front of your foes.*", oPC, FALSE);
return;
}
object oSkin = GetPCSkin(oPC);
DelayCommand(0.2, SetActionMode(oPC, ACTION_MODE_STEALTH, TRUE));
DelayCommand(0.21, UseStealthMode());
DelayCommand(0.2, ActionUseSkill(SKILL_HIDE, oPC));
DelayCommand(0.2, ActionUseSkill(SKILL_MOVE_SILENTLY, oPC));
//AddItemProperty(DURATION_TYPE_TEMPORARY,PRCItemPropertyBonusFeat(31),oSkin,3.0f);
AddSkinFeat(FEAT_HIDE_IN_PLAIN_SIGHT, IP_CONST_FEAT_HIDE_IN_PLAIN_SIGHT, oSkin, oPC, 3.0f);
SetActionMode(oPC, ACTION_MODE_STEALTH, TRUE);
}