PRC8/trunk/scripts/prc_wipeNSB.nss
Jaysyn904 6585d40a0f Major script update for 8 class support
Major script update for 8 class support.

prc_wipeNSB.nss

PRC_S_spellb.nss

prc_amagsys_gain.nss	- AMSCompatibilityCheck()

prc_prereq.nss			- Dragonheart(), KnightWeave()

prc_onenter.nss			- OnEnter_AMSCompatibilityCheck()

prc_metamagic.nss		- GetHasSpontaneousNSBClass()

prc_feats.nss

prc_dracactive.nss

prc_debug_hfeatm.nss

prc_cbtmed_spnhl.nss

psi_powconv.nss

psi_pow_bstpwr.nss

x2_pc_umdcheck.nss
2023-03-11 12:04:30 -05:00

38 lines
974 B
Plaintext

#include "inc_pers_array"
#include "inc_newspellbook"
void del_tmp(object oPC, string sArray)
{
persistant_array_delete(oPC, sArray);
}
void DeleteArrays(object oPC, int nClass)
{
string sArray1 = "Spellbook";
string sArray2 = "NewSpellbookMem_";
DelayCommand(0.1, del_tmp(oPC, sArray2+IntToString(nClass)));
int j;
for(j = 0; j <= 9; j++)
{
DelayCommand(0.1*j, del_tmp(oPC, sArray1+IntToString(j)+"_"+IntToString(nClass)));
}
DelayCommand(0.2, del_tmp(oPC, sArray1+IntToString(nClass)));
//advanced learning:
if(nClass == CLASS_TYPE_WARMAGE || nClass == CLASS_TYPE_BEGUILER)
DeletePersistantLocalInt(oPC, "AdvancedLearning_"+IntToString(nClass));
}
void main()
{
object oPC = OBJECT_SELF;
int i;
for(i = 1; i <= 8; i++)
{
int nClass = GetClassByPosition(i, oPC);
DelayCommand(0.5*i, DeleteArrays(oPC, nClass));
}
DelayCommand(10.0, WipeSpellbookHideFeats(oPC));
}