Mapletip変更

Go down

Mapletip変更

投稿 by 構築さん on 2014-05-30, 15:29

scripts.event.automsg

Code:
var setupTask;

function init() {
scheduleNew();
}

function scheduleNew() {
var cal = java.util.Calendar.getInstance();
cal.set(java.util.Calendar.HOUR, 3);
cal.set(java.util.Calendar.MINUTE, 0);
cal.set(java.util.Calendar.SECOND, 0);
var nextTime = cal.getTimeInMillis();
while (nextTime <= java.lang.System.currentTimeMillis()) {
nextTime += 1000 * 60 * 2; // Every 5 minutes
}
setupTask = em.scheduleAtTimestamp("start", nextTime);
}

function cancelSchedule() {
setupTask.cancel(true);
}

function start() {
scheduleNew();
var Message = new Array("Welcome to MS",
"We try our best to make this server perfect.","Please visit website at Http://5.42.230.82 ","Admin [Admin]Wtf! is also lvlapleiland.",
"Julien likes Pie:D",
"We Have a under cover GM so watch out :)","Please enjoy your stay here in.....JulienMs","RosesAintRed is a NUB",
"Please enjoy your stay here in JulienMS",
"HI","DO NOT ADVERTISE FOR OTHER SERVERS=BAN",
"ty to Evan for coding. :) ","Brian is a Homo 8=====D~~~~",
"Dont be a smart ass in this server, we dont allow it.",
"If you would like to have a normal job please PM a GM.","GM's are Julien, [Admin]Brian, [Admin]Wtf! and [GM]WeFlyHigh",
"WAZZZZZZUP","This server doesnt allow hacks of any sort, first offence relates in BAN.");
em.getChannelServer().broadcastPacket(
net.sf.odinms.tools.MaplePacketCreator.serverNotic e(5, "[YOURSERVERNAMEHERETip] : " + Message[Math.floor(Math.random() * Message.length)]));
var iter = em.getInstances().iterator();
while (iter.hasNext()) {
var eim = iter.next();
}
}

こういうところを変更

Code:
var Message = new Array("Welcome to JulienMS enjoy your stay.","This is also a Islander Server!",
"We try our best to make this server perfect.","Please visit website at Http://5.42.230.82 ","Admin [Admin]Wtf! is also lvlapleiland.",
"Julien likes Pie:D",
"We Have a under cover GM so watch out :)","Please enjoy your stay here in.....JulienMs","RosesAintRed is a NUB",
"Please enjoy your stay here in JulienMS",
"HI","DO NOT ADVERTISE FOR OTHER SERVERS=BAN",
"ty to Evan for coding. :) ","Brian is a Homo 8=====D~~~~",
"Dont be a smart ass in this server, we dont allow it.",
"If you would like to have a normal job please PM a GM.","GM's are Julien, [Admin]Brian, [Admin]Wtf! and [GM]WeFlyHigh",
"WAZZZZZZUP","This server doesnt allow hacks of any sort, first offence relates in BAN.");
em.getChannelServer().broadcastPacket(
net.sf.odinms.tools.MaplePacketCreator.serverNotic e(5, "[YOURSERVERNAMEHERETip] : " + Message[Math.floor(Math.random() * Message.length)]));
var iter = em.getInstances().iterator();
while (iter.hasNext()) {
var eim = iter.next();
}
}

Code:
var Message = new Array("What you want mapletip to be",
"2nd message of maple tip",
"3rd message of mapletip",
"4th message of mapletip ",
"5th message of mapletip",
"6th message of mapletip",
"7th message of maple tip",
"8th message of maple tip",
"9th message of maple tip",
"10th message of maple tip ",
"11th message of mapletip",
"12th message of mapletip");

em.getChannelServer().broadcastPacket(
net.sf.odinms.tools.MaplePacketCreator.serverNotic e(5, "[YOURSERVERNAMEHERETip] : " + Message[Math.floor(Math.random() * Message.length)]));
var iter = em.getInstances().iterator();
while (iter.hasNext()) {
var eim = iter.next();
}
}
avatar
構築さん
Admin

Posts : 193
Join date : 2014/05/29

http://maplescience.forumjap.com

トップに戻る Go down

トップに戻る


 
Permissions in this forum:
返信投稿: 不可