UW2_PRC8/_module/nss/gen_treas_on_opn.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

27 lines
643 B
Plaintext

/*--------------------------------------------------------
Script Name: gen_treas_on_opn
----------------------------------------------------------
Created By: Genisys(Guile)
Created On: 4/19/09
----------------------------------------------------------
This is how we will spawn treasure into ANY Object from
the OnOpen Event!
----------------------------------------------------------*/
//Required include!
#include "gen_treasure"
//Main Script
void main()
{
//Define who is opening the object!
object oPC = GetLastOpenedBy();
//Create the set # of items on the object the PC is opening!
GenerateTreasure(oPC);
//Main Script End
}