Jump to content

Question

Posted

hello every one i would like to ask for help regarding this Training Ground Barricade script in my last server it works fine now im trying to make a new one and it has an error now . this error appears

"[Error]: npc_event: event not found [Barricade::Oncommand]" 

heres the script:

 

Quote

-   script   Barricade    78,{ 
OnInit:
    
    bindatcmd "gate", strnpcinfo(0)+"::Oncommand", 99,99;
    
    setcell "new_1-1",68,113,68,110,cell_walkable,0; //non walkable
    monster "new_1-1",68,113,""+getmonsterinfo(1905,0)+"",1907,1;
    monster "new_1-1",68,112,""+getmonsterinfo(1905,0)+"",1907,1;
    monster "new_1-1",68,111,""+getmonsterinfo(1905,0)+"",1907,1;
    monster "new_1-1",68,110,""+getmonsterinfo(1905,0)+"",1907,1;
    
end;

Oncommand:
    if(compare(.@atcmd_parameters$, "open" )) goto L_open;
    else if(compare( .@atcmd_parameters$, "close")) goto L_close;
    else{
        dispbottom "type - '@gate open' to open the gate";
        dispbottom "type - '@gate close' to close the gate";
    }
end;

L_close:
    setcell "new_1-1",68,113,68,110,cell_walkable,0; //non walkable
    monster "new_1-1",68,113,""+getmonsterinfo(1905,0)+"",1907,1;
    monster "new_1-1",68,112,""+getmonsterinfo(1905,0)+"",1907,1;
    monster "new_1-1",68,111,""+getmonsterinfo(1905,0)+"",1907,1;
    monster "new_1-1",68,110,""+getmonsterinfo(1905,0)+"",1907,1;
end;

L_open:
    announce "The Gate is now open enjoy and goodluck adventurers!", bc_all;
    setcell "new_1-1",68,113,68,110,cell_walkable,1; //non walkable 
    atcommand "@killmonster2";
end;


}

thanks in advance

2 answers to this question

Recommended Posts

  • 0
Posted
On 7/18/2022 at 2:14 PM, GM Winter said:

hello every one i would like to ask for help regarding this Training Ground Barricade script in my last server it works fine now im trying to make a new one and it has an error now . this error appears

"[Error]: npc_event: event not found [Barricade::Oncommand]" 

heres the script:

 

thanks in advance

Replace Oncommand to OnCommand.

  • Upvote 1

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...