Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/gold_spawn.nss
Normal file
21
_module/nss/gold_spawn.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
//Put this OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetCampaignInt("gold",GetTag(OBJECT_SELF),oPC);
|
||||
if (DoOnce==1) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "statueofgold")!= OBJECT_INVALID)
|
||||
return;
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
oTarget = GetWaypointByTag("wp_statueofgold");
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_ITEM, "statueofgold", GetLocation(oTarget));
|
||||
SetCampaignInt("gold",GetTag(OBJECT_SELF),1,oPC);
|
||||
}
|
Reference in New Issue
Block a user