Index: npcs/Adaunel.lua =================================================================== --- npcs/Adaunel.lua (revision 3602) +++ npcs/Adaunel.lua (working copy) @@ -16,17 +16,16 @@ -- onTrade Action ----------------------------------- -function onTrade(player,npc,trade) --- "Flyers for Regine" conditional script -FlyerForRegine = player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE); - - if (FlyerForRegine == 1) then - count = trade:getItemCount(); - MagicFlyer = trade:hasItemQty(532,1); - if (MagicFlyer == true and count == 1) then - player:messageSpecial(FLYER_REFUSED); - end - end +function onTrade(player,npc,trade) +if(player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) ==QUEST_ACCEPTED)then +if(trade:hasItemQty(532,1) and trade:getItemCount() == 1 and player:getVar("tradeAdaunel") == 0)then +player:messageSpecial(8709); +player:setVar("FFR",player:getVar("FFR") - 1); +player:setVar("tradeAdaunel",1); +elseif(player:getVar("tradeAdaunel") ==1)then +player:messageSpecial(8710); +end +end end; ----------------------------------- Index: npcs/Blendare.lua =================================================================== --- npcs/Blendare.lua (revision 3602) +++ npcs/Blendare.lua (working copy) @@ -15,6 +15,15 @@ ----------------------------------- function onTrade(player,npc,trade) +if(player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) ==QUEST_ACCEPTED)then +if(trade:hasItemQty(532,1) and trade:getItemCount() == 1 and player:getVar("tradeBlendare") == 0)then +player:messageSpecial(8709); +player:setVar("FFR",player:getVar("FFR") - 1); +player:setVar("tradeBlendare",1); +elseif(player:getVar("tradeBlendare") ==1)then +player:messageSpecial(8710); +end +end end; ----------------------------------- Index: npcs/Leuveret.lua =================================================================== --- npcs/Leuveret.lua (revision 3602) +++ npcs/Leuveret.lua (working copy) @@ -13,7 +13,16 @@ -- onTrade Action ----------------------------------- -function onTrade(player,npc,trade) +function onTrade(player,npc,trade) +if(player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) ==QUEST_ACCEPTED)then +if(trade:hasItemQty(532,1) and trade:getItemCount() == 1 and player:getVar("tradeLeuveret") == 0)then +player:messageSpecial(8709); +player:setVar("FFR",player:getVar("FFR") - 1); +player:setVar("tradeLeuveret",1); +elseif(player:getVar("tradeLeuveret") ==1)then +player:messageSpecial(8710); +end +end end; ----------------------------------- Index: npcs/Maugie.lua =================================================================== --- npcs/Maugie.lua (revision 3602) +++ npcs/Maugie.lua (working copy) @@ -14,7 +14,16 @@ -- onTrade Action ----------------------------------- -function onTrade(player,npc,trade) +function onTrade(player,npc,trade) +if(player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) ==QUEST_ACCEPTED)then +if(trade:hasItemQty(532,1) and trade:getItemCount() == 1 and player:getVar("tradeMaugie") == 0)then +player:messageSpecial(8709); +player:setVar("FFR",player:getVar("FFR") - 1); +player:setVar("tradeMaugie",1); +elseif(player:getVar("tradeMaugie") ==1)then +player:messageSpecial(8710); +end +end end; ----------------------------------- Index: npcs/Rosel.lua =================================================================== --- npcs/Rosel.lua (revision 3602) +++ npcs/Rosel.lua (working copy) @@ -18,18 +18,16 @@ ----------------------------------- -- onTrade Action ----------------------------------- - function onTrade(player,npc,trade) - -- "Flyers for Regine" conditional script - FlyerForRegine = player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE); - - if (FlyerForRegine == 1) then - count = trade:getItemCount(); - MagicFlyer = trade:hasItemQty(532,1); - if (MagicFlyer == true and count == 1) then - player:messageSpecial(FLYER_REFUSED); - end - end +if(player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) ==QUEST_ACCEPTED)then +if(trade:hasItemQty(532,1) and trade:getItemCount() == 1 and player:getVar("tradeRosel") == 0)then +player:messageSpecial(8709); +player:setVar("FFR",player:getVar("FFR") - 1); +player:setVar("tradeRosel",1); +elseif(player:getVar("tradeRosel") ==1)then +player:messageSpecial(8710); +end +end end; ----------------------------------- Index: TextIDs.lua =================================================================== --- TextIDs.lua (revision 3602) +++ TextIDs.lua (working copy) @@ -1,83 +1,75 @@ --- Variable TextID Description text - --- General Texts - ITEM_CANNOT_BE_OBTAINED = 6467; -- You cannot obtain the item come back again after sorting your inventory -FULL_INVENTORY_AFTER_TRADE = 6402; -- You cannot obtain the . Try trading again after sorting your inventory - ITEM_OBTAINED = 6403; -- Obtained: - GIL_OBTAINED = 6404; -- Obtained gil - KEYITEM_OBTAINED = 6406; -- Obtained key item: - NOT_HAVE_ENOUGH_GIL = 13108; -- You do not have enough gil. - HOMEPOINT_SET = 24; -- Home point set! - --- Conquest System -CONQUEST = 8364; -- You've earned conquest points! - --- Mission Dialogs -ORIGINAL_MISSION_OFFSET = 7092; -- Bring me one of those axes, and your mission will be a success. No running away now; we've a proud country to defend! - YOU_ACCEPT_THE_MISSION = 7081; -- You accept the mission. - --- Dynamis dialogs - YOU_CANNOT_ENTER_DYNAMIS = 7294; -- You cannot enter Dynamis - San d'Oria for x day (Vana'diel time) -PLAYERS_HAVE_NOT_REACHED_LEVEL = 7296; -- Players who have not reached level are prohibited from entering Dynamis. - UNUSUAL_ARRANGEMENT_BRANCHES = 7306; -- There is an unusual arrangement of branches here. - --- Quest Dialogs - UNLOCK_PALADIN = 7889; -- You can now become a paladin! - FLYER_REFUSED = 8060; -- Your flyer is refused. - FLYER_ACCEPTED = 8709; -- The flyer is accepted. - FLYER_ALREADY = 8710; -- This person already has a flyer. - --- Other dialog -ITEM_DELIVERY_DIALOG = 8289; -- Parcels delivered to rooms anywhere in Vana'diel! - ROSEL_DIALOG = 7666; -- Hrmm... Now, this is interesting! It pays to keep an eye on the competition. Thanks for letting me know! - - BLENDARE_DIALOG = 7973; -- Wait! If I had magic, maybe I could keep my brother's hands off my sweets... - -BLENDARE_MESSAGE = 8711; -- Blendare looks over curiously for a moment. - ROSEL_MESSAGE = 8712; -- Rosel looks over curiously for a moment. - MAUGIE_DIALOG = 8713; -- A magic shop, eh? Hmm... A little magic could go a long way for making a leisurely retirement! Ho ho ho! - MAUGIE_MESSAGE = 8714; -- Maugie looks over curiously for a moment. - ADAUNEL_DIALOG = 8715; -- A magic shop? Maybe I'll check it out one of these days. Could help with my work, even... - ADAUNEL_MESSAGE = 8716; -- Adaunel looks over curiously for a moment. - LEUVERET_DIALOG = 8717; -- A magic shop? That'd be a fine place to peddle my wares. I smell a profit! I'll be up to my gills in gil, I will! -LEUVERET_MESSAGE = 8718; -- Leuveret looks over curiously for a moment. - - PAUNELIE_DIALOG = 0; -- [UNKNOWN] - --- Shop Texts - LUSIANE_SHOP_DIALOG = 7840; -- Hello! Let Taumila's handle all your sundry needs! - OSTALIE_SHOP_DIALOG = 7841; -- Welcome, customer. Please have a look. - - ASHENE_SHOP_DIALOG = 7862; -- Welcome to Helbort's Blades! - THADIENE_SHOP_DIALOG = 7862; -- Welcome to Helbort's Blades! - - SHILAH_SHOP_DIALOG = 7994; -- Welcome, weary traveler. Make yourself at home! - - CLETAE_DIALOG = 8080; -- Why, hello. All our skins are guild-approved. - KUEH_IGUNAHMORI_DIALOG = 8081; -- Good day! We have lots in stock today. - -FERDOULEMIONT_SHOP_DIALOG = 8293; -- Hello! - AVELINE_SHOP_DIALOG = 8299; -- Welcome to Raimbroy's Grocery! - BENAIGE_SHOP_DIALOG = 8300; -- Looking for something in particular? - - MACHIELLE_OPEN_DIALOG = 8295; -- Might I interest you in produce from Norvallen? - CORUA_OPEN_DIALOG = 8296; -- Ronfaure produce for sale! - PHAMELISE_OPEN_DIALOG = 8297; -- I've got fresh produce from Zulkheim! - APAIREMANT_OPEN_DIALOG = 8298; -- Might you be interested in produce from Gustaberg? - - PAUNELIE_SHOP_DIALOG = 8300; -- Looking for something in particular? - - MACHIELLE_CLOSED_DIALOG = 8302; -- We want to sell produce from Norvallen, but the entire region is under foreign control! - CORUA_CLOSED_DIALOG = 8303; -- We specialize in Ronfaure produce, but we cannot import from that region without a strong San d'Orian presence there. - PHAMELISE_CLOSED_DIALOG = 8304; -- I'd be making a killing selling produce from Zulkheim, but the region's under foreign control! - APAIREMANT_CLOSED_DIALOG = 8305; -- I'd love to import produce from Gustaberg, but the foreign powers in control there make me feel unsafe! - POURETTE_OPEN_DIALOG = 8306; -- Derfland produce for sale! - POURETTE_CLOSED_DIALOG = 8307; -- Listen, adventurer... I can't import from Derfland until the region knows San d'Orian power! - - CARAUTIA_SHOP_DIALOG = 0; -- [UNKNOWN] - MIOGIQUE_SHOP_DIALOG = 0; -- [UNKNOWN] - VALERIANO_SHOP_DIALOG = 0; -- [UNKNOWN] - - RAMINEL_DELIVERY = 7977; -- here is your delivery - LUSIANE_THANK = 7978; -- thank you! - RAMINEL_DELIVERIES = 7979; -- I got deliveries \ No newline at end of file +-- Variable TextID Description text + +-- General Texts + ITEM_CANNOT_BE_OBTAINED = 6457; -- You cannot obtain the item come back again after sorting your inventory +FULL_INVENTORY_AFTER_TRADE = 6402; -- You cannot obtain the . Try trading again after sorting your inventory + ITEM_OBTAINED = 6403; -- Obtained: + GIL_OBTAINED = 6404; -- Obtained gil + KEYITEM_OBTAINED = 6406; -- Obtained key item: + NOT_HAVE_ENOUGH_GIL = 13098; -- You do not have enough gil. + HOMEPOINT_SET = 24; -- Home point set! + +-- Conquest System +CONQUEST = 8354; -- You've earned conquest points! + +-- Mission Dialogs +ORIGINAL_MISSION_OFFSET = 7082; -- Bring me one of those axes, and your mission will be a success. No running away now; we've a proud country to defend! + YOU_ACCEPT_THE_MISSION = 7071; -- You accept the mission. + +-- Dynamis dialogs + YOU_CANNOT_ENTER_DYNAMIS = 7284; -- You cannot enter Dynamis - San d'Oria for x day (Vana'diel time) +PLAYERS_HAVE_NOT_REACHED_LEVEL = 7286; -- Players who have not reached level are prohibited from entering Dynamis. + UNUSUAL_ARRANGEMENT_BRANCHES = 7296; -- There is an unusual arrangement of branches here. + +-- Other dialog + FLYER_REFUSED = 8060; -- Your flyer is refused. + FLYER_ALREADY = 8710; -- This person already has a flyer. + FLYER_ACCEPTED = 8709; -- The flyer is accepted. + + LEUVERET_DIALOG = 8707; -- A magic shop? That'd be a fine place to peddle my wares. I smell a profit! I'll be up to my gills in gil, I will! + BLENDARE_DIALOG = 7963; -- Wait! If I had magic, maybe I could keep my brother's hands off my sweets... + MAUGIE_DIALOG = 8703; -- A magic shop, eh? Hmm... A little magic could go a long way for making a leisurely retirement! Ho ho ho! + ADAUNEL_DIALOG = 8705; -- A magic shop? Maybe I'll check it out one of these days. Could help with my work, even... + ROSEL_DIALOG = 7656; -- Hrmm... Now, this is interesting! It pays to keep an eye on the competition. Thanks for letting me know! + +LEUVERET_MESSAGE = 8708; -- Leuveret looks over curiously for a moment. +BLENDARE_MESSAGE = 8701; -- Blendare looks over curiously for a moment. + MAUGIE_MESSAGE = 8704; -- Maugie looks over curiously for a moment. + ADAUNEL_MESSAGE = 8706; -- Adaunel looks over curiously for a moment. + ROSEL_MESSAGE = 8702; -- Rosel looks over curiously for a moment. + + PAUNELIE_DIALOG = 0; -- [UNKNOWN] + +-- Quest Dialogs +UNLOCK_PALADIN = 7879; -- You can now become a paladin! + +-- Shop Texts + ASHENE_SHOP_DIALOG = 7852; -- Welcome to Helbort's Blades! + AVELINE_SHOP_DIALOG = 8289; -- Welcome to Raimbroy's Grocery! + BENAIGE_SHOP_DIALOG = 8290; -- Looking for something in particular? + CARAUTIA_SHOP_DIALOG = 0; -- [UNKNOWN] +FERDOULEMIONT_SHOP_DIALOG = 8283; -- Hello! + LUSIANE_SHOP_DIALOG = 7830; -- Hello! Let Taumila's handle all your sundry needs! + MIOGIQUE_SHOP_DIALOG = 0; -- [UNKNOWN] + OSTALIE_SHOP_DIALOG = 7831; -- Welcome, customer. Please have a look. + SHILAH_SHOP_DIALOG = 7984; -- Welcome, weary traveler. Make yourself at home! + THADIENE_SHOP_DIALOG = 7852; -- Welcome to Helbort's Blades! + VALERIANO_SHOP_DIALOG = 0; -- [UNKNOWN] + PAUNELIE_SHOP_DIALOG = 8290; -- Looking for something in particular? + MACHIELLE_OPEN_DIALOG = 8285; -- Might I interest you in produce from Norvallen? + MACHIELLE_CLOSED_DIALOG = 8292; -- We want to sell produce from Norvallen, but the entire region is under foreign control! + + CORUA_OPEN_DIALOG = 8286; -- Ronfaure produce for sale! + CORUA_CLOSED_DIALOG = 8293; -- We specialize in Ronfaure produce, but we cannot import from that region without a strong San d'Orian presence there. + + PHAMELISE_OPEN_DIALOG = 8287; -- I've got fresh produce from Zulkheim! + PHAMELISE_CLOSED_DIALOG = 8294; -- I'd be making a killing selling produce from Zulkheim, but the region's under foreign control! + + APAIREMANT_OPEN_DIALOG = 8288; -- Might you be interested in produce from GustabergEE APAIREMANT_CLOSED_DIALOG = 8295; -- I'd love to import produce from Gustaberg, but the foreign powers in control there make me feel unsafe! + + POURETTE_OPEN_DIALOG = 8296; -- Derfland produce for sale! + POURETTE_CLOSED_DIALOG = 8297; -- Listen, adventurer... I can't import from Derfland until the region knows San d'Orian power! + + CLETAE_DIALOG = 8070; -- Why, hello. All our skins are guild-approved. + KUEH_IGUNAHMORI_DIALOG = 8071; -- Good day! We have lots in stock today. +