18 lines
562 B
Plaintext
18 lines
562 B
Plaintext
|
// * Henchman levels up
|
||
|
#include "hench_i0_henlvl"
|
||
|
#include "hench_i0_equip"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
ExecuteScript("henchauldar",OBJECT_SELF);
|
||
|
SetAssociateState(NW_ASC_IS_BUSY);
|
||
|
object oNew = DoLevelUp(GetPCSpeaker());
|
||
|
if (GetIsObjectValid(oNew))
|
||
|
{
|
||
|
AssignCommand(oNew,DelayCommand(5., HenchEquipDefaultWeapons(oNew, TRUE)));
|
||
|
// Auldar: Sometimes after levelup, the henchman is still "Busy" and requires a
|
||
|
// command to wake them.
|
||
|
AssignCommand(oNew,DelayCommand(7.0, SetAssociateState(NW_ASC_IS_BUSY, FALSE)));
|
||
|
}
|
||
|
}
|