#include "X0_I0_TREASURE" #include "NW_I0_GENERIC" #include "x0_i0_anims" #include "x0_i0_walkway" #include "X2_inc_treasure" void main() { SetListeningPatterns(); WalkWayPoints(); GenerateHighTreasure(OBJECT_SELF); GenerateHighTreasure(OBJECT_SELF); {int nRandom = d10(1); if (nRandom == 1){ CreateItemOnObject("wplss004", OBJECT_SELF, 1);} else if (nRandom == 5){ CreateItemOnObject("wplss004", OBJECT_SELF, 1);} else { CreateItemOnObject("x2_WPLSS004", OBJECT_SELF, 1);}} }