Added henchman rental
Many areas, items, and creatures were adjusted for balance and aesthetics.
This commit is contained in:
21
_module/nss/69_hench_gomelee.nss
Normal file
21
_module/nss/69_hench_gomelee.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
//69_hench_gomelee
|
||||
// Henchman equips melee weapon and
|
||||
// will engage enemies in melee combat
|
||||
// Created by: 69MEH69 Feb2005
|
||||
|
||||
#include "69_INC_HENAI"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
if(HasMeleeWeapon69(OBJECT_SELF))
|
||||
{
|
||||
SetAssociateState(NW_ASC_USE_RANGED_WEAPON, FALSE);
|
||||
SetCombatCondition(X0_COMBAT_FLAG_RANGED, FALSE);
|
||||
SetLocalInt(OBJECT_SELF, "COMBAT_FLAG_SWITCH", FALSE);
|
||||
ActionSpeakString("Very well.");
|
||||
bkEquipMelee(oPC);
|
||||
}
|
||||
else
|
||||
ActionSpeakString("I do not have a melee weapon to equip.");
|
||||
}
|
Reference in New Issue
Block a user