- Joined
- Mar 7, 2013
- Messages
- 670
- Reaction score
- 43
hi , I could help me as I can add a change of music in eventscript ?
i have this...
but cant work u.u , show message in console:
need help, thank you
i have this...
Code:
importPackage(java.lang);
importPackage(Packages.tools.packet);
[COLOR=#212121]
[/COLOR]function scheduledTimeout(eim,player) {
player.getClient().getSession().write(CField.musicChange("nameMusic"));
eim.broadcastPlayerMsg(6, "Music Change");
}
but cant work u.u , show message in console:
Code:
Event nameMYQUEST, Instance name : Quest142, method Name : scheduledTimeout:
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method "getClient" of undefined
need help, thank you

