Jump to content
  • 0

H>Barricade Script


Sallycantdance

Question


  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  133
  • Topics Per Day:  0.03
  • Content Count:  686
  • Reputation:   89
  • Joined:  04/07/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

On 7/19/2022 at 4:52 PM, Gidz Cross said:

Replace Oncommand to OnCommand.

thank you sir

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