Initial Upload
Initial Upload
This commit is contained in:
18
_module/nss/sd_forge_itempr.nss
Normal file
18
_module/nss/sd_forge_itempr.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
#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));
|
||||
}
|
||||
Reference in New Issue
Block a user