Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Advanced "Advanced" Teleporter

Master Summoner
Loyal Member
Joined
Nov 30, 2007
Messages
511
Reaction score
0
Haven't tested it, but idk, it should work. Tell me if it doesn't! The original script hurt my eyes. 8(

PLZ USE TEH ADVANCED VERSION OF THIS ADVANCED VERSION OF THIS ADVANCED SCRIPT TY
PHP:
 /* Credits: Mikethemak of Ragezone
	Modified by iGoofy
*/
var bossmaps = Array(100000005, 105070002, 105090900, 230040420, 280030000, 220080001, 240020402, 240020**** 801040**** 240060200); // Someone else's House, The Grave of Mushmom, The cursed Sanctuary, The Cave of Pianus, Zakums Altar, Origin of Clocktower, Manons Forest, Griffey Forest, The Nightmarish Last Days, Horntails Cave
var monstermaps = Array(100040001, 101010**** 104040000, 103000**** 103000**** 101030**** 106000002, 101030103, 101040001, 101040003, 101030001, 104010001, 105070001, 105090300, 105040306, 230020000, 230010400, 211041400, 222010000, 220080000, 220070301, 220070201, 220050300, 220010500, 250020000, 251010000, 200040000, 200010301, 240020**** 240040500, 240040000, 600020300, 801040004, 800020130); // Dungeon Southern Forest I, Tree that Grew 1, Henesys Hunting Ground 1, Line 1 Area 1, Line 1 Area 4, Camp 1, Dangerous Valley II, Excavation Site III, Land of Wild Boar, Iron Boar Land, The Land of Wild Boar II, The Pig Beach, Ant Tunnel Park, Drakes Meal Table, The Forest of Golem, Forked Road: East Sea, Forked Road: West Sea, Forest of Dead Trees 4, Entrance to Black Mountain, Deep Inside the Clock Tower, Forbidden Time, Lost Time, Path of Time, Terrace Hall, Practice Field, Beginner, 10-Year-Old Herb Garden, Cloud Park 3, Garden of Darkness 1, Battlefield of Fire & Darkness, Entrance to Dragon Nest, The Dragon Canyon, Wolf Spider Cavern, Armory, Encounter with the Budda, 
var townmaps = Array(100000000, 680000000, 230000000, 101000000, 211000000, 100000000, 100000000, 251000000, 103000000, 222000000, 104000000, 240000000, 220000000, 250000000, 800000000, 600000000, 221000000, 200000000, 102000000, 801000000, 105040300, 100000000); // Amherst, Amoria, Aquarium, Ellinia, El Nath, Entrance - Mushroom Town Training Camp, Henesys, Herb Town, Kerning City, Korean Folk Town, Leafre, Lith Harbor, Ludibrium, Mu Lung, Mushroom Shrine, New Leaf City, Omega Sector, Orbis, Perion, Showa Town, Sleepywood, Southperry

var type;
var chosen;

function start() {
 status = -1;
 action(1, 0, 0);
}
function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
		if (status >= 4 && mode == 0) {
			cm.sendOk("Well, okay.");
			cm.dispose();
			return;                    
        }
	if (mode == 1) {
		status++;
		} else {
			status--;
		}
        if (status == 0) {
            cm.sendNext("*Snickers*\r\nOh, what's so funny, you ask? Well, I snagged a book of magic from #rGrendel the Really Old#k is what! The old fart didn't even see it coming. Anyway, I've been practicing a teleportation spell, and I think I've got it down! I'm feeling charitable, so I'll take you anywhere you wish upon request!");                  
        }
         if (status == 1) {
            cm.sendSimple("#L0#Teleport#l\r\n#L1#Nevermind#l");
        }
		if (status == 2) {
            if (selection == 0) {
                cm.sendSimple("#L0#Towns#l\r\n#L1#Bosses#l\r\n#L2#MonsterMaps#l\r\n#L3#Nevermind#l");
            } else {
				cm.dispose();
			}
		}
        if (status == 3) {
			var text = "All righty. Just type in the number of the map you want to go to!";
			switch(selection) {
				case 0:
					//cm.sendGetNumber("Where would you like to go? \r\n #bTowns#k\r\n \r\n (1) Henesys\r\n (2) Kerning\r\n (3) Perion\r\n (4) Ellinia\r\n (5) Sleepywood\r\n (6) Orbis\r\n (7) Ludi\r\n (8) ElNath\r\n (9) Omega\r\n (10) KFT\r\n (11) Aqua\r\n (12) Leafre\r\n (13) MuLung\r\n (14) HerbTown\r\n (15) NLC\r\n (16) Amoria\r\n (17) Showa\r\n (18) Ariant \r\n #bType the number next to your selection here.");
					for (var i = 0; i < townmaps.length; i++) {
						text += "\r\n (" + i + ") " + net.sf.odinms.server.maps.MapleMapFactory.getMap(townmaps[i]).getName();
					}
					cm.sendGetNumber(text);
					type = 0; // Towns
				break;
				case 1:
					//cm.sendGetNumber("Where would you like to go? \r\n #bBosses#k\r\n \r\n (1) Mushmom\r\n (2) Zombie Mushmom\r\n (3) Balrog\r\n (4) Pianus\r\n (5) Zakum\r\n (6) Papu\r\n (7) Manon\r\n (8) Griffey\r\n (9) Horseman\r\n (10) Horntail\r\n (11) Crow\r\n \r\n #bType the number next to your selection here.");
					for (var i = 0; i < bossmaps.length; i++) {
						text += "\r\n (" + i + ") " + net.sf.odinms.server.maps.MapleMapFactory.getMap(bossmaps[i]).getName();
					}
					cm.sendGetNumber(text);
					type = 1; // Bosses
				break;
				case 2:
					//cm.sendGetNumber("Where would you like to go? \r\n #bMonster Maps#k\r\n \r\n (1) Henesys Hunting Ground 1\r\n (2) Forest of the Golem\r\n  \r\n #bType the number next to your selection here.");
					for (var i = 0; i < monstermaps.length; i++) {
						text += "\r\n (" + i + ") " + net.sf.odinms.server.maps.MapleMapFactory.getMap(monstermaps[i]).getName();
					}
					type = 2; // Blob (Wtf?)
				break;
				case 3:
					cm.dispose();
				break;
			}
		
		}
        if (status == 4) {
			chosen = selection;
			if (type == 0) {
				cm.sendYesNo("Are you sure you want to go to #b" + net.sf.odinms.server.maps.MapleMapFactory.getMap(townmaps[chosen]).getName() + "#k?");
			}
			if (type == 1) {
				cm.sendYesNo("Are you sure you want to go to #b" + net.sf.odinms.server.maps.MapleMapFactory.getMap(bossmaps[chosen]).getName() + "#k?");
			}
			if (type == 2) {
				cm.sendYesNo("Are you sure you want to go to #b" + net.sf.odinms.server.maps.MapleMapFactory.getMap(monstermaps[chosen]).getName() + "#k?");
			}
        }
		if (status == 5) {
			switch(type) {
				case 0:
					cm.warp(townmaps[chosen]);
					cm.dispose();
				break;
				case 1:
					cm.warp(bossmaps[chosen]);
					cm.dispose();
				break;
				case 2:
					cm.warp(monstermaps[chosen]);
					cm.dispose();
				break;
			}
		}
	}
}
 
Last edited:
Back
Top