Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
24
_module/nss/np1_areaenter.nss
Normal file
24
_module/nss/np1_areaenter.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "rd_spawnzones"
|
||||
//#include "rd_questinc"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
if (GetIsPC(GetEnteringObject()))
|
||||
{
|
||||
CreateItemOnObject("it_mpotion008",GetEnteringObject());
|
||||
//phantom
|
||||
//object oBoss;
|
||||
//oBoss = GetQuestCamp(GetEnteringObject(),OBJECT_SELF,TRUE,"phantom");
|
||||
//SendMessageToPC(GetEnteringObject(),"Boss tag = " + GetTag(oBoss));
|
||||
|
||||
if (GetLocalInt(OBJECT_SELF,"Spawned") == 0)
|
||||
{
|
||||
RespawnCampsAE(GetEnteringObject(),2);
|
||||
RespawnMobsAE(GetEnteringObject(),2);
|
||||
SetLocalInt(OBJECT_SELF,"Spawned",1);
|
||||
SetLocalInt(OBJECT_SELF,"RandomEncounter",1);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user