Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
27
_module/nss/cnr_ta_r_red.nss
Normal file
27
_module/nss/cnr_ta_r_red.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
/////////////////////////////////////////////////////////
|
||||
//
|
||||
// Craftable Natural Resources (CNR) by Festyx
|
||||
//
|
||||
// Name: cnr_ta_r_red
|
||||
//
|
||||
// Desc: Checks if the recipe on the menu should
|
||||
// be displayed as red. (if it's not craftable)
|
||||
//
|
||||
// Author: David Bobeck 08Dec02
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
#include "cnr_recipe_utils"
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int nOffset = GetLocalInt(oPC, "nCnrRedOffset");
|
||||
SetLocalInt(oPC, "nCnrRedOffset", nOffset+1);
|
||||
int bShowIt = CnrRecipeShowAsRed(OBJECT_SELF, nOffset);
|
||||
if (bShowIt == TRUE)
|
||||
{
|
||||
string sTokenText = GetLocalString(oPC, "sCnrTokenText" + IntToString(22000+nOffset));
|
||||
SetCustomToken(22000+nOffset, sTokenText);
|
||||
DeleteLocalString(oPC, "sCnrTokenText" + IntToString(22000+nOffset));
|
||||
}
|
||||
return bShowIt;
|
||||
}
|
||||
Reference in New Issue
Block a user