Files
HeroesStone_PRC8/_module/nss/cres_miscranged.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

27 lines
1.4 KiB
Plaintext

//:://////////////////////////////////////////////
//:: Created By: Ben W-Husey
//:: Created On: June 2003
// For: Creatures requiring ranged, one handed weapon and very minor items. Default script.
// Modified August - SoU switched off ranged attack, now switched back on.
//:://////////////////////////////////////////////
#include "x0_i0_anims"
//#include "x0_i0_walkway"
#include "x0_i0_treasure"
#include "CU_TREASURE"
void main()
{
SetSpawnInCondition(NW_FLAG_SHOUT_ATTACK_MY_TARGET);
SetCombatCondition(X0_COMBAT_FLAG_RANGED);
SetListeningPatterns(); // Goes through and sets up which shouts the NPC will listen to.
WalkWayPoints(); // Optional Parameter: void WalkWayPoints(int nRun = FALSE, float fPause = 1.0)
// 1. Looks to see if any Way Points in the module have the tag "WP_" + NPC TAG + "_0X", if so walk them
// 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
// combat.
// These are the custom lines - you could put them in a user defined script instead.
GetTreasure("Misc",OBJECT_SELF,20,0,0); //Chance of miscellaneous object
GetTreasure("OneHand",OBJECT_SELF,100,0,1); //Creature requires one handed weapon
GetTreasure("Ranged",OBJECT_SELF,80,0,0); //Creature requires ranged weapon
}