WoR_PRC8/_module/nss/treasure_blue.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

304 lines
14 KiB
Plaintext

#include "X0_I0_TREASURE"
#include "NW_I0_GENERIC"
void main()
{
SetSpawnInCondition(NW_FLAG_APPEAR_SPAWN_IN_ANIMATION);
SetListeningPatterns();
WalkWayPoints();
if ((GetChallengeRating(OBJECT_SELF) >= 12.1) && (GetChallengeRating(OBJECT_SELF) <= 16.0)) {
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
{
int nRandom = d8(1);
if (nRandom == 1){
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 2){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 3){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 4){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 5){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 6){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 7){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 8){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}}
} else if ((GetChallengeRating(OBJECT_SELF) >= 16.1) && (GetChallengeRating(OBJECT_SELF) <= 30.0)) {
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
GenerateHighTreasure(OBJECT_SELF);
GenerateHighTreasure(OBJECT_SELF);
{
int nRandom = d8(1);
if (nRandom == 1){
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 2){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 3){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 4){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 5){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 6){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 7){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 8){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}}
{
int nRandom = d8(1);
if (nRandom == 1){
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 2){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 3){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 4){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 5){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 6){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 7){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 8){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}}
} else if ((GetChallengeRating(OBJECT_SELF) >= 30.1) && (GetChallengeRating(OBJECT_SELF) <= 50.0)) {
GenerateMediumTreasure(OBJECT_SELF);
GenerateHighTreasure(OBJECT_SELF);
GenerateBossTreasure(OBJECT_SELF);
GenerateBossTreasure(OBJECT_SELF);
{
int nRandom = d8(1);
if (nRandom == 1){
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 2){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 3){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 4){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 5){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 6){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 7){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 8){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}}
{
int nRandom = d8(1);
if (nRandom == 1){
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 2){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 3){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 4){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 5){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 6){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 7){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 8){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}}
{
int nRandom = d8(1);
if (nRandom == 1){
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 2){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 3){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 4){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 5){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 6){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 7){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}
else if (nRandom == 8){
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);
CreatePotion(OBJECT_SELF, OBJECT_SELF);}}
}
}