#include "rd_spawnzones" void main() { object oCreature; vector vPC; vector vNew; location lLoc; int iRndX; int iRndY; int iLevel; string sTag; oCreature = GetEnteringObject(); object oGuard = GetObjectByTag("en4_cityguard0_1"); if (GetIsPC(oCreature)) { if (Random(10) == 0 && GetIsEnemy(oGuard,oCreature)) { object oGuard2; oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg1",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); if (Random(2) == 0) { oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg1",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); } else { oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg2",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); } if (Random(2) == 0) { oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg1",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); } else { oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg3",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); } if (Random(2) == 0) { oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg1",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); } else { oGuard2=CreateObject(OBJECT_TYPE_CREATURE,"en4_hg4",GetLocation(oCreature)); LevelMob(oGuard2,GetHitDice(oCreature)+Random(4)); EquipMob(oGuard2); } } } }