30 lines
715 B
Plaintext
30 lines
715 B
Plaintext
|
//:://////////////////////////////////////////////////
|
||
|
//:: 69_hench_hire
|
||
|
//:: Copyright (c) 2002 Floodgate Entertainment
|
||
|
//:://////////////////////////////////////////////////
|
||
|
/*
|
||
|
Actions taken when a henchman rejoins his/her current
|
||
|
master.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////////
|
||
|
//:: Created By: 69MEH69
|
||
|
//:: Created On: Sep2004
|
||
|
//:://////////////////////////////////////////////////
|
||
|
|
||
|
#include "69_hench_lib"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
int nAutoLevelup = GetLocalInt(GetModule(), "nAutoLevelup");
|
||
|
|
||
|
HireHenchman69(oPC);
|
||
|
|
||
|
if(nAutoLevelup == 1 && GetCanLevelUp69(oPC, OBJECT_SELF))
|
||
|
{
|
||
|
|
||
|
DelayCommand(1.0, LevelUpHenchman69(OBJECT_SELF, oPC, 1));
|
||
|
|
||
|
}
|
||
|
}
|