Snow Posted February 27, 2013 Posted February 27, 2013 (edited) 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. Edited February 27, 2013 by Snow Quote
Emistry Posted February 27, 2013 Posted February 27, 2013 make sure all your other npc have this label... OnAuto: Quote
Snow Posted February 27, 2013 Author Posted February 27, 2013 (edited) make sure all your other npc have this label... OnAuto: sorry i made the thread in a hurry and wrote the wrong. there is the label in the event script OnAuto: announce "Automated event triggered the payload event!",0; end; Edited February 27, 2013 by Snow Quote
Emistry Posted February 27, 2013 Posted February 27, 2013 [Debug]: NPCEvent 'LiarDice#Main::OnAuto' not found! (source: AutoEvents Manager) i think should be your NPC name problems...check the setting for npc.... Quote
Luciar Posted February 28, 2013 Posted February 28, 2013 (edited) [Debug]: NPCEvent 'LiarDice#Main::OnAuto' not found! (source: AutoEvents Manager) i think should be your NPC name problems...check the setting for npc.... I'm a little confused by what you're suggesting we do here. The NPC is named LiarDice#Main for sure, and the donpcevent target is set by an array that also contains an element with the correct spelling. Edited February 28, 2013 by luciar Quote
Question
Snow
So we made a NPC to controll our Automated events.
in the event we had following
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.
Edited by Snow6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.