• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[v83 Help] Client crashes with JQ NPC

Newbie Spellweaver
Joined
Jan 18, 2014
Messages
26
Reaction score
0
So, I've made a script where an NPC will teleport a player into a jump quest. But, as soon as they select a map, it teleports them there, then it crashes the client? Meh XD

Code:
/****	Script: Jump Quest NPC
*	Author: Delta / DigitalAbuse
***/


importPackage(Packages.tools);


maps = [
		["Valley of Heroes", 610020000], ["Breath of Lava", 280020000], ["Ghost Chimney", 682000200], 
		["Ola Ola", 109030002], ["Fitness Test", 109040000], ["Forest of Patience", 101000100], 
		["Deep Forest of Patience", 105040310]
]; 


function start() { 
    var talk = "Hello, I'm #rBunurt#k, the #rJump Quest#k NPC!\r\nWhat jump quest will you be doing today?"; 
    for(var j = 0; j < maps.length; j++) 
        talk += "\r\n#L"+j+"#"+maps[j][0]+"#l"; 
    cm.sendSimple(talk); 
} 


function action(m, t, s) { 
    cm.dispose(); 
    if(m > 0){ 
        cm.warp(maps[s][1]); 
        cm.sendOk("Make it to the top for a prize!"); 
        cm.getClient().getChannelServer().getWorldInterface().broadcastMessage(null, MaplePacketCreator.serverNotice(6, "#h # has started the Jump Quest!").getBytes()); 
    } 
}
 
Back
Top