there is a guide how to make en event script?
i didnt understand a thing from the examples in the source
i use heliosum if its matter
Printable View
there is a guide how to make en event script?
i didnt understand a thing from the examples in the source
i use heliosum if its matter
How is this a guide? Can ragezone plas filter fobs? Anyway, I suggest looking at other event scripts in your source and tweaking them.
Just try to understand each function, it's simple.
I mean, those functions is simmiliar to the source's functions.
mobValue if Im not wrong is the same as 'killMonster' , playerDisconnected is being used eheb someone disconnects, etc...
I just tried something simple like that:
when they get into map they have 1 minitue after that they return back to map
thats the scripts:
event:
npc:PHP Code:function init() {
// After loading, ChannelServer
scheduleNew();
}
function setup(eim, leaderid) {
eim.schedule("left", 60000);
return eim;
}
function scheduleNew() {
em.schedule("left", 60000);
em.schedule("enter", 10000);
}
function left(){
em.warpAllPlayer(109060001, 960000000);
}
function enter(){
em.warpAllPlayer(109060001, 109060000);
}
function cancelSchedule() {
}
PHP Code:function action(mode, type, selection) {
if (mode == 1) {
status++;
} else {
if (status == 0) {
cm.dispose();
}
status--;
}
if(status == 0){
cm.sendNext("#ebla bla ");
var wait=cm.getEventManager("WaitingRoom");
cm.warp(109060001);
cm.dispose();
}
}
bump~