25 lines
603 B
Plaintext
25 lines
603 B
Plaintext
#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);
|
|
|
|
}
|
|
}
|
|
}
|