LoD_PRC8/_module/nss/sd_forge_itempr.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

19 lines
573 B
Plaintext

#include "sd_forge_util"
void main()
{
object oItem = OBJECT_INVALID;
object oChest = OBJECT_INVALID;
object oPC = GetLastSpeaker();
string sTAG_Chest1 = "";
string sTAG_Chest2 = "";
int iChoice = GetLocalInt(oPC, "ForgeItemChoice");
sTAG_Chest1 = GetLocalArrayString(oPC, "ForgeItem", iChoice + 1000);
sTAG_Chest2 = "FI" + GetStringRight(sTAG_Chest1, GetStringLength(sTAG_Chest1)-2);
oChest = GetObjectByTag(sTAG_Chest2);
oItem = GetFirstItemInInventory(oChest);
SetCustomToken(3000, ForgeItemInfo(oItem, 1));
}