Amon_PRC8/_module/nss/has_ml6.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

30 lines
825 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName has_ml6
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 2/10/2007 9:08:40 PM
//:://////////////////////////////////////////////
#include "nw_i0_tool"
#include "prc_class_const"
int StartingConditional()
{
object oPC = GetPCSpeaker();
int iMonk = GetLevelByClass(CLASS_TYPE_MONK, oPC)
+ GetLevelByClass(CLASS_TYPE_SOHEI, oPC)
+ GetLevelByClass(CLASS_TYPE_SWORDSAGE, oPC)
+ GetLevelByClass(CLASS_TYPE_PSION, oPC);
// Restrict based on the player's class
int iPassed = 0;
if(iMonk <= 0)
return FALSE;
// Make sure the PC speaker has these items in their inventory
if(!HasItem(GetPCSpeaker(), "ML6"))
return FALSE;
return TRUE;
}