PoA_PRC8/_module/nss/gc_is_plotitem.nss

25 lines
641 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
/*--------------------------------------------------------
Script Name: gc_is_plotitem
----------------------------------------------------------
Created By: Genisys(Guile)
Created On: 3/03/09
----------------------------------------------------------
This is to stop players from forging plot items..
----------------------------------------------------------*/
int StartingConditional()
{
//Delcare Variables
object oPC = GetPCSpeaker();
int nType = GetLocalInt(oPC, "CRAFT_TYPE");
int nSlot = GetLocalInt(oPC, "CRAFT_SLOT");
object oItem = GetItemInSlot(nSlot, oPC);
if(GetPlotFlag(oItem) == TRUE)
return TRUE;
else
return FALSE;
}