20 lines
483 B
Plaintext
20 lines
483 B
Plaintext
#include "NW_O2_CONINCLUDE"
|
|
#include "NW_I0_GENERIC"
|
|
#include "X2_inc_treasure"
|
|
void main()
|
|
{
|
|
SetListeningPatterns();
|
|
WalkWayPoints();
|
|
|
|
GenerateHighTreasure(OBJECT_SELF);
|
|
GenerateHighTreasure(OBJECT_SELF);
|
|
|
|
{int nRandom = d10(1);
|
|
if (nRandom == 1){
|
|
CreateItemOnObject("wblhw003", OBJECT_SELF, 1);}
|
|
else if (nRandom == 5){
|
|
CreateItemOnObject("wblhw003", OBJECT_SELF, 1);}
|
|
else {
|
|
CreateItemOnObject("x2_WBLHW005", OBJECT_SELF, 1);}}
|
|
}
|