Autosave for you.<3
5 posters
Page 1 of 1
Autosave for you.<3
I'm tired of rollbacks so here's a god damn script I just wrote up.
You need this in the source though (ChannelServer.java)
- 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;//1 min
}
setupTask = em.scheduleAtTimestamp("start", nextTime);
}
function cancelSchedule() {
setupTask.cancel(true);
}
function start() {
scheduleNew();
em.getChannelServer().saveall();
var iter = em.getInstances().iterator();
while (iter.hasNext()) {
var eim = iter.next();
}
}
You need this in the source though (ChannelServer.java)
- Code:
public void saveall() {
for (ChannelServer cs : ChannelServer.getAllInstances())
for(MapleCharacter ugh : cs.getPlayerStorage().getAllCharacters())
ugh.saveToDB(true);
}
Right- Posts : 13
Join date : 2010-11-20
Re: Autosave for you.<3
You wrote this? Funny, I found it in RageZone... W/e. It doesn't matter. At least you contributed. Thank you.
MrHacker- Posts : 65
Join date : 2010-11-12
Age : 29
Location : Pensacola, Florida
Re: Autosave for you.<3
Um... Yes I wrote it...
I'm sorry if people on Ragezone write the same way I do, I just took the automsg.js script and changed some shit.
No point in starting from scratch when you don't need to. Now stfu and post your little NPC scripts that usually suck and have memory leaks.
I'm sorry if people on Ragezone write the same way I do, I just took the automsg.js script and changed some shit.
No point in starting from scratch when you don't need to. Now stfu and post your little NPC scripts that usually suck and have memory leaks.
Right- Posts : 13
Join date : 2010-11-20
Re: Autosave for you.<3
" W/e I said thanks for contributing... And btw those are simple NPC's. If you look around the server, you can see my work around the place...
MrHacker- Posts : 65
Join date : 2010-11-12
Age : 29
Location : Pensacola, Florida
Re: Autosave for you.<3
Mind telling me the names/where they are?
Right- Posts : 13
Join date : 2010-11-20
Re: Autosave for you.<3
Lets drops this topic and what names O.o
MrHacker- Posts : 65
Join date : 2010-11-12
Age : 29
Location : Pensacola, Florida
Re: Autosave for you.<3
Right wrote:Um... Yes I wrote it...
I'm sorry if people on Ragezone write the same way I do, I just took the automsg.js script and changed some shit.
No point in starting from scratch when you don't need to. Now stfu and post your little NPC scripts that usually suck and have memory leaks.
Dude, can you please mind you language? You are only here 1 day and first of all you are a pain in my ass when you are sitting in fm spamming. Second, Mr hacker is saying something in a nice way. And you say his work sucks? Bet you are a 12YO leecher...
Re: Autosave for you.<3
both of you just drop it
Allison- Posts : 45
Join date : 2010-10-18
Age : 32
Location : New York
Right is a fake
It's true "Right" Is a leecher.
He is nothing but a Script Kiddie
This guy is not a coder. Keep in mind he will abuse his powers. I mean come on. How the hell does he even know how to code
Plus Java, JavaScript isn't a coding language dumbass.
Java is a Language
Your nothing but a fraud. You just want to be a coder but then at the end you start to fuck with people.
Guys hes a hacker also he was hacking.
He said he coded maps. BUT no HES a big SCRIPT kiddie leeching shit from the website.
He steals bunch of damn scripts
Come on now.
He wouldn't even know what
cm.function start() means
lol
hes a big idiot
cm.Sendok("Right is a leeching script kiddie faggot(:")
That's right
Get out of here and stop fooling. Come back next year learning how to code. Without bullshitting your a waiste of time.
At least apply for a Damn GM. your a big fake man screw off right
He is nothing but a Script Kiddie
This guy is not a coder. Keep in mind he will abuse his powers. I mean come on. How the hell does he even know how to code
Plus Java, JavaScript isn't a coding language dumbass.
Java is a Language
Your nothing but a fraud. You just want to be a coder but then at the end you start to fuck with people.
Guys hes a hacker also he was hacking.
He said he coded maps. BUT no HES a big SCRIPT kiddie leeching shit from the website.
He steals bunch of damn scripts
Come on now.
He wouldn't even know what
cm.function start() means
lol
hes a big idiot
cm.Sendok("Right is a leeching script kiddie faggot(:")
That's right
Get out of here and stop fooling. Come back next year learning how to code. Without bullshitting your a waiste of time.
At least apply for a Damn GM. your a big fake man screw off right
lol- Guest
Re: Autosave for you.<3
WOW
are YOU stupid
THIS explains your NOT a coder
cm.function start()
every script that has been written requires cm.function start()
that is a Java script.
it enables the function
come on now.
Give it up
your fake geez
are YOU stupid
THIS explains your NOT a coder
cm.function start()
every script that has been written requires cm.function start()
that is a Java script.
it enables the function
come on now.
Give it up
your fake geez
evilgaia- Posts : 5
Join date : 2011-01-19
Re: Autosave for you.<3
*BUMP*
Right before you want to go low on somebody.
What have you done. Nothing, But just leech man Mr.Hacker is doing a way better job then you.
You do nothing but just criticize other peoples work, You are nothing but a complete disgrace
just a script kiddy. Those Scripts were released publicly by a creator. You sir are a leecher no proof is needed
All the proof is already in your post
I bid you a farewell my friend
Good luck being a coder now.
Mr.ICreateScripts (F3)
Right before you want to go low on somebody.
What have you done. Nothing, But just leech man Mr.Hacker is doing a way better job then you.
You do nothing but just criticize other peoples work, You are nothing but a complete disgrace
just a script kiddy. Those Scripts were released publicly by a creator. You sir are a leecher no proof is needed
All the proof is already in your post
I bid you a farewell my friend
Good luck being a coder now.
Mr.ICreateScripts (F3)
evilgaia- Posts : 5
Join date : 2011-01-19
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|