Initial commit. Updated release archive.
This commit is contained in:
44
_removed/prc_at_legerdem.nss
Normal file
44
_removed/prc_at_legerdem.nss
Normal file
@@ -0,0 +1,44 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Ranged Legerdemain
|
||||
//:: prc_at_legerdem.nss
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: Allows caster to use skills at a range
|
||||
//:: of up to 30 feet.
|
||||
//::
|
||||
//:://///////////////////////////
|
||||
//:: Created By: James Tallett
|
||||
//:: Created On: Mar 4, 2004
|
||||
//::////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "prc_alterations"
|
||||
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//Declare major variables
|
||||
int nDC;
|
||||
object oCaster = OBJECT_SELF;
|
||||
object oLock = GetSpellTargetObject();
|
||||
int nType = GetObjectType(oLock);
|
||||
if (OBJECT_TYPE_DOOR == nType || OBJECT_TYPE_PLACEABLE == nType)
|
||||
{
|
||||
if (GetDistanceToObject(oLock) <= 30.0)
|
||||
{
|
||||
nDC = GetLockUnlockDC(oLock);
|
||||
nDC = nDC + 5;
|
||||
if (GetIsSkillSuccessful(oCaster, SKILL_OPEN_LOCK, nDC))
|
||||
{
|
||||
SetLocked(oLock, FALSE);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user