mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2026-01-28 16:39:24 -05:00
Updated Release Archive
Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
This commit is contained in:
27
nwn/trunk/newspellbook/bnd_vest_triadsm.nss
Normal file
27
nwn/trunk/newspellbook/bnd_vest_triadsm.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "prc_inc_smite"
|
||||
#include "prc_inc_template"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oBinder = OBJECT_SELF;
|
||||
if(!BindAbilCooldown(oBinder, GetSpellId(), VESTIGE_THETRIAD)) return;
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
int nUses = 3;
|
||||
int nSLA = GetSpellId();
|
||||
|
||||
// Check uses per day
|
||||
if (GetLegacyUses(oBinder, nSLA) >= nUses)
|
||||
{
|
||||
FloatingTextStringOnCreature("You have used " + GetStringByStrRef(StringToInt(Get2DACache("spells", "Name", nSLA))) + " the maximum amount of times today.", oBinder, FALSE);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLegacyUses(oBinder, nSLA);
|
||||
FloatingTextStringOnCreature("You have "+IntToString(nUses - GetLegacyUses(oBinder, nSLA))+ " uses of " + GetStringByStrRef(StringToInt(Get2DACache("spells", "Name", nSLA))) + " remaining today.", oBinder, FALSE);
|
||||
|
||||
if(GetAlignmentGoodEvil(oTarget) == ALIGNMENT_EVIL)
|
||||
DoSmite(oBinder, oTarget, SMITE_TYPE_TRIAD);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user