mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 05:57:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
27
trunk/scripts/prc_tp_mgmt_eval.nss
Normal file
27
trunk/scripts/prc_tp_mgmt_eval.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Teleport management feat evaluation script
|
||||
//:: prc_tp_mgmt_eval
|
||||
//::///////////////////////////////////////////////
|
||||
/** @file
|
||||
This script checks for the presence of the
|
||||
teleport management feat radial on OBJECT_SELF.
|
||||
If it's missing, it is added via an itemproperty
|
||||
on the hide.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_feat_const"
|
||||
#include "prc_ipfeat_const"
|
||||
#include "prc_alterations"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
if(!GetHasFeat(FEAT_TELEPORT_MANAGEMENT_RADIAL, OBJECT_SELF))
|
||||
{
|
||||
object oSkin = GetPCSkin(OBJECT_SELF);
|
||||
|
||||
AddItemProperty(DURATION_TYPE_PERMANENT, PRCItemPropertyBonusFeat(IP_CONST_FEAT_TELEPORT_MANAGEMENT_RADIAL), oSkin);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user