Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
58
_module/nss/htc_ambush.nss
Normal file
58
_module/nss/htc_ambush.nss
Normal file
@@ -0,0 +1,58 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user