PoA_PRC8/_module/nss/forge_sdcheck.nss

20 lines
612 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 = GetStringLowerCase(GetStringLeft(GetResRef(oItem), 2));
if (sCheck == "sd" || sCheck == "nw" || sCheck == "x2")
{
return TRUE;
}
return FALSE;
}