[DEV]World Exchange Quest

Status
Not open for further replies.
Newbie Spellweaver
Joined
Dec 31, 2008
Messages
14
Reaction score
2
My last project on maple the exchange Quest for Titan came out very well and was pleased with it, but Koolk didn't end up including it into the next version as he got busted by Nexon and because i wasn't using Angel Script.
So over the past few days I've been learning how to code for OdinMS as Titan is now outdated and decided to try and make a World Exchange Quest where anyone can take 100 etc items or more that commonly drop by monsters in Maplestory to Staff Sergant Charlie and exchange them for a random item just like the Orbis and Showa Town Exchange Quests.

Why am i making this you ask?
Well the reason is because, when you're playing on a very high populated server with high drop rates and low meso rates. Finding etc items gets rather boring as all you do with them is sell each of them for maybe 50 mesos each. So why not make etc items more worth while to pick up?

This also makes it more fun to train in certain areas such as aqua road as what the host could do is change what every etc item gives give people a reason to train in Omega Sector at level 70.

I have just got the script all set up and most islands are ready to have their prizes put in for such islands as Victoria and Ludibrium. I haven't completed much of it because I will be working a lot over the next couple of weeks and it will take me twice as long as anyone else to complete it.

FEATURES:
Each Island which the etc item comes from gives a different amount of experience
Each etc item gives a random item and items can be added without additional work
Easy Modification for additional Islands/items
One .js file runs everything

Script - replace with 2010000 npc script
/*-- Odin JavaScript --------------------------------------------------------------------------------
Master Sergeant Fox <World Exchange Quest>
-- By ---------------------------------------------------------------------------------------------
Sean360
Mapster
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Sean360 from OdinMS that did the Orbis and ShowaTown ExchangeQuests
2.0 - Improved by Mapster
---------------------------------------------------------------------------------------------------
*/

importPackage(net.sf.odinms.client);



var eIslands = new Array ("Ossyria", "Zipangu (80%) Change Prizes", "Maple Island", "Victoria (5%) Add Prizes", "Florina Beach (80%) Change Prizes", "Ludibrium (15%) Add Prizes", "Mu Lung & Herb Town (10%) Add Prizes", "Leafre (10%) Add Prizes");
var eOrbisChoices = new Array (4000073,4000059,4000060,4000061,4000058,
4000062,4000048,4000049,4000055,4000056,
4000051,4000052,4000050,4000057,4000053,
4000054,4000076,4000078,4000081,4000070,
4000071,4000072,4000069,4000079,4000080,4000074);
var eShowaChoices = new Array (4000064,4000065,4000066,4000222,4000077,
4000089,4000090,4000091,4000172,4000223,
4000075,4000092,4000093,4000137,4000094,
4000225,4000139,4000140,4000141);
var eMapleIslandChoices = new Array (4000019,4000000,4000011,4000003,4000016,4000004,4000001);
var eVictoriaChoices = new Array (4000002,4000005,4000006,4000037,4000012,4000018,
4000195,4000009,4000042,4000034,4000015,4031162,
4000008,40001***4000020,4000009,4000007,4000068,
40000***4000024,4000013,4000035,4000067,4000029,
4000023,4000031,4000039,4000014,4000178,4000036,
4000033,4000022,4000041,4000206,4000177,4000027,
4000207,4000185,4000186,4000028,4000046);
var eFlorinaChoices = new Array (4000043,4000045,4000044);
var eLudiChoices = new Array (4000106,4000095,4000127,4000107,40000***4000****
4000113,40000***4000103,4000108,4000****4000****
4000****4000****4000****4000****4000****4000****
4000102,4000124,4000128,4000143,4000129,4000144,
4000145,4000130,4000146,4000131,40001***4000147,
4000133,4000148,4000134,4000149,4000135,4000150,4000152,4000151,4031196);
var eMuLungChoices = new Array (4000276, 4000290, 4000280,4000279,4000291,4000292,
4000286,4000287,4000293,4000294,40002***4000284,
4000288,4000285,4000282,4000295,4000289,40002***4000297);
var eLeafreChoices = new Array (4000226,4000228,4000236,4000260,4000229,4000230,4000237,
4000261,4000231,4000238,4000239,4000241,4000242,
4000234,4000233,40002***4000262,4000263,4000264,
4000265,4000266,4000268,4000269,4000270,4000272,
4000267,4000235,4000243,4000271,4000274,4000273);
var eQuestPrizes = new Array();


