Jump to content
  • 0

Event Label Error


Snow

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   34
  • Joined:  05/30/12
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

Figured out the issue. Thanks for your help!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

make sure all your other npc have this label...

 

OnAuto:
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   34
  • Joined:  05/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

[Debug]: NPCEvent 'LiarDice#Main::OnAuto' not found! (source: AutoEvents Manager)

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

[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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

full script please ?

Link to comment
Share on other sites

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.

×
×
  • Create New...