generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
35
_module/nss/deity_donate3.nss
Normal file
35
_module/nss/deity_donate3.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "donate"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int iAmt = GetLocalInt(oPC, "donate_amount");
|
||||
switch (iAmt)
|
||||
{
|
||||
case 50000:
|
||||
{
|
||||
SetLocalInt(oPC, "deity_adjust", 2);
|
||||
SetLocalInt(oPC, "dn_switch", 1);
|
||||
Donate(oPC);
|
||||
}break;
|
||||
case 200000:
|
||||
{
|
||||
SetLocalInt(oPC, "deity_adjust", 5);
|
||||
SetLocalInt(oPC, "dn_switch", 2);
|
||||
Donate(oPC);
|
||||
}break;
|
||||
case 500000:
|
||||
{
|
||||
SetLocalInt(oPC, "deity_adjust", 10);
|
||||
SetLocalInt(oPC, "dn_switch", 3);
|
||||
Donate(oPC);
|
||||
}break;
|
||||
case 1000000:
|
||||
{
|
||||
SetLocalInt(oPC, "deity_adjust", 15);
|
||||
SetLocalInt(oPC, "dn_switch", 4);
|
||||
Donate(oPC);
|
||||
}break;
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user