27 lines
643 B
Plaintext
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
|
||
|
}
|