19 lines
573 B
Plaintext
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));
|
||
|
}
|