WoR_PRC8/_module/nss/treasure_white.nss

260 lines
10 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
void main()
{
SetSpawnInCondition(NW_FLAG_APPEAR_SPAWN_IN_ANIMATION);
SetListeningPatterns();
WalkWayPoints();
if ((GetChallengeRating(OBJECT_SELF) >= 10.1) && (GetChallengeRating(OBJECT_SELF) <= 15.0)) {
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
CreateItemOnObject("NW_IT_GOLD001", OBJECT_SELF, 86);
{
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) >= 15.1) && (GetChallengeRating(OBJECT_SELF) <= 18.0)) {
GenerateMediumTreasure(OBJECT_SELF);
GenerateMediumTreasure(OBJECT_SELF);
GenerateHighTreasure(OBJECT_SELF);
CreateItemOnObject("NW_IT_GOLD001", OBJECT_SELF, 93);
{
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) >= 18.1) && (GetChallengeRating(OBJECT_SELF) <= 27.0)) {
GenerateMediumTreasure(OBJECT_SELF);
GenerateHighTreasure(OBJECT_SELF);
GenerateHighTreasure(OBJECT_SELF);
CreateItemOnObject("NW_IT_GOLD001", OBJECT_SELF, 104);
{
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);}}
}
}