RATDOG/_module/nss/ra_rnd_train_hb.nss
Jaysyn904 310b26f555 PnP Enhancements continue
PnP Enhancements continue.  Fixed some quest logic, made some of the quests reward the entire party instead of the player that turns it in.  Updated Warrior's Guild.  Colored Wilderness map for the hell of it. Full compile.
2022-11-19 00:37:42 -05:00

26 lines
800 B
Plaintext

//::///////////////////////////////////////////////
//:: Name ra_rnd_train_hb
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Warrior Guild Trainee Heartbeat script
*/
//:://////////////////////////////////////////////
void main()
{
if ((!GetIsInCombat(OBJECT_SELF) && (GetItemInSlot(INVENTORY_SLOT_CHEST) == OBJECT_INVALID)))
DelayCommand(0.5f, ActionEquipMostEffectiveArmor());
//:: Attack the Combat Dummy
AssignCommand(OBJECT_SELF, ClearAllActions());
AssignCommand(OBJECT_SELF, ActionAttack(GetNearestObjectByTag("CombatDummy")));
//:: Execute the default NPC OnHeartbeat script
ExecuteScript("nw_c2_default1", OBJECT_SELF);
//:: Execute the PRC NPC OnHeartbeat script
ExecuteScript("prc_npc_hb", OBJECT_SELF);
}