generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
32
_module/nss/oqs_choose_c8.nss
Normal file
32
_module/nss/oqs_choose_c8.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Olander's and 9Fires' Quest/Commodities/Bounties System
|
||||
// o9f_choose_c8
|
||||
// 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(8);
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user