Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mudlet:bonus_gexp_capture_window [2026/10/08 16:04] – tazemudlet:bonus_gexp_capture_window [2026/10/12 19:47] (current) – taze
Line 6: Line 6:
   - Click the "add item" button to create a new script.   - Click the "add item" button to create a new script.
   - Enter a name, like //"Party Bonus Window"//   - Enter a name, like //"Party Bonus Window"//
-  - In //"Add User Event Handler:"// enter: <code>sysConnectionEvnet</code>+  - In //"Add User Event Handler:"// enter: <code>sysConnectionEvent</code>
   - Click the "+" button.   - Click the "+" button.
-  - Copy in the following source code to the text area.<code>+  - Copy in the following source code to the text area.<code lua>
 -------------------------------------------------- --------------------------------------------------
 -- BONUS WINDOW -- BONUS WINDOW
Line 31: Line 31:
 make_bonus_window() make_bonus_window()
 </code> </code>
-  - Your scripts setting pages should now look exactly like this: {{mudlet:partyscript.png}}+  - Your new or existing scripts editor page should look like this: {{mudlet:partyscript.png}}
   - Click the "Save Item" button   - Click the "Save Item" button
   - Create a new Perl Regex trigger   - Create a new Perl Regex trigger
   - Add the following regex <code>party bonus grants you ([0-9,]+) guild experience</code>   - Add the following regex <code>party bonus grants you ([0-9,]+) guild experience</code>
-  - Add the following trigger lua <code>bonusXP = bonusXP or {+  - Add the following trigger lua <code lua>bonusXP = bonusXP or {
   total = 0,   total = 0,
   count = 0,   count = 0,
Line 133: Line 133:
  
 end</code> end</code>
 +
 - Click save trigger - Click save trigger
-- Your new window should appear. The mudlet editor and new window should look like below. NOTE: the new window is movable and sizable {{mudlet:partybonuscapture.png}} {{mudlet:partybonustrigger2.png}}+- The mudlet editor and new window should appear and look like the below. NOTE: the party bonus window is movable and sizable. It is setup to only display the last 25 captures. {{mudlet:partybonuscapture.png}} {{mudlet:partybonustrigger2.png}}