Advertisement
Guest User

LotJ TNL Script

a guest
Jul 8th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE muclient>
  3. <!-- Saved on Saturday, October 18, 2008, 11:45 PM -->
  4. <!-- MuClient version 4.19 -->
  5.  
  6. <!-- Plugin "LotJ_TNL" generated by Plugin Wizard -->
  7.  
  8. <muclient>
  9. <plugin
  10.    name="LotJ_TNL"
  11.    author="Xavier"
  12.    id="a4e74a554c75bb899cb8f197"
  13.    language="VBscript"
  14.    purpose="Calculates experience to next level."
  15.    save_state="y"
  16.    date_written="2008-10-18 23:43:56"
  17.    requires="4.19"
  18.    version="1.0"
  19.    >
  20.  
  21. </plugin>
  22.  
  23.  
  24. <!--  Get our standard constants -->
  25.  
  26. <include name="constants.vbs"/>
  27.  
  28. <!--  Triggers  -->
  29.  
  30. <triggers>
  31.   <trigger
  32.    enabled="y"
  33.    match="*Level: *Max: *Exp: *Next: *"
  34.    repeat="y"
  35.    script="calcTNL"
  36.    sequence="100"
  37.   >
  38.   </trigger>
  39. </triggers>
  40.  
  41. <!--  Script  -->
  42.  
  43.  
  44. <script>
  45. <![CDATA[
  46. sub calcTNL(name, line, wildcards)
  47.     dim nextXP
  48.     dim currXP
  49.     dim TNL
  50.     currXP=wildcards(4)
  51.     nextXP=wildcards(5)
  52.     if currXP <> "???" AND nextXP <> "???" then
  53.         TNL = int(nextXP)-int(currXP)
  54.         ANSInote "" & ANSI(30) & wildcards(1) & ANSI(0) & ANSI(36) & "TNL: " & ANSI(0) & ANSI(32) & TNL
  55.     end if
  56. end sub
  57. ]]>
  58. </script>
  59.  
  60.  
  61. </muclient>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement