Dimensional mirror NPC

Newbie Spellweaver
Joined
Jul 1, 2008
Messages
49
Reaction score
5
PHP:
importPackage(Packages.client);

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

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (status == 0 && mode == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if(status == 0){
			cm.ChangeIT("#1# Mu Lung Training Center#2# Monster Carnival 1#3# Monster Carnival 2#4# Nett's Pyramid#5# Kerning Subway");
		}
		if(status == 1){
			if(selection == 1)
			  cm.warp(925020000);
			  else if(selection == 2)
			  cm.warp(980000000);
			  else if(selection == 3)
			  cm.warp(980030000);
			else if(selection == 4)
			  cm.warp(926010000);
                          else if(selection == 5)
                          cm.warp(IDK WHAT MAP OF KERNING SUBWAY XD);
			}
		}
	}
Just need to change ChangeIT to the askMapSelection or somthing like that, oh and change map of Kerning subway
First credit for Resonance

Enjoy!
and don't forgot to thank me:P
 
Why the #number pq place? It's not neccessary I think o-o.
But good job I assume ;D.
 
Please post this "askMapSelection" method you are talking about....

LOL already released(not by me).
but take it
PHP:
    public void sendMirror(String text){
getClient().getSession().write(MaplePacketCreator. getNPCMapStyle(npc, text));
}
 
Why do you need to make a NPC Script?

just define it in NPCTalkHandler ...
 
PHP:
importPackage(Packages.client);

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

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (status == 0 && mode == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if(status == 0){
			cm.ChangeIT("#1# Mu Lung Training Center#2# Monster Carnival 1#3# Monster Carnival 2#4# Nett's Pyramid#5# Kerning Subway");
		}
		if(status == 1){
			if(selection == 1)
			  cm.warp(925020000);
			  else if(selection == 2)
			  cm.warp(980000000);
			  else if(selection == 3)
			  cm.warp(980030000);
			else if(selection == 4)
			  cm.warp(926010000);
                          else if(selection == 5)
                          cm.warp(IDK WHAT MAP OF KERNING SUBWAY XD);
			}
		}
	}
Just need to change ChangeIT to the askMapSelection or somthing like that, oh and change map of Kerning subway
First credit for Resonance

Enjoy!
and don't forgot to thank me:P

Nice script, but i thought Dimensional Mirror npc have level check
 
I used celino Mirror of Dimension Npc and edited it to Msea based.
Code:
function start() {
    var lvl = cm.getPlayer().getLevel();
    if (lvl > 80) {
	cm.askMapSelection("#1# Mu Lung Training Center#5# Nett's Pyramid#8# Golden Temple");
    } else if (lvl > 69) {
	cm.askMapSelection("#1# Mu Lung Training Center#4# Dual Raid#5# Nett's Pyramid#8# Golden Temple");
    } else if (lvl >= 60) {
	cm.askMapSelection("#1# Mu Lung Training Center#3# Monster Carnival 2#4# Dual Raid#5# Nett's Pyramid#8# Golden Temple");
    } else if (lvl >= 51) {
	cm.askMapSelection("#1# Mu Lung Training Center#3# Monster Carnival 2#5# Nett's Pyramid#8# Golden Temple");
    } else if (lvl >= 31) {
	cm.askMapSelection("#1# Mu Lung Training Center#2# Monster Carnival 1#8# Golden Temple");
    } else if (lvl == 30) {
	cm.askMapSelection("#0# Ariant Coliseum #1# Mu Lung Training Center#3#Monster Carnival 1#6# Not Available#8# Golden Temple");
    } else if (lvl >= 25) {
	cm.askMapSelection("#0# Ariant Coliseum #1# Mu Lung Training Center #6# Not Available#8# Golden Temple");
    } else if (lvl >= 20) {
	cm.askMapSelection("#0# Ariant Coliseum #8# Golden Temple");
    } else if (lvl >= 15) {
	cm.askMapSelection("#8# Golden Temple");
    } else if (lvl < 15) {
	cm.askMapSelection("#-1# There is no place for you to transport to from here.");
    }
    //cm.askMapSelection("#1# Mu Lung Training Center#2# Monster Carnival 1#3# Monster Carnival 2#4# Dual Raid#5# Nett's Pyramid#6# Kerning Subway");
}

function action(mode, type, selection) {
    if (mode == 1) {
	switch (selection) {
	    case 0:
		if (cm.getPlayerStat("LVL") >= 20 && cm.getPlayerStat("LVL") <=30) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(980010000, 4);
		}
		break;
	    case 1:
		if (cm.getPlayerStat("LVL") >= 25) {
		    cm.saveLocation("MULUNG_TC");
		    cm.warp(925020000, 0);
		}
		break;
	    case 2:
		if (cm.getPlayerStat("LVL") >= 30 && cm.getPlayerStat("LVL") <= 50) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(980000000, 4);
		}
		break;
	    case 3:
		if (cm.getPlayerStat("LVL") >= 30 && cm.getPlayerStat("LVL") <= 50) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(980030000, 4);
		}
		break;
	    case 4:
		if (cm.getPlayerStat("LVL") >= 60 && cm.getPlayerStat("LVL") <= 80) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(923020000, 0);
		}
		break;
	    case 5:
		if (cm.getPlayerStat("LVL") >= 40) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(926010000, 4);
		    break;
		}
		break;
	    case 6:
		if (cm.getPlayerStat("LVL") >= 25 && cm.getPlayerStat("LVL") <= 30) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(910320000, 2);
		    break;
		}
		break;
	    case 8:
		if (cm.getPlayerStat("LVL") >= 15) {
		    cm.saveLocation("MULUNG_TC"); // h4x
		    cm.warp(950100000, 2);
		    break;
		}
		break;
	    }
      }
      cm.dispose();
}
This Npc is not 100% same as Msea.
 
Back