PoA_PRC8/_module/nss/forge_guildcheck.nss

27 lines
758 B
Plaintext
Raw Normal View History

/////::///////////////////////////////////////////////
/////:: forge_guildcheck script - check to make sure not splitting a guild item
/////:: Written by Winterknight on 2/17/06
/////:://////////////////////////////////////////////
#include "nw_i0_tool"
int StartingConditional()
{
object oForge = GetNearestObjectByTag("forge_custom",OBJECT_SELF,1);
object oItem = GetFirstItemInInventory(oForge);
string sCheck = GetStringLeft(GetTag(oItem), 5);
if (sCheck == "HELM_" ||
sCheck == "ARMR_" ||
sCheck == "SHLD_" ||
sCheck == "ammy_" ||
sCheck == "ring_" ||
sCheck == "WEAP_" ||
sCheck == "BOOT_" ||
sCheck == "BELT_")
{
return TRUE;
}
return FALSE;
}