Sorasyn commented on a Page, Help Script  -  Feb 17, 2011

I must agree this script took some effort, lol. While your script functions nicely the thousand dialog event calls are an eyesore and most likely a weight on efficiency. A quick example:

on *:DIALOG:rshelp:sclick:7:{ did -ra rshelp 6 To Change Your Nick Type: /nick NewNick }

Using the information you've supplied here we can effectively combine it with the other events to make it simpler to sift and edit as needed.

on *:DIALOG:dialog_name:event:event_ID:{

With the proper use of wildcards within this event you can tell mIRC straight from the get go what passes and what doesn't. Passed information will then be synthesized by the bulk of the code and providing output in a much more efficient manner.

on *:DIALOG:rshelp:*:*:{

This example of a wildcard event accepts traffic from the dialog "rshelp" of any event type and any ID to be accepted or rejected as decreed by the snippet.

on *:DIALOG:rshelp:*:*:{
  if ($devent == sclick) {
    if ($did == 7) { 
      ;Commands for an sclick event on rshelp ID 7 
    }
    if ($did == 8) { 
      ;Commands for an sclick event on rshelp ID 8 
    }
  }
}

This is a small example of combining your events as its 2 in the AM and I dont feel like rewriting what must be a good 100 lines of code lol. As for dialog events being called within a dominate event its much cleaner and more distinguished as to what event is going on where.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.