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

Event Scripts

Newbie Spellweaver
Joined
Oct 2, 2012
Messages
82
Reaction score
0
All the event scripts on the server don't work for some reason, like the auto message that comes up every thirty minutes or so, saying [MapleTip], and all the other event scripts in the scripts/events folder don't seem to be working, any idea what might be causing this?
 
Newbie Spellweaver
Joined
Oct 2, 2012
Messages
82
Reaction score
0
Yeh, i just forgot to paste the whole thing, i didn't forget the ";

anyways, here's the init method:
PHP:
public void init() {
        for (EventEntry entry : events.values()) {
            try {
                ((ScriptEngine) entry.iv).put("em", entry.em);
                entry.iv.invokeFunction("init", (Object) null);
            } catch (ScriptException ex) {
                Logger.getLogger(EventScriptManager.class.getName()).log(Level.SEVERE, null, ex);
            } catch (NoSuchMethodException ex) {
                Logger.getLogger(EventScriptManager.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }
 
Upvote 0
Back
Top