Jump to content
  • 0

Event Label Error


Question

Posted (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 by Snow

6 answers to this question

Recommended Posts

Posted (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 by Snow
Posted
[Debug]: NPCEvent 'LiarDice#Main::OnAuto' not found! (source: AutoEvents Manager)

 

i think should be your NPC name problems...check the setting for npc....

Posted (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 by luciar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...