AOC_PRC8/_module/nss/deity_donate3.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

36 lines
1016 B
Plaintext

#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;
}
}