Changed hench golems to be destroyed upon death

The hench bleed system has issues. The hench on death after bleeding out would drop a "backpack" with all their undroppable gear in multitudes bugging the system and making them unable to be destroyed after leaving the service of a player. Thus piling them up inside the golem rental store. It's best to just destroy them outright upon their deaths.
This commit is contained in:
EpicValor
2023-09-22 21:52:04 -05:00
parent 5b34d6ca3c
commit 0b236318c4
11 changed files with 11 additions and 11 deletions

View File

@@ -93,12 +93,12 @@ void main()
HenchmanDeath(OBJECT_SELF);
SetDidDie(TRUE, OBJECT_SELF);
SetHenchmanDying(OBJECT_SELF, FALSE);
SetPlotFlag(OBJECT_SELF, TRUE);
SetPlotFlag(OBJECT_SELF, FALSE);
SetAssociateState(NW_ASC_IS_BUSY, TRUE);
SetIsDestroyable(FALSE, TRUE, TRUE);
SetIsDestroyable(TRUE, FALSE, TRUE);
//Spawn henchman to location specified in spawn script
DelayCommand(10.0, RespawnHenchman69());
DelayCommand(60.0, DestroyObject(OBJECT_SELF));
}
}
}//End HENCH_BLEED = 0
@@ -306,7 +306,7 @@ void HenchmanDeath(object oHench = OBJECT_SELF)
// Henchman death notification
string sHenchName = GetName(oHench);
SendMessageToPC(oPC, sHenchName+ " has fallen!");
RemoveHenchman(oPC, oHench);
//RemoveHenchman(oPC, oHench);
}

View File

@@ -29,5 +29,5 @@ void main()
// ***** ADD ANY SPECIAL ON-SPAWN CODE HERE ***** //
DelayCommand(10.0, ExecuteScript("random_drop", OBJECT_SELF));
DelayCommand(30.0, ExecuteScript("random_drop", OBJECT_SELF));
}

View File

@@ -80,7 +80,7 @@ void main()
}
}
ExecuteScript("race_hb", OBJECT_SELF);
//ExecuteScript("race_hb", OBJECT_SELF);
ExecuteScript("nw_ch_ac1", OBJECT_SELF);
}