PRC8_fork/trunk/newspellbook/bnd_vest_otiaxun.nss

41 lines
1.5 KiB
Plaintext
Raw Normal View History

/*
12/03/21 by Stratovarius
Otiax, the Key to the Gate
The alien Otiax gives its summoners the power to open what is closed, to walk among the clouds, and to strike foes with fog that lands like a hammer.
Vestige Level: 5th
Binding DC: 25
Special Requirement: No
Influence: Otiax<61>s motives remain a mystery, but its influence is clear. When confronted with unopened doors or gates, you become agitated and nervous. This emotional
state lasts until the door or gate is opened, or until you can no longer see it. Furthermore, Otiax cannot abide a lock remaining secured. Thus, whenever you see a
key, Otiax requires that you use it to open the corresponding lock.
Granted Abilities:
Otiax opens doors for you, lets you batter opponents with wind, and cloaks you in a protective fog that can actually lash out at foes.
Unlock: As a full-round action, you can unlock a single lock that you can touch, provided that its Open Lock DC is less than or equal to twice your effective binder
level. Once you have used this ability, you cannot do so again for 5 rounds.
*/
#include "bnd_inc_bndfunc"
void main()
{
//Declare major variables
object oBinder = OBJECT_SELF;
int nBinderLevel = GetBinderLevel(oBinder, VESTIGE_OTIAX);
object oLock = PRCGetSpellTargetObject();
int nType = GetObjectType(oLock);
if(GetLocked(oLock))
{
if(!BindAbilCooldown(oBinder, GetSpellId(), VESTIGE_OTIAX)) return;
if(nBinderLevel *2 >= GetLockUnlockDC(oLock))
{
SetLocked(oLock, FALSE);
}
}
}