So we made a NPC to controll our Automated events.
OnTimer60000:
if(.master) {
set .@delay,rand(1,10)*60000;
sleep .@delay;
L_randevt:
set .@randevent,rand(0,getarraysize(.eventnames$)-1);
if(getd("."+.eventnames$[.@randevent] + "_status") == 0) goto L_randevt;
donpcevent .npcnames$[.@randevent] + "::OnAuto";
} else {
}
initnpctimer;
end;
in the event we had following
OnAuto:
announce "Automated event triggered the payload event!",0;
end;
When starting the server, following error appears:
[Debug]: NPCEvent 'LiarDice#Main::OnAuto' not found! (source: AutoEvents Manager)
actually i have no idea what causing this problem. Also we tried to rename it to OnTrigger and others as well.