EN4_PRC8/_module/nss/np1_areaenter.nss

25 lines
603 B
Plaintext
Raw Normal View History

#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);
}
}
}