24 lines
770 B
Plaintext
24 lines
770 B
Plaintext
// * Joins, takes away other people's personal items, give player his personal item
|
|
#include "nw_i0_henchman"
|
|
|
|
void main()
|
|
{//DestroyAllPersonalItems(GetPCSpeaker()); DONE IN THE GIVBE ITEM FUNCTION
|
|
// * remove previous henchman
|
|
|
|
//SpeakString("test");
|
|
if (GetIsObjectValid(GetHenchman(GetPCSpeaker())) == TRUE)
|
|
{ SetFormerMaster(GetPCSpeaker(), GetHenchman(GetPCSpeaker()));
|
|
object oHench = GetHenchman(GetPCSpeaker());
|
|
RemoveHenchman(GetPCSpeaker(), GetHenchman(GetPCSpeaker()));
|
|
AssignCommand(oHench, ClearAllActions());
|
|
}
|
|
|
|
SetWorkingForPlayer(GetPCSpeaker());
|
|
SetBeenHired();
|
|
|
|
ExecuteScript("NW_CH_JOIN", OBJECT_SELF);
|
|
GivePersonalItem(GetPCSpeaker());
|
|
SetLocalInt( OBJECT_SELF, "LAST_PAY_DAY", 0 );
|
|
SetLocalInt( OBJECT_SELF, "QUIT", 0 );
|
|
}
|