pball

pball's WB manager for mIRC

Mar 21st, 2011
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.05 KB | None | 0 0
  1. pball's WB manager for mIRC
  2.  
  3. Summary:
  4. This is an addon script that creates, edits, and displays welcome back messages. This WB manager is
  5. loaded with options which allow you to customize most aspects of a WB message.
  6.  
  7. Getting Started:
  8.  
  9. Loading the script
  10. Place wb.mrc into the mIRC folder or create a subfolder
  11. Open mIRC and in any window type /load -rs "c:\program files\mIRC\wb.mrc" (with the exact location of
  12. where you placed wb.mrc)
  13. Installation complete
  14.  
  15. Uninstalling the script
  16. Type /unload -rs "c:\program files\mIRC\wb.mrc" (with the exact location of where you placed wb.mrc)
  17. Uninstallation complete
  18.  
  19. How to create, edit, and manage WBs
  20.  
  21. First off there are two ways to open the WB manager dialog.
  22. The first way is to right click in a chan then select "WB Manager" from the list of right click options.
  23.  
  24. The second way to open the manager leads us into creating a WB for a nick.
  25. You can right click on a nick in the chan or in the nick list and you'll see "WB Manager" with
  26. an option of "Add WB for nick", when this is used the selected nick will be added to the manager
  27. when it opens.
  28.  
  29. General Script Setting
  30. Before getting into specific WB options, general options that apply to all WBs and the script in general
  31. will be discussed.
  32.  
  33. All the general options on located on the Options tab of the dialog
  34.  
  35. On the top left is the option "WB's On/Off", when clicked WBs will be displayed, when unclicked
  36. WBs will not be displayed.
  37.  
  38. Below the on/off option is the Display Option.
  39. This determines how the WB will be displayed in the chan. Below is an example of the two choices.
  40. Say: <%pball> This is normal text
  41. Describe: * %pball This is an action
  42.  
  43. Below the Display options is the Preview Option.
  44. This determines how the WB will be previewed when you press the preview button.
  45. Msg will query/personal message you the WB while Echo will echo the WB in the current window
  46.  
  47. Tag related options
  48. The three text boxes at the bottom control how the WB looks.
  49. First off lets define how tag is used in this guide, a tag is the text and symbols before the WB message.
  50. *WB*(nick)*WB* that is a common example of what I call tags
  51. The "Pre tag" is the part before the nick, "Post tag" is the part after the nick
  52. The "Nick color" is how the color of the nick in the tag is set, in this text box enter a number from
  53. 0-15 which corresponds to the normal color codes in mIRC.
  54. In the pre and post tags you can use color codes and symbols, in order to have a space between the tags
  55. and the nick in-between them a space must be added to the end of the pre tag and the beginning of the
  56. post tag.
  57.  
  58. Network List
  59. The Network List controls which networks WBs will be shown in
  60. This allows you to only show WBs on select networks.
  61. The exact name a server can be found using the /networkname alias included in this script.
  62. Simplely type /networkname in a chan window or the status window of the server you wish to get the name for.
  63. Then add the network to the list by entering the name and hitting Add.
  64.  
  65. Chan related options
  66. To the right of the Network list is the channel White/Black list.
  67. Chans are added and removed in the same way as networks are, each network has it's own chan list.
  68. There are two options for chans.
  69.  
  70. White List
  71. Chans added when this option is selected means WBs will only be shown in those chans, for that particular network.
  72.  
  73. Black List
  74. Chans added when this option is selected means WBs will be shown in all chans but those added, for that particular network
  75.  
  76. Specific WB options
  77. These options are for nick specific WBs, thus this section will explain how to create, edit, and save WBs.
  78.  
  79. Saving a WB for a nick
  80. After opening the WB manager enter the nick you wish to add a WB for in the top most text box, if you
  81. did not right click on the nick and open the manager that way.
  82. The WB message can be added to the large text box, color codes can be used in the message.
  83. Below the large WB message text box is the "Nick Specific" tag text boxes, you can add tags in here
  84. that will display for only the current nick. If left blank the default tags are used.
  85. The WB can then be added to a particular network, so that nick's WB will only show in that network.
  86. Simply choose one of the added networks from the drop down list, All is the default.
  87. This new option allows you have different WBs for either different people with the same nick on different servers or when you'd like to keep a WB specific to a server where it took place.
  88. Once the nick and WB message and optionally nick specific tags are entered, the WB can be saved.
  89. When the save is completed a popup will inform you.
  90.  
  91. That is all for adding a WB for a nick, there are however more options and the ability to add more
  92. than one WB message for a nick. These options will be discussed next.
  93.  
  94. After you save a WB the nick will appear in the "Nick list" on the left and a few fields
  95. will also be filled in. To the right of the "Nick" text box there is "# of WBs" which will
  96. have a number to the left which shows how many WBs the selected nick has. In the row below
  97. that on the left side is "Current WB #" which has a drop down box to the right. This allows
  98. you to choose between WBs if the nick has more than one, also has the option to make a new
  99. WB for the selected nick. The last item in that row is "WB to use", when there are multiple
  100. WBs for a nick you can choose Random, Disable, or a the number of a WB. This determines if a random WB
  101. or a single chosen one will be shown when someone joins a chan. If Disable is selected
  102. the WB will not be displayed when that nick joins. This is handy if someone is joining
  103. a chan to often and you wish to temporarly remove their WB
  104.  
  105. To add a second WB for a nick select the nick you wish and then select "New" in the
  106. "Current WB #" drop down. This will clear out the WB message text box. Add the new message
  107. then hit save. Once this is done the "Current WB #" will change from New to the current WB
  108. number, the WB to use drop down box will be updated with the newest WB number, and finally
  109. the # of WBs will be updated.
  110.  
  111. Changing the Network a WB is on.
  112. If you forget to select a specific network and add a nick to All networks, you can change that easiely.
  113. Simply select the WB you wish to edit, change the Network to show in, then hit Add/Edit.
  114. This will create a new WB entry for that nick under the specific network you choose. It will not delete the WB you created the new entry from.
  115. This is not a bug and won't be changed for now.
  116.  
  117. There are three more buttons to discussed.
  118. Delete WB: This button will delete the currently selected WB, there will be a prompt to
  119. confirm the deletion
  120.  
  121. Clear Form: This button will clear all the nick specific information. This will allow
  122. you add a new WB for a new nick.
  123.  
  124. Preview: This will pm you the current WB so you can check the formatting and color.
  125.  
  126.  
  127. Change Log
  128. V1.1
  129. Added: vertical scroll bar to the WB text field
  130. Added: ability to exclude selected chans when all chan option is selected
  131.  
  132. V1.2
  133. Bug fix: The white and black lists didn't work under certain circumstances
  134. Bug fix: Unable to remove all chans from the show in chans text box
  135.  
  136. V1.3
  137. Bug fix: Couldn't clear the default tags, if cleared out and saved it wouldn't actually save
  138.  
  139. V1.4
  140. Added: There is now a disable option in the WB to use drop down box. This is a per nick option, which will stop WBs for that nick from being displayed.
  141.  
  142. V1.5
  143. Changed: Dialog layout, general settings are on second tab of dialog
  144. Changed: The layout and working of the chan white/black list, now runs off a list with add and remove buttons
  145. Added: Ability to chose servers to show in, functions same as chan list
  146.  
  147. V1.6
  148. Bugfix: The disable WB option was missing in V1.5, I screwed up.
  149.  
  150. V1.7
  151. Changed: Options on the options tab now save when changed, tags are saved on exit
  152. Removed: Save button on options tab, not needed any more
  153. Added: About popup
  154. Fixed: Blank lines could be added to the chan and server list
  155. Fixed: # of WBs would increase when add/edit button hit, but no new WB added
  156. Fixed: When deleting WBs the WB number wasn't removed from the WB to use drop down
  157. Fixed: Minor error appears when attempting to open an already open dialog, added check to stop that
  158. Fixed: The show in all chans and show in all servers text below the checkboxs didn't load properly, only happens when save file hasn't been updated by new version
  159. Comment: Cleaned up the code a good bit
  160.  
  161. V2.0
  162. Added: Mutlinetwork support
  163. Comment: Probably added/fixed some other things don't remember
  164.  
  165. V2.1
  166. Edited: The Nick Color edit box so it's wide enough to accept something like 12,10 for background colors
  167. Added: Some error checking to make sure only numbers and a comma is entered into the Nick Color edit box
  168.  
  169. V2.2
  170. Fixed: Didn't work when loaded in a directory with spaces in the name
  171. Note: wow surprised no one had complained of this before
  172.  
  173. V2.2.1
  174. Fixed: Couldn't undo nick color in nick specific tag options, logical error on my part
  175.  
  176. V2.2.2
  177. Fixed: Couldn't undo nick color in general tag options, logical error on my part
  178.  
  179. If you have any questions, concerns, or problems please contact pball in #pball on the rizon network
Advertisement
Add Comment
Please, Sign In to add comment