36 lines
1016 B
Plaintext
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;
|
|
|
|
}
|
|
}
|