Initial upload
Initial upload
This commit is contained in:
26
_module/nss/gen_treas_on_opn.nss
Normal file
26
_module/nss/gen_treas_on_opn.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
/*--------------------------------------------------------
|
||||
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user