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!

New Teleporting System + Script [UPDATED]

Experienced Elementalist
Joined
Jun 19, 2008
Messages
233
Reaction score
0

Thanks to "Stars0fLight" For giving out the cm.SendGetText command.
Azora - New Teleporting System + Script [UPDATED] - RaGEZONE Forums

Orginal Thread: http://forum.ragezone.com/showthread.php?t=453110


UPDATED more towns.
PHP:
/* New Teleport System VIP CAB created by Azora
*/

var status = 0;

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

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 0 && status == 0) {
            cm.sendOk("Alright..");
            cm.dispose();
            return;
        }
        
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {
            cm.sendGetText("     Hello i can warp you to many towns!\r\n#d                       #k\r\n\r\n   Towns:\r\n    El Nath\r\n    Ludibrium\r\n    Henesys\r\n    Ellinia\r\n    Showa Town\r\n    Korea Folk Town\r\n    Orbis\r\n    Perion\r\n    Kerning City\r\n    New Leaf\r\n    Leafre\r\n    Zipangu\r\n    Sleepywood\r\n    Dungeon\r\n    Omega Sector\r\n    AquaTown\r\n    Mu Lung\r\n    Herb Town\r\n    Amoria\r\n    #d(Please write the town you want to go to)");
        }
        else if (status == 1) {
            if (cm.getText().equals("henesys")) {
                cm.warp(100000000, 0);
                cm.sendOk("Welcome to #bHenesys#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Henesys")) {
                cm.warp(100000000, 0);
                cm.sendOk("Welcome to #bHenesys#k");
                cm.dispose();
            }
            else if (cm.getText().equals("kerning city")) {
                cm.warp(103000000, 0);
                cm.sendOk("Welcome to #bKerning City#k");
                cm.dispose();
            }
            else if (cm.getText().equals("kerning")) {
                cm.warp(103000000, 0);
                cm.sendOk("Welcome to #bKerning City#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Ellinia")) {
                cm.warp(101000000, 0);
                cm.sendOk("Welcome to #bEllinia#k");
                cm.dispose();
            }
            else if (cm.getText().equals("ellinia")) {
                cm.warp(101000000, 0);
                cm.sendOk("Welcome to #bEllinia#k");
                cm.dispose();
            }
            else if (cm.getText().equals("orbis")) {
                cm.warp(200000000, 0);
                cm.sendOk("Welcome to #bOrbis#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Orbis")) {
                cm.warp(200000000, 0);
                cm.sendOk("Welcome to #bOrbis#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Perion")) {
                cm.warp(102000000, 0);
                cm.sendOk("Welcome to #bPerion#k");
                cm.dispose();
            }
            else if (cm.getText().equals("perion")) {
                cm.warp(102000000, 0);
                cm.sendOk("Welcome to #bPerion#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Sleepywood")) {
                cm.warp(105040300, 0);
                cm.sendOk("Welcome to #bDungeon / Sleepywood#k");
                cm.dispose();
            }
            else if (cm.getText().equals("sleepywood")) {
                cm.warp(105040300, 0);
                cm.sendOk("Welcome to #bDungeon / Sleepywood#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Dungeon")) {
                cm.warp(105040300, 0);
                cm.sendOk("Welcome to #bDungeon / Sleepywood#k");
                cm.dispose();
            }
            else if (cm.getText().equals("dungeon")) {
                cm.warp(105040300, 0);
                cm.sendOk("Welcome to #bDungeon / Sleepywood#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Ludibrium")) {
                cm.warp(220000000, 0);
                cm.sendOk("Welcome to #bLudibrium#k");
                cm.dispose();
            }
            else if (cm.getText().equals("ludibrium")) {
                cm.warp(220000000, 0);
                cm.sendOk("Welcome to #bLudibrium#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Ludi")) {
                cm.warp(220000000, 0);
                cm.sendOk("Welcome to #bLudibrium#k");
                cm.dispose();
            }
            else if (cm.getText().equals("ludi")) {
                cm.warp(220000000, 0);
                cm.sendOk("Welcome to #bLudibrium#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Elnath")) {
                cm.warp(211000000, 0);
                cm.sendOk("Welcome to #bEl nath#k");
                cm.dispose();
            }
            else if (cm.getText().equals("El nath")) {
                cm.warp(211000000, 0);
                cm.sendOk("Welcome to #bEl nath#k");
                cm.dispose();
            }
            else if (cm.getText().equals("elnath")) {
                cm.warp(211000000, 0);
                cm.sendOk("Welcome to #bel nath#k");
                cm.dispose();
            }
            else if (cm.getText().equals("el nath")) {
                cm.warp(211000000, 0);
                cm.sendOk("Welcome to #bEl nath#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Omega Sector")) {
                cm.warp(221000000, 0);
                cm.sendOk("Welcome to #bOmega Sector#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Omega")) {
                cm.warp(221000000, 0);
                cm.sendOk("Welcome to #bOmega Sector#k");
                cm.dispose();
            }
            else if (cm.getText().equals("omega Sector")) {
                cm.warp(221000000, 0);
                cm.sendOk("Welcome to #bOmega Sector#k");
                cm.dispose();
            }
            else if (cm.getText().equals("omega")) {
                cm.warp(221000000, 0);
                cm.sendOk("Welcome to #bOmega Sector#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Korea Folktown")) {
                cm.warp(222000000, 0);
                cm.sendOk("Welcome to #bKorea Folktown#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Korea folktown")) {
                cm.warp(222000000, 0);
                cm.sendOk("Welcome to #bKorea Folktown#k");
                cm.dispose();
            }
            else if (cm.getText().equals("korea Folktown")) {
                cm.warp(222000000, 0);
                cm.sendOk("Welcome to #bKorea Folktown#k");
                cm.dispose();
            }
            else if (cm.getText().equals("korea folktown")) {
                cm.warp(222000000, 0);
                cm.sendOk("Welcome to #bKorea Folktown#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Korea")) {
                cm.warp(222000000, 0);
                cm.sendOk("Welcome to #bKorea Folktown#k");
                cm.dispose();
            }
            else if (cm.getText().equals("korea")) {
                cm.warp(222000000, 0);
                cm.sendOk("Welcome to #bKorea Folktown#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Leafre")) {
                cm.warp(240000000, 0);
                cm.sendOk("Welcome to #bLeafre#k");
                cm.dispose();
            }
            else if (cm.getText().equals("leafre")) {
                cm.warp(240000000, 0);
                cm.sendOk("Welcome to #bLeafre#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Mu Lung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("mu lung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Mu lung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("mu Lung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("mu lung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("MuLung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Mulung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("mulung")) {
                cm.warp(250000000, 0);
                cm.sendOk("Welcome to #bMu Lung#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Herb Town")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("herb Town")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Herb town")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("herb town")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("HerbTown")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("herbTown")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Herbtown")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("herbtown")) {
                cm.warp(251000000, 0);
                cm.sendOk("Welcome to #bHerb Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("New Leaf")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("NewLeaf")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("New leaf")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("new Leaf")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("new leaf")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("newleaf")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("NL")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("nl")) {
                cm.warp(600000000, 0);
                cm.sendOk("Welcome to #bNew Leaf#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Amoria")) {
                cm.warp(680000000, 0);
                cm.sendOk("Welcome to #bAmoria#k");
                cm.dispose();
            }
            else if (cm.getText().equals("amoria")) {
                cm.warp(680000000, 0);
                cm.sendOk("Welcome to #bAmoria#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Zipangu")) {
                cm.warp(800000000, 0);
                cm.sendOk("Welcome to #bZipangu#k");
                cm.dispose();
            }
            else if (cm.getText().equals("zipangu")) {
                cm.warp(800000000, 0);
                cm.sendOk("Welcome to #bZipangu#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Showa")) {
                cm.warp(801000000, 0);
                cm.sendOk("Welcome to #bShowa Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("Showa Town")) {
                cm.warp(801000000, 0);
                cm.sendOk("Welcome to #bShowa Town#k");
                cm.dispose();
            }
            else if (cm.getText().equals("showa town")) {
                cm.warp(801000000, 0);
                cm.sendOk("Welcome to #bShowa Town#k");
                cm.dispose();
            }
            else {
                cm.sendOk("Something went wrong!\r\nPlease type the correct name of the town you wish to go to!\r\n\r\nRemember there may be some towns not available in this version!"); 
                cm.dispose();
            }
        }
    }
}
Script orginal creator: Stars0fLight
Adding All towns + misstyped towns: Azora

Copy or Download:

How to do: Right click at the File 'Open' choose Note pad and save it as a .js File.

NOTICE: Aqua town is not added.
 
Last edited:
Newbie Spellweaver
Joined
Jan 6, 2008
Messages
31
Reaction score
0
Re: [Release] New Teleporting System + Script

Wow... a nice system you have there...
Do i need to add something to the source to add the npc script?
 
Newbie Spellweaver
Joined
Apr 21, 2008
Messages
48
Reaction score
0
Re: [Release] New Teleporting System + Script

Nice release, I might use it =O
 
Newbie Spellweaver
Joined
Jul 18, 2008
Messages
81
Reaction score
1
Re: [Release] New Teleporting System + Script

Didn't even use .equalsIgnoreCase...
 
Newbie Spellweaver
Joined
Jun 24, 2008
Messages
76
Reaction score
0
Re: [Release] New Teleporting System + Script

wow this powns :D
 
Master Summoner
Loyal Member
Joined
Mar 4, 2007
Messages
564
Reaction score
1
Re: [Release] New Teleporting System + Script

I think releasing something this complex on RzG might be a bad idea.
/sarcasm

But nice release, I suppose. :eek:
 
Initiate Mage
Joined
Aug 15, 2008
Messages
2
Reaction score
0
Re: [Release] New Teleporting System + Script

I love this! Thanks a lot. Btw, the 'Henesys' warps you to Kerning. ID of Henesys = 100000000
 
Experienced Elementalist
Joined
Jun 19, 2008
Messages
233
Reaction score
0
Re: [Release] New Teleporting System + Script

I love this! Thanks a lot. Btw, the 'Henesys' warps you to Kerning. ID of Henesys = 100000000

I don't have time for fixing that ;)
 
Initiate Mage
Joined
Aug 15, 2008
Messages
2
Reaction score
0
Re: [Release] New Teleporting System + Script

Idc, it's so niceeeeeee i just keep repeating it over and over again o-o
 
Elite Diviner
Joined
Apr 24, 2008
Messages
416
Reaction score
2
Re: [Release] New Teleporting System + Script

omg if u guys have this then i think i can make a name changer npc out of it let me try xD
 
Legendary Battlemage
Loyal Member
Joined
Dec 7, 2007
Messages
622
Reaction score
11
Re: [Release] New Teleporting System + Script

Thx for the new towns
 
Junior Spellweaver
Joined
Jul 28, 2008
Messages
154
Reaction score
1
Re: [Release] New Teleporting System + Script

Nice release.
 
Experienced Elementalist
Joined
Jul 26, 2008
Messages
280
Reaction score
0
Re: [Release] New Teleporting System + Script

Wow.. a great release finally :)
 
Retired
Joined
Jul 25, 2008
Messages
188
Reaction score
29
Re: [Release] New Teleporting System + Script

Nice release.
 
Junior Spellweaver
Joined
May 26, 2008
Messages
195
Reaction score
0
Re: [Release] New Teleporting System + Script

Update with these since its better english >.>
cm.sendGetText("Hello i can warp you to many towns!\r\n#d(Please write the town you want to go to)#k");

cm.sendOk("Something went wrong!\r\nPlease type the correct name of the town you wish to go to!\r\n\r\nRemember there may be some towns not available in this version!");
 
Experienced Elementalist
Joined
Jun 19, 2008
Messages
233
Reaction score
0
Re: [Release] New Teleporting System + Script

Update with these since its better english >.>
cm.sendGetText("Hello i can warp you to many towns!\r\n#d(Please write the town you want to go to)#k");

cm.sendOk("Something went wrong!\r\nPlease type the correct name of the town you wish to go to!\r\n\r\nRemember there may be some towns not available in this version!");

Bleeh thanks fixed it.
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [Release] New Teleporting System + Script [UPDATED]

Cool release? But... I prefer the old one :)
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release] New Teleporting System + Script [UPDATED]

Its a nice and neat system. I will use it. thanks dude ^^
 
Back
Top