// Orbis Choices
eQuestPrizes[0] = new Array ([2000001,20], // Orange Potions
[2010004,10], // Lemons
[2000003,15], // Blue Potions
[4003001,15], // Processed Wood
[2020001,15], // Fried Chickens
[2030000,15]); // Nearest Town Scroll
eQuestPrizes[1] = new Array ([2000003,20], // Blue Potions
[2000001,30], // Orange Potions
[2010001,40], // Meats
[4003001,20], // Processed Wood
[2040002,1]); // 10% Helm Def
eQuestPrizes[2] = new Array ([2000002,25], // White Potions
[2000006,10], // Mana Elixir
[2022000,5], // Pure Water
[4000030,15], // Dragon Skins
[2040902,1]); // 10% Shield Def
eQuestPrizes[3] = new Array ([2000002,30], // White Potions
[2000006,15], // Mana Elixir
[2020000,20], // Salad
[4003000,5], // Screws
[2041016,1]); // 10% Cape Int
eQuestPrizes[4] = new Array ([2000002,15], // White Potions
[2010004,15], // Lemons
[2000003,25], // Blue Potions
[4003001,30], // Processed Wood
[2040302,1]); // 10% Earring Int
eQuestPrizes[5] = new Array ([2000002,30], // White Potions
[2000006,15], // Mana Elixir
[2020000,20], // Salad
[4003000,5], // Screws
[2040402,1]); // 10% Top Def
eQuestPrizes[6] = new Array ([2000002,30], // White Potions
[2020000,20], // Salad
[2000006,15], // Mana Elixir
[4003000,5], // Screws
[2040402,1]); // 10% Top Def
eQuestPrizes[7] = new Array ([2000006,25], // Mana Elixir
[2020000,20], // Salad
[4020000,7], // Garnet Ore
[4020001,7], // Amethyst Ore
[4020002,3], // Aquamarine Ore
[4020007,2], // Diamond Ore
[2040708,1]); // 10% Shoe Speed
eQuestPrizes[8] = new Array ([2020005,30], // Hotdogs
[2020006,15], // Hotdog Supremes
[2022001,30], // Red Bean Soup
[4003003,1], // Fairy Wing
[2040505,1]); // 10% O/All Def
eQuestPrizes[9] = new Array ([2000006,25], // Mana Elixir
[4020005,7], // Sapphire Ore
[4020003,7], // Emerald Ore
[4020004,7], // Opal Ore
[4020008,2], // Black Crystal Ore
[2040802,1]); // 10% Glove Dex
eQuestPrizes[10] = new Array ([2002004,15], // Warrior Potion
[2002005,15], // Sniper Potion
[2002003,15], // Wizard Potion
[4001005,1], // Ancient Scroll
[2040502,1]); // 10% O/All Dex
eQuestPrizes[11] = new Array ([2000006,20], // Mana Elixir
[4010004,7], // Silver Ore
[4010003,7], // Adamantium Ore
[4010005,7], // Orihalcon Ore
[4003002,1], // Piece of Ice
[2040602,1]); // 10% Bottom Def
eQuestPrizes[12] = new Array ([2000006,20], // Mana Elixir
[4010002,7], // Mithril Ore
[4010001,7], // Steel Ore
[4010000,7], // Bronze Ore
[4010006,2], // Gold Ore
[4003000,5], // Screwa
[2040702,1]); // 10% Shoe Dex
eQuestPrizes[13] = new Array ([2000006,20], // Mana Elixir
[4010004,7], // Silver Ore
[4010005,7], // Orihalcon Ore
[4010006,3], // Gold Ore
[4020007,2], // Diamond Ore
[4020008,2], // Black Crystal Ore
[2040705,1]); // 10% Shoe Jump
eQuestPrizes[14] = new Array ([2000006,30], // Mana Elixir
[4020006,7], // Topaz Ore
[4020008,2], // Black Crystal Ore
[4020007,2], // Diamond Ore
[2070010,1], // Icicle Stars
[2040805,1]); // 10% Glove Attack
eQuestPrizes[15] = new Array ([2000006,30], // Mana Elixir
[4020006,7], // Topaz Ore
[4020008.2], // Black Crystal Ore
[4020007,2], // Diamond Ore
[2041020,1]); // 10% Cape Dex
eQuestPrizes[16] = new Array ([2000001,30], // Orange Potions
[2000003,20], // Blue Potions
[4003001,20], // Processed Wood
[2010001,40], // Meats
[2040002,1]); // 10% Helm Def
eQuestPrizes[17] = new Array ([2000002,15], // White Potions
[2000003,25], // Blue Potions
[2010004,15], // Lemons
[2050004,15], // Divine Elixir
[4003001,30], // Processed Wood
[2040302,1]); // 10% Earring Int
eQuestPrizes[18] = new Array ([2000006,25], // Mana Elixir
[2020006,25], // Hotdog Supreme
[4010004,8], // Silver Ore
[4010005,8], // Orihalcon Ore
[4010006,3], // Gold Ore
[4020007,2], // Diamond Ore
[4020008,2], // Black Crystal Ore
[2040705,1]); // 10% Shoe Jump
eQuestPrizes[19] = new Array ([2000002,30], // White Potions
[2020000,20], // Salad
[2000006,15], // Mana Elixir
[4003000,5], // Screws
[2041005,1]); // 10% Cape Wep Def
eQuestPrizes[20] = new Array ([2000002,30], // White Potions
[2020000,20], // Salad
[2000006,15], // Mana Elixir
[4003000,5], // Screws
[2041005,1]); // 10% Cape Wep Def
eQuestPrizes[21] = new Array ([2000002,30], // White Potions
[2020000,20], // Salad
[2000006,15], // Mana Elixir
[4003000,5], // Screws
[2041005,1]); // 10% Cape Wep Def
eQuestPrizes[22] = new Array ([2000006,20], // Mana Elixir
[2020005,30], // Hotdogs
[2020006,15], // Hotdog Supremes
[2050004,20], // Divine Elixirs
[4003003,1], // Fairy Wing
[2041002,1]); // 10% Cape Mag Def
eQuestPrizes[23] = new Array ([2000006,25], // Mana Elixir
[2050004,50], // Divine Elixir
[2022001,35], // Red Bean Soup
[4020000,8], // Garnet Ore
[4020001,8], // Amethyst Ore
[4020002,8], // Aquamarine Ore
[4020007,2], // Diamond Ore
[2041023,1]); // 10% Cape LUK
eQuestPrizes[24] = new Array ([2000006,35], // Mana Elixir
[4020006,9], // Topaz Ore
[4010008,4], // Black Crystal Ore
[4020007,4], // Diamond Ore
[2041008,1]); // 10% Cape HP
eQuestPrizes[25] = new Array ([2000006,35], // Mana Elixir
[4020006,9], // Topaz Ore
[4010008,4], // Black Crystal Ore
[4020007,4], // Diamond Ore
[2041020,1]); // 10% Cape Dex
// Zipangu

eQuestPrizes[51] = new Array ([2000000,1], // Red Potion - Crow
[2000006,1], // Mana Elixir
[2000003,5], // Blue Potion
[2000002,5], // White Potion
[4020006,2], // Topaz Ore
[4020000,2], // Garnet Ore
[4020004,2], // Opal Ore
[2000003,10], // Blue Potion
[2000003,20], // Blue Potion
[2000002,10], // White Potion
[2000002,20], // White Potion
[2022026,15], // Yakisoba
[2022024,15], // Takoyaki (Octopus Ball)
[1002395,1]); // Purple Bandana
eQuestPrizes[52] = new Array ([2000006,1], // Mana Elixir - Racoon
[2000002,5], // White Potion
[4020006,2], // Topaz Ore
[2000002,10], // White Potion
[2000003,10], // Blue Potion
[2000002,20], // White Potion
[2000003,20], // Blue Potion
[2022024,15], // Takoyaki (Octopus Ball)
[2022026,15]); // Yakisoba
eQuestPrizes[53] = new Array ([2000006,1], // Mana Elixir - Cloud Fox
[2000002,5], // White Potion
[2000003,5], // Blue Potion
[4020000,2], // Garnet Ore
[2000003,10], // Blue Potion
[2000002,10], // White Potion
[2000003,20], // Blue Potion
[2000002,20], // White Potion
[2022024,15], // Takoyaki (Octopus Ball)
[1002393,1]); // Pink Bandana
eQuestPrizes[54] = new Array ([2000006,1], // Mana Elixir - Lantern
[2000002,5], // White Potion
[2000003,5], // Blue Potion
[4020000,2], // Garnet Ore
[2000003,10], // Blue Potion
[2000002,10], // White Potion
[2000003,20], // Blue Potion
[2000002,20], // White Potion
[2022024,15], // Takoyaki (Octopus Ball)
[1002393,1]); // Pink Bandana
eQuestPrizes[55] = new Array ([2000006,1], // Mana Elixir - Dark Fox Tail
[2000002,5], // White Potion
[2000003,5], // Blue Potion
[4020000,2], // Garnet Ore
[2000003,10], // Blue Potion
[2000002,10], // White Potion
[2000003,20], // Blue Potion
[2000002,20], // White Potion
[2022024,15], // Takoyaki (Octopus Ball)
[1002393,1]); // Pink Bandana

eQuestPrizes[56] = new Array ([2060003,1000], // Red Arrow for Bow - Littleman A
[4010004,2], // Silver Ore
[4010006,2], // Gold Ore
[2022022,5], // Tempura (Dish)
[2022022,10], // Tempura (Dish)
[2022022,15], // Tempura (Dish)
[2022019,5], // Kinoko Ramen (Pig Bone)
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2001002,15], // Red Bean Sundae
[2001001,15], // Ice Cream Pop
[1102040,1], // Yellow Adventurer Cape
[1102043,1]); // Brown Adventurer Cape
eQuestPrizes[57] = new Array ([2000003,1], //Blue Potion - Littleman B's
[2022019,5], // Kinoko Ramen (Pig Bone)
[2000006,5], // Mana Elixir
[4010002,2], // Mithril Ore
[4010003,2], // Adamantium Ore
[2000006,10], // Mana Elixir
[2000006,15], // Mana Elixir
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2060003,1000], // Red Arrow for Bow
[2061003,1000], // Blue Arrow for Crossbow
[1082150,1], // Grey Work Gloves
[1082149,1]); // Brown Work Gloves
eQuestPrizes[58] = new Array ([2000006,1], // Mana Elixir - Littleman C's
[2000003,5], // Blue Potion
[2000002,5], // White Potion
[2000003,10], // Blue Potion
[2000003,20], // Blue Potion
[2000002,10], // White Potion
[2000002,15], // White Potion
[2060003,1000], // Red Arrow for Bow
[2061003,1000], // Blue Arrow for Crossbow
[2022026,15], // Yakisoba
[1002395,1]); // Purple Bandana
eQuestPrizes[59] = new Array ([2022019,5], // Kinoko Ramen (Pig Bone) - Three-Tailed Foxtail
[2000006,5], // Mana Elixir
[4010003,2], // Adamantium Ore
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2000006,10], // Mana Elixir
[2000006,15], // Mana Elixir
[2060003,1000], // Red Arrow for Bow
[2061003,1000]); // Blue Arrow for Crossbow
eQuestPrizes[60] = new Array ([2000003,1], // Blue Potion - Cucumber
[2000006,1], // Mana Elixir
[2022019,1], // Kinoko Ramen (Pig Bone)
[2000006,5], // Mana Elixir
[4010002,2], // Mithril Ore
[4020001,2], // Amethyst Ore
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2000006,10], // Mana Elixir
[2000006,15], // Mana Elixir
[2060003,1000], // Red Arrow for Bow
[2061003,1000]); // Blue Arrow for Crossbow
eQuestPrizes[61] = new Array ([2022019,5], // Kinoko Ramen (Pig Bone) - Ghost Headband
[2022022,5], // Tempura (Dish)
[4010006,2], // Gold Ore
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2022022,10], // Tempura (Dish)
[2022022,15], // Tempura (Dish)
[2001002,15], // Red Bean Sundae
[2001001,15], // Ice Cream Pop
[1102043,1]); // Brown Adventurer Cape
eQuestPrizes[62] = new Array ([4010004,5], // Silver Ore - Leader A's Shades
[2022019,5], // Kinoko Ramen (Pig Bone)
[2022022,15], // Tempura (Dish)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2001002,15], // Red Bean Sundae
[2001001,15], // Ice Cream Pop
[1102043,1]); // Brown Adventurer Cape
eQuestPrizes[63] = new Array ([2000006,1], // Mana Elixir - Leader B's Charm
[4020008,15], // Black Crystal Ore
[2022018,5], // Kinoko Ramen (Roasted Pork)
[2022018,10], // Kinoko Ramen (Roasted Pork)
[2022018,15], // Kinoko Ramen (Roasted Pork)
[2022000,10], // Pure Water
[2022000,20], // Pure Water
[2022025,15]); // Takoyaki (Jumbo)
eQuestPrizes[64] = new Array ([2000006,1], // Mana Elixir - Subordinate D's Fingernail
[2000003,5], // Blue Potion
[2000002,5], // White Potion
[2000003,10], // Blue Potion
[2000003,20], // Blue Potion
[2000002,10], // White Potion
[2000002,15], // White Potion
[2060003,1000], // Red Arrow for Bow
[2061003,1000], // Blue Arrow for Crossbow
[2022026,15], // Yakisoba
[1002395,1]); // Purple Bandana
eQuestPrizes[65] = new Array ([2022019,5], // Kinoko Ramen (Pig Bone) - Boss's Pomade
[2000006,5], // Mana Elixir
[4010003,2], // Adamantium Ore
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2000006,10], // Mana Elixir
[2000006,15], // Mana Elixir
[2060003,1000], // Red Arrow for Bow
[2061003,1000]); // Blue Arrow for Crossbow
eQuestPrizes[66] = new Array ([2000003,1], // Blue Potion - Kimono Piece
[2000006,1], // Mana Elixir
[2022019,1], // Kinoko Ramen (Pig Bone)
[2000006,5], // Mana Elixir
[4010002,2], // Mithril Ore
[4020001,2], // Amethyst Ore
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2000006,10], // Mana Elixir
[2000006,15], // Mana Elixir
[2060003,1000], // Red Arrow for Bow
[2061003,1000]); // Blue Arrow for Crossbow
eQuestPrizes[67] = new Array ([2022019,5], // Kinoko Ramen (Pig Bone) - Bodyguard A's Tie Pin
[2022022,5], // Tempura (Dish)
[4010006,2], // Gold Ore
[2022019,10], // Kinoko Ramen (Pig Bone)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2022022,10], // Tempura (Dish)
[2022022,15], // Tempura (Dish)
[2001002,15], // Red Bean Sundae
[2001001,15], // Ice Cream Pop
[1102043,1]); // Brown Adventurer Cape
eQuestPrizes[68] = new Array ([4010004,5], // Silver Ore - Bodyguard B's Bullet Shell
[2022019,5], // Kinoko Ramen (Pig Bone)
[2022022,15], // Tempura (Dish)
[2022019,15], // Kinoko Ramen (Pig Bone)
[2001002,15], // Red Bean Sundae
[2001001,15], // Ice Cream Pop
[1102043,1]); // Brown Adventurer Cape
eQuestPrizes[69] = new Array ([2000006,1], // Mana Elixir - Big Boss's Flashlight
[1082223,1], // Stormcaster Gloves
[1102084,1], // Pink Gaia Cape
[1102086,1], // Purple Gaia Cape
[1072344,1], // Facestompers
[1072275,1], // Fonla's Slippers [1102086,1], // Purple Gaia Cape
[1032048,1], // Crystal Leaf Earrings
[1122007,1]); // Spiegelmann Necklace

// Maple Island

eQuestPrizes[101] = new Array ([2000003,5], // Blue Potion
[2000000,5], // Red Potion
[2002003,5], // Wizard Potion
[2002004,5], // Warrior Potion
[1002008,1]); // Brown SkullCap
eQuestPrizes[102] = new Array ([2000003,5], // Blue Potion
[2000000,5], // Red Potion
[2002003,5], // Wizard Potion
[2002004,5], // Warrior Potion
[1002067,1]); // Green Headband
eQuestPrizes[103] = new Array ([2000003,10], // Blue Potion
[2000000,10], // Red Potion
[2002003,5], // Wizard Potion
[2002004,5], // Warrior Potion
[1002066,1]); // Black Headband
eQuestPrizes[104] = new Array ([2000003,10], // Blue Potion
[2000000,10], // Red Potion
[2002003,5], // Wizard Potion
[2002004,5], // Warrior Potion
[1002019,1]); // White Bandana
eQuestPrizes[105] = new Array ([2000003,10], // Blue Potion
[2000000,10], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002424,1]); // Red Sporty Cap
eQuestPrizes[106] = new Array ([2000003,10], // Blue Potion
[2000000,10], // Red Potion
[2002003,10], // Wizard Potion
[2002004,5], // Warrior Potion
[1002425,1]); // Blue Sporty Cap
eQuestPrizes[107] = new Array ([2000003,15], // Blue Potion
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear

// Victoria

eQuestPrizes[151] = new Array ([2000003,15], // Blue Potion - Ribbon Pig
[2000000,15], // Red Potion
[2002003,10], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
eQuestPrizes[191] = new Array ([2022000,40], // Pure Water - Tauraspear
[2022003,30], // Unagi
[2022176,10], // Power Elixir
[2022245,5], // Heartstopper
[2040914,1], // 60% Scroll for Shield for Weapon Att.
[2040919,1]); // 60% Scroll for Shield for Magic Att.

// Florina Beach

eQuestPrizes[201] = new Array ([2000003,15], // Blue Potion - Clang
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
eQuestPrizes[202] = new Array ([2000003,15], // Blue Potion - Torie
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
eQuestPrizes[203] = new Array ([2000003,15], // Blue Potion - Lorang
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
// Ludibium

eQuestPrizes[251] = new Array ([2000003,15], // Blue Potion - Brown Teddy
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
eQuestPrizes[288] = new Array ([2020014,50], // Sunrise Dew - Gate Keeper
[2020013,50], // Reindeer Milk
[1432011,1]); // FairFrozen
eQuestPrizes[289] = new Array ([2000003,15], // Blue Potion - Dark Tachion(Papulatus)
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
// Mu Lung

eQuestPrizes[301] = new Array ([2000003,15], // Blue Potion - Acorn)
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
eQuestPrizes[319] = new Array ([2000003,15], // Blue Potion - Captain's Hat
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
// Leafre

eQuestPrizes[351] = new Array ([2000003,15], // Blue Potion - Rash's Furball
[2000000,15], // Red Potion
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear
eQuestPrizes[381] = new Array ([2022000,40], // Pure Water - Old Neck Bone
[2022003,30], // Unagi
[2002003,5], // Wizard Potion
[2002004,10], // Warrior Potion
[1002001,1]); // Metal Gear

var status = -1;
var i = 0;
var requiredItem = 0;
var lastSelection = 0;
var prizeItem = 0;
var prizeQuantity = 0;
var g = 0;
var itemSet;
var IslandUsed = 0;

function start() {
status = -1;
action(1, 0, 0);
}

function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}else{
if (mode == 0) {
cm.sendOk("Your decisions need more thought!");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) { // First Interaction
cm.sendYesNo("I am Staff Sergant Charlie!.#e#d" +
"#k\r\n Would you like to exchange etc items for a random item?");
}
if (status == 1) {
cm.sendSimple(showIslands()); // Display Islands
}
if (status == 2) {
IslandUsed = selection;
if(selection == 0){ cm.sendSimple(makeChoices(eOrbisChoices)); // Display items for Orbis
}else if(selection == 1){ cm.sendSimple(makeChoices(eShowaChoices)); // Display items for Showa
}else if(selection == 2){ cm.sendSimple(makeChoices(eMapleIslandChoices)); // Display items for Maple Island
}else if(selection == 3){ cm.sendSimple(makeChoices(eVictoriaChoices)); // Display items for Victoria
}else if(selection == 4){ cm.sendSimple(makeChoices(eFlorinaChoices)); // Display items for Florina Beach
}else if(selection == 5){ cm.sendSimple(makeChoices(eLudiChoices)); // Display items for Ludibrium
}else if(selection == 6){ cm.sendSimple(makeChoices(eMuLungChoices)); // Display items for Mu Lung
}else if(selection == 7){ cm.sendSimple(makeChoices(eLeafreChoices)); // Display items for Leafre
}
}
if (status == 3) {
lastSelection = (IslandUsed*50)+1+selection;
requiredItem = getchoice(selection);
cm.sendYesNo("Let's see, you want to trade your #b100 #t" + requiredItem + "##k with my stuff right? Before trading make sure you have an empty slot available on your use or etc. inventory. Now, do you want to trade with me?");
}
if (status == 4){
itemSet = (Math.floor(Math.random() * GetPrize().length));
reward = GetPrize();
prizeItem = reward[itemSet][0];
prizeQuantity = reward[itemSet][1];
if(!cm.haveItem(requiredItem,100)){
cm.sendOk("Hmmm... are you sure you have #b100 #t" + requiredItem + "s##k? If so, then please check and see if your item inventory is full or not.");
} else if(!cm.canHold(prizeItem)){
cm.sendNext("Your use and etc. inventory seems to be full. You need the free spaces to trade with me! Make room, and then find me.");
} else {
cm.gainItem(requiredItem,-100);
cm.gainExp(geteExp() * cm.getC().getChannelServer().getExpRate());
if(eQuestPrizes[lastSelection] == null){
cm.sendOk("Since this item has not yet been given a prize. You have been given the experience but no items.");
}else{
cm.gainItem(prizeItem, prizeQuantity);
cm.sendOk("For your #b100 #t"+requiredItem+"##k, here's my #b"+prizeQuantity+" #t"+prizeItem+"##k. What do you think? Do you like the items I gave you in return? I plan on being here for a while, so if you gather up more items, I'm always open for a trade ...");
}
}
cm.dispose();
}
}
}

function makeChoices(a){

var result = "Ok! First you need to choose the item that you'll trade with. The better the item, the more likely the chance that I'll give you something much nicer in return.\r\n";
for (var x=0; x< a.length; x++){
result += " #L" + x + "##v" + a[x] + "# #t" + a[x] + "##l\r\n";
}
return result;
}

function showIslands(){

var result = "Select which island your etc item is originally from.\r\n";
for (var x=0; x< eIslands.length; x++){
result += " #L" + x + "#" + eIslands[x] + " #t" + eIslands[x] + "##l\r\n";
}
return result;
}

function getchoice(b){
var result;
if (IslandUsed == 0)result = eOrbisChoices; // Get item selected from Orbis
if (IslandUsed == 1)result = eShowaChoices; // Get item selected from Zipangu
if (IslandUsed == 2)result = eMapleIslandChoices; // Get selected item from Maple Island
if (IslandUsed == 3)result = eVictoriaChoices; // Get item selected from Victoria
if (IslandUsed == 4)result = eFlorinaChoices; // Get item selected from Florina
if (IslandUsed == 5)result = eLudiChoices; // Get item selected from Ludibrium
if (IslandUsed == 6)result = eMuLungChoices; // Get item selected from Mu Lung
if (IslandUsed == 7)result = eLeafreChoices; // Get item selected from Leafre
return result;
}

function geteExp(){ //Experience Given after items are supplied
if (IslandUsed == 0) result = 1000; // Orbis
if (IslandUsed == 1) result = 1500; // Showa Town
if (IslandUsed == 2) result = 250; // Maple Island
if (IslandUsed == 3) result = 500; // Victoria
if (IslandUsed == 4) result = 7500; // Florina
if (IslandUsed == 5) result = 3000; // Ludibrium
if (IslandUsed == 6) result = 1000; // My Lung
if (IslandUsed == 7) result = 5000; // Leafre
return result;
}

function GetPrize(){
var result;
if (eQuestPrizes[lastSelection] == null){ // If the selected item does not have an array for a prize
result = eQuestPrizes[151]; // Use Pig Ribbon's array
}else{
result = eQuestPrizes[lastSelection] // If the selected item does have an array then use what was selected
}
return result;
}


Currently Done Exchange Quests not including Orbis and Showa Town which are already done
--------------------
Maple Island
--------------------

Green Snail Shell:
Red Potion x5
Blue Potion x5
Wizard Potion x5
Warrior Potion x5
Brown Skullcap x1

Blue Snail Shell:
Red Potion x5
Blue Potion x5
Wizard Potion x5
Warrior Potion x5
Green Headband x1

Mushroom Spore:
Red Potion x10
Blue Potion x10
Wizard Potion x5
Warrior Potion x5
Black Headband x1

Tree Branch:
Red Potion x10
Blue Potion x10
Wizard Potion x5
Warrior Potion x5
White Bandana x1

Red Snail Shell:
Red Potion x10
Blue Potion x10
Wizard Potion x5
Warrior Potion x10
Red Sporty Cap x1

Squishy Liquid:
Red Potion x10
Blue Potion x10
Wizard Potion x10
Warrior Potion x5
Blue Sporty Cap x1

Orange Mushroom cap:
Red Potion x15
Blue Potion x15
Wizard Potion x5
Warrior Potion x10
Metal Gear x1


--------------------

Ossyria

--------------------

Lucida
Topaz Ore x9
Black Crystal Ore x4
Diamond Ore x4
Cape for Dex 10% x1

--------------------

Zipangu

--------------------

Crow
Mana Elixir x1
Blue Potion x5
White Potion x5
Topaz Ore x2
Garnet Ore x2
Opal Ore x2
Blue Potion x10
Blue Potion x 20

Racoon
White Potion x5
Topaz Ore x2
White Potion x10
Blue Potion x10
White Potion x20
Blue Potion x20
Takayaki x15
Takisoba (Octopus Ball) x15

Cloud Fox
White Potion x5
Blue Potion x5
Garnet Ore x2
Blue Potion x10
White Potion x10
White Potion x20
White Potion x20
Takoyaki (Octopus Ball) x15
Pink Bandana x1

Lantern
White Potion x5
Blue Potion x5
Garnet Ore x2
Blue Potion x10
White Potion x10
White Potion x20
White Potion x20
Takoyaki (Octopus Ball) x15
Pink Bandana x1

Dark Cloud Fox
White Potion x5
Blue Potion x5
Garnet Ore x2
Blue Potion x10
White Potion x10
White Potion x20
White Potion x20
Takoyaki (Octopus Ball) x15
Pink Bandana x1

Littleman A
Silver Ore x2
Gold Ore x2
Tempura (Dish) x5
Tempura (Dish) x10
Tempura (Dish) x15
Kinoko Ramen (Pig Bone) x5
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Red Bean Sundae x15
Ice Cream Pop x15
Yellow Adventurer Cape x1
Brown Adventurer Cape x1

Littleman B
Kinoko Ramen (Pig Bone) x5
Mana Elixir x5
Mithril Ore x2
Adamantium Ore x2
Mana Elixir x10
Mana Elixir x15
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000
Grey Work Gloves x1
Brown Work Gloves x1

Littleman C Blue Potion x5
White Potion x5
Blue Potion x10
Blue Potion x20
White Potion x10
White Potion x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000
Yakisoba 15
Purple Bandana x1

Three-Tailed Foxtail
Mana Elixir x5
Adamantium Ore x2
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Mana Elixir x10
Mana Elixir x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000

Water Golem
Mana Elixir x5
Adamantium Ore x2
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Mana Elixir x10
Mana Elixir x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000

Ghost
Tempura (Dish) x5
Gold Ore x2
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Tempura (Dish) x10
Tempura (Dish) x15
Red Bean Sundae x15
Ice Cream Pop x15
Brown Adventurer Cape x1

Leader A
Kinoko Ramen (Pig Bone) x5
Tempura (Dish) x15
Kinoko Ramen (Pig Bone) x15
Red Bean Sundae x15
Ice Cream Pop x15
Brown Adventurer Cape x1

Leader B
Black Crystal Ore x15
Kinoko Ramen (Roasted Pork) x5
Kinoko Ramen (Roasted Pork) x10
Kinoko Ramen (Roasted Pork) x15
Pure Water x10
Pure Water x20
Takoyaki (Jumbo) x15

Subordinate
Blue Potion x5
White Potion x5
Blue Potion x10
Blue Potion x20
White Potion x10
White Potion x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000
Yakisoba x15
Purple Bandana x1

Male Boss
Mana Elixir x5
Adamantium Ore x2
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Mana Elixir x10
Mana Elixir x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000

Dreamy Ghost
Mana Elixir x5
Adamantium Ore x2
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Mana Elixir x10
Mana Elixir x15
Red Arrow for Bow x1000
Blue Arrow for Crossbow x1000

BodyGaurd A
Tempura (Dish) x5
Gold Ore x2
Kinoko Ramen (Pig Bone) x10
Kinoko Ramen (Pig Bone) x15
Tempura (Dish) x10
Tempura (Dish) x15
Red Bean Sundae x15
Ice Cream Pop x15
Brown Adventurer Cape x1

BodyGaurd B
Kinoko Ramen (Pig Bone) x5
Tempura (Dish) x15
Kinoko Ramen (Pig Bone) x15
Red Bean Sundae x15
Ice Cream Pop x15
Brown Adventurer Cape x1

Big Boss's Flashlight
Stormcaster Gloves x1
Pink Gaia Cape x1
Purple Gaia Cape x1
Facestompers x1
Fonla's Slippers x1
Purple Gaia Cape x1
Crystal Leaf Earrings x1
Spiegelmann Necklace x1


--------------------

Victoria

--------------------

Red Ribbon
Red Potion x 15
Wizard Potion x 10
Warrior Potion x 10
Metal Gear x1

Tauraspear
Pure Water x40
Unagi x30
Hearstopper x5
60% Scroll for Shield for Weapon Att. x1
60% Scroll for Shield for Magic Att. x1


--------------------

Florina Beach

--------------------

Clang Claw
Red Potion x 15
Wizard Potion x 5
Warrior Potion x 10
Metal Gear x1

Tortie's Shell
Red Potion x15
Wizard Potion x5
Warrior Potion x10
Metal Gear x1

Lorang Claw
Red Potion x15
Wizard Potion x5
Warrior Potion x10
Metal Gear x1


--------------------

Ludibrium

--------------------

Teddy's Cotton
Blue Potion x15
Red Potion x15
Wizard Potion x5
Warrior Potion x10

Gate Keepers Armband
Reindeer Milk x50
Sunrise Dew x50
FairFrozen x1

Dark Tachion(Papulatus)
Blue Potion x15
Red Potion x15
Wizard Potion x5
Warrior Potion x10
Metal Gear x1

Credits to:
Sean360(from Odin for the original Exchange Quests)
Myself(Mapster)

Any help/constructive criticm/suggestions are welcome.

Cheers,
Mapster
 

Attachments

  • 1 - [DEV]World Exchange Quest - RaGEZONE Forums
    1.webp
    82.5 KB · Views: 243
  • 2 - [DEV]World Exchange Quest - RaGEZONE Forums
    2.webp
    82.8 KB · Views: 191
  • 3 - [DEV]World Exchange Quest - RaGEZONE Forums
    3.webp
    78.9 KB · Views: 178
  • 4 - [DEV]World Exchange Quest - RaGEZONE Forums
    4.webp
    76.2 KB · Views: 168
  • 5 - [DEV]World Exchange Quest - RaGEZONE Forums
    5.webp
    86.1 KB · Views: 148
Last edited:
People don't read old posts and sorry about the tripple post.
The script isn't fully done as not every item has an array for the rewards which is why i havn't posted it in the release section as it's still in development.
 
I put in the first and last etc item of each island to show where the array starts and ends. Each island starts at a multiple of 50 so lets say you want to know where zipangu starts.
Find out which position it is on the variable (eIslands) and multiply that by 50 and add on 1.

I left space in each island for additional items as i am certain i left out 1 or 2 items by mistake.
 
Status
Not open for further replies.
Back