Alangara_PRC8/_module/nss/merc_hire.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

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 );
}