Changed folder name.
Changed folder name.
This commit is contained in:
41
_module/nss/spelkill.nss
Normal file
41
_module/nss/spelkill.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
void DecrementTalentIndex(int iIndex, object oPC);
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
int iIndex;
|
||||
|
||||
for (iIndex = 1; iIndex < 1000; iIndex++)
|
||||
{
|
||||
DecrementTalentIndex(iIndex, oPC);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void DecrementTalentIndex(int iIndex, object oPC)
|
||||
|
||||
{
|
||||
int iDecrementIndex;
|
||||
|
||||
talent tSpell;
|
||||
|
||||
|
||||
/* create our talent */
|
||||
tSpell = TalentSpell(iIndex);
|
||||
|
||||
|
||||
/* check for all spells */
|
||||
if (GetIsTalentValid(tSpell))
|
||||
{
|
||||
if (GetHasSpell(GetIdFromTalent(tSpell), oPC))
|
||||
{
|
||||
for (iDecrementIndex = 1; iDecrementIndex < 20; iDecrementIndex++)
|
||||
{
|
||||
DecrementRemainingSpellUses(oPC, GetIdFromTalent(tSpell));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user