Initial Commit
Initial Commit
This commit is contained in:
36
_module/nss/col_prepare.nss
Normal file
36
_module/nss/col_prepare.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "nw_i0_plot"
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int nLevel = GetHitDice(oPC);
|
||||
string sMinorItem;
|
||||
string sMajorItem;
|
||||
int nMinorGold;
|
||||
int nMajorGold;
|
||||
int nMinorNum;
|
||||
int nMajorNum;
|
||||
int nGold;
|
||||
int nXP;
|
||||
|
||||
if (nLevel <= 3)
|
||||
{
|
||||
sMinorItem = "anc_it_slimeball";
|
||||
sMajorItem = "anc_it_cubeskull";
|
||||
nMinorGold = 75;
|
||||
nMajorGold = 200;
|
||||
}
|
||||
|
||||
else //if (nLevel <= 7)
|
||||
{
|
||||
sMinorItem = "anc_it_colhidew";
|
||||
sMajorItem = "anc_it_colhideb";
|
||||
nMinorGold = 100;
|
||||
nMajorGold = 250;
|
||||
}
|
||||
|
||||
nMinorNum = GetNumItems(oPC, sMinorItem);
|
||||
nMajorNum = GetNumItems(oPC, sMajorItem);
|
||||
nGold = nMinorGold * nMinorNum + nMajorGold * nMajorNum;
|
||||
SetCustomToken(923, IntToString(nGold));
|
||||
return TRUE;
|
||||
}
|
||||
Reference in New Issue
Block a user