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:
parent
5b34d6ca3c
commit
0b236318c4
Binary file not shown.
@ -2913,7 +2913,7 @@
|
|||||||
},
|
},
|
||||||
"Version": {
|
"Version": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 40
|
"value": 41
|
||||||
},
|
},
|
||||||
"Width": {
|
"Width": {
|
||||||
"type": "int",
|
"type": "int",
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -93,12 +93,12 @@ void main()
|
|||||||
HenchmanDeath(OBJECT_SELF);
|
HenchmanDeath(OBJECT_SELF);
|
||||||
SetDidDie(TRUE, OBJECT_SELF);
|
SetDidDie(TRUE, OBJECT_SELF);
|
||||||
SetHenchmanDying(OBJECT_SELF, FALSE);
|
SetHenchmanDying(OBJECT_SELF, FALSE);
|
||||||
SetPlotFlag(OBJECT_SELF, TRUE);
|
SetPlotFlag(OBJECT_SELF, FALSE);
|
||||||
SetAssociateState(NW_ASC_IS_BUSY, TRUE);
|
SetAssociateState(NW_ASC_IS_BUSY, TRUE);
|
||||||
SetIsDestroyable(FALSE, TRUE, TRUE);
|
SetIsDestroyable(TRUE, FALSE, TRUE);
|
||||||
|
|
||||||
//Spawn henchman to location specified in spawn script
|
//Spawn henchman to location specified in spawn script
|
||||||
DelayCommand(10.0, RespawnHenchman69());
|
DelayCommand(60.0, DestroyObject(OBJECT_SELF));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}//End HENCH_BLEED = 0
|
}//End HENCH_BLEED = 0
|
||||||
@ -306,7 +306,7 @@ void HenchmanDeath(object oHench = OBJECT_SELF)
|
|||||||
// Henchman death notification
|
// Henchman death notification
|
||||||
string sHenchName = GetName(oHench);
|
string sHenchName = GetName(oHench);
|
||||||
SendMessageToPC(oPC, sHenchName+ " has fallen!");
|
SendMessageToPC(oPC, sHenchName+ " has fallen!");
|
||||||
RemoveHenchman(oPC, oHench);
|
//RemoveHenchman(oPC, oHench);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,5 +29,5 @@ void main()
|
|||||||
|
|
||||||
|
|
||||||
// ***** ADD ANY SPECIAL ON-SPAWN CODE HERE ***** //
|
// ***** ADD ANY SPECIAL ON-SPAWN CODE HERE ***** //
|
||||||
DelayCommand(10.0, ExecuteScript("random_drop", OBJECT_SELF));
|
DelayCommand(30.0, ExecuteScript("random_drop", OBJECT_SELF));
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ void main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ExecuteScript("race_hb", OBJECT_SELF);
|
//ExecuteScript("race_hb", OBJECT_SELF);
|
||||||
ExecuteScript("nw_ch_ac1", OBJECT_SELF);
|
ExecuteScript("nw_ch_ac1", OBJECT_SELF);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1345,7 +1345,7 @@
|
|||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
"Rank": {
|
"Rank": {
|
||||||
"type": "byte",
|
"type": "byte",
|
||||||
"value": 1
|
"value": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1394,7 +1394,7 @@
|
|||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
"Rank": {
|
"Rank": {
|
||||||
"type": "byte",
|
"type": "byte",
|
||||||
"value": 1
|
"value": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -778,7 +778,7 @@
|
|||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
"Rank": {
|
"Rank": {
|
||||||
"type": "byte",
|
"type": "byte",
|
||||||
"value": 1
|
"value": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -827,7 +827,7 @@
|
|||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
"Rank": {
|
"Rank": {
|
||||||
"type": "byte",
|
"type": "byte",
|
||||||
"value": 1
|
"value": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user