PoA_PRC8/_module/nss/forge_mergecheck.nss
Jaysyn904 80d4b7c4d6 Added Skullkeep Mystic Forge / Combine system
Added Skullkeep Mystic Forge / Combine system., modified to use a single forge and combine for all item types.  Added new Magesmith shop & NPC in Town of Ascension.  Full compile.  Updated release archive.
2024-11-10 20:06:52 -05:00

75 lines
2.0 KiB
Plaintext

/////::///////////////////////////////////////////////
/////:: 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 oCombine = GetNearestObjectByTag("forge_combine",OBJECT_SELF,1);
object oItem = GetFirstItemInInventory(oCombine);
string sMerge = GetTag(oItem);
int nType = GetLocalInt(OBJECT_SELF, "ItemType");
/*while (GetIsObjectValid(oItem))
{
if (nType == 1) // Belts and Boots
{
if (sMerge == "craftingbelt" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 2) // Armor, Helms, Shields
{
if (sMerge == "craftingshield" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 3) // Melee Weapons
{
if (sMerge == "craftingdagger" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 4) // Cloaks
{
if (sMerge == "craftingcloak" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 5) // Rings and Amulets
{
if (sMerge == "craftingring" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 6) // Bows and Crossbows/slings
{
if (sMerge == "craftingsling" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 7) // Thrown weapons and ammunition
{
if (sMerge == "craftingdirk" ||
sMerge == "craftingtoken" )
return FALSE;
}
if (nType == 8) // Common items (miscellaneous or not already covered)
{
if (sMerge == "craftingtoken" )
return FALSE;
}
oItem = GetNextItemInInventory(oCombine);
}
return TRUE; */
return FALSE;
}