HostileStory v75
REMEMBER TO VOTE FOR US AT
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773

Join the forum, it's quick and easy

HostileStory v75
REMEMBER TO VOTE FOR US AT
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
HostileStory v75
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Autosave for you.<3

5 posters

Go down

Autosave for you.<3 Empty Autosave for you.<3

Post  Right Sat Nov 20, 2010 4:47 pm

I'm tired of rollbacks so here's a god damn script I just wrote up.

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();
    }
}
Put it in the event folder and enable it in world.props or w/e.

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

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  MrHacker Sat Nov 20, 2010 5:12 pm

You wrote this? Funny, I found it in RageZone... W/e. It doesn't matter. At least you contributed. Thank you.
MrHacker
MrHacker

Posts : 65
Join date : 2010-11-12
Age : 29
Location : Pensacola, Florida

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  Right Sat Nov 20, 2010 5:13 pm

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. Smile

Right

Posts : 13
Join date : 2010-11-20

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  MrHacker Sat Nov 20, 2010 5:19 pm

speechless" 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
MrHacker

Posts : 65
Join date : 2010-11-12
Age : 29
Location : Pensacola, Florida

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  Right Sat Nov 20, 2010 5:25 pm

Mind telling me the names/where they are?

Right

Posts : 13
Join date : 2010-11-20

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  MrHacker Sat Nov 20, 2010 5:29 pm

Lets drops this topic and what names O.o
MrHacker
MrHacker

Posts : 65
Join date : 2010-11-12
Age : 29
Location : Pensacola, Florida

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  Right Sat Nov 20, 2010 5:29 pm

names of the NPC's.

Right

Posts : 13
Join date : 2010-11-20

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  iRemix Sun Nov 21, 2010 6:14 am

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. Smile

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... Shocked
iRemix
iRemix

Posts : 64
Join date : 2010-11-08
Age : 28
Location : Sweden

https://www.facebook.com/iRemixed

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  Allison Tue Nov 23, 2010 8:56 am

both of you just drop it
Allison
Allison

Posts : 45
Join date : 2010-10-18
Age : 32
Location : New York

Back to top Go down

Autosave for you.<3 Empty Right is a fake

Post  lol Wed Jan 19, 2011 11:25 pm

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
Anonymous
lol
Guest


Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  Right- Wed Jan 19, 2011 11:27 pm

You do realize cm.function start() is impossible?
Anonymous
Right-
Guest


Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  evilgaia Wed Jan 19, 2011 11:39 pm

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

evilgaia

Posts : 5
Join date : 2011-01-19

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  evilgaia Thu Jan 20, 2011 12:48 am

*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 Smile
Good luck being a coder now.
Mr.ICreateScripts (F3)

evilgaia

Posts : 5
Join date : 2011-01-19

Back to top Go down

Autosave for you.<3 Empty Re: Autosave for you.<3

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum