//////////////////////////////////////////////////////////////////////////////// // Olander's and 9Fires' Quest/Commodities/Bounties System // o9f_choose_c10 // By Don Anderson // dandersonru@msn.com // // Called from the NPC Commodity Convo // //////////////////////////////////////////////////////////////////////////////// void main() { object oNPC = OBJECT_SELF; string sNPC = GetTag(oNPC); object oPC = GetPCSpeaker(); //Normal and Bulk Prices string sNum = IntToString(10); int nBPrice = GetLocalInt(oNPC,"BUY_BULKPRICE" + sNum); int nQty = GetLocalInt(oNPC,"QUEST_QUANTITY" + sNum); string sTag = GetLocalString(oNPC,"TAG" + sNPC + sNum); string sName = GetLocalString(oNPC,"NAME" + sNPC + sNum); object oContract = CreateItemOnObject("questcontract",oPC,1); //Set Variables to Contract SetLocalString(oContract,"CONTRACT_NPC",sNPC); SetLocalInt(oContract,"CONTRACT_BULKPRICE",nBPrice); SetLocalInt(oContract,"CONTRACT_QUANTITY",nQty); SetLocalString(oContract,"CONTRACT_ITEMTAG",sTag); SetLocalString(oContract,"CONTRACT_ITEMNAME",sName); }