Advertisement
severen1999

Death / Tpk Count

Aug 5th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 4.75 KB | None | 0 0
  1. ;----------------------------------------------------
  2. ;    Increase Deaths/TPKS multiples at a time
  3. ;----------------------------------------------------
  4.  
  5. ;if user has access level 5 or higher then proceed
  6. ;if not then halt script
  7. ;if the very fist character in chat is + then
  8. ;if command was ran within last 5 seconds do nothing
  9. ;if +1 is followed with death or tpk then increase count
  10.  
  11. on 5:text:*+*:#landail: {
  12.   if (%ran > 0) {
  13.     ;echo to logfile the person that called the command
  14.     ;while it was on the 5 second cooldown
  15.     echo + command was ran by $nick but timer is on cooldown
  16.     halt
  17.   }
  18.   if ($2 = tpk || $2 = tpks) {
  19.     inc %tpk $int($1)
  20.     ;msg # Current recorded TPKS so far -> %tpk
  21.     msg # The Shining Force Team has been wiped out %tpk times so far.
  22.     set -zs %ran 5
  23.     echo -s $nick ran the +tpk command. $nick $1 timer is set for %ran seconds
  24.   }
  25.   if ($2 = deaths || $2 = death) {
  26.     inc %deaths $int($1)
  27.     msg # Current recorded individual character's deaths so far -> %deaths
  28.     set -zs %ran 5
  29.     echo -s $nick ran the +death command. $nick $1 . timer is set for %ran seconds
  30.   }  
  31. }
  32.  
  33. ;----------------------------------------------------
  34. ;    Decrease Deaths/TPKS multiples at a time
  35. ;----------------------------------------------------
  36.  
  37. ;follows the exact same logic as above but formatted
  38. ;in a way that allows for +2 +3 +4 +5 etc
  39.  
  40. on 5:text:*-*:#landail: {
  41.   if (%ran > 0) {
  42.     echo - command was ran but timer is on cooldown
  43.     halt
  44.   }
  45.   if ($2 = tpk || $2 = tpks) {
  46.     inc %tpk $int($1)
  47.     ;msg # Current recorded TPKS so far -> %tpk
  48.     msg # The Shining Force Team has been wiped out %tpk times so far.    
  49.     set -zs %ran 5
  50.     echo -s $nick ran the -tpk command. $nick $1
  51.   }
  52.   if ($2 = deaths || $2 = death) {
  53.     inc %deaths $int($1)
  54.     msg # Current recorded individual character's deaths so far -> %deaths
  55.     set -zs %ran 5
  56.     echo -s $nick ran the -death command. $nick $1
  57.   }  
  58. }
  59.  
  60. ;----------------------------------------------------
  61. ;     Manually Set Deaths to specific number        ;
  62. ;----------------------------------------------------
  63.  
  64. ; allows someone with lvl 5 or higher to set deaths to
  65. ; a specific number via landail channel chat OR
  66. ; via whisper to thesevbot
  67.  
  68. on 5:text:setdeath*:*: {
  69.   set %deaths $int($2)
  70.   set -zs %ran 5  
  71.   ;echo info to console to write to log file
  72.   echo -s $nick ran the setdeath command $2
  73. }
  74. on 5:text:setdeaths*:#landail: {
  75.   set %deaths $int($2)
  76.   msg # Current recorded deaths set to -> %deaths
  77.   set -zs %ran 5  
  78.   ;echo info to console to write to log file
  79.   echo -s $nick ran the setdeaths command $2
  80. }
  81. on 5:text:settpks*:#landail: {
  82.   set %tpk $int($2)
  83.   msg # Current recorded TPKS set to -> %tpk
  84.   set -zs %ran 5
  85.   ;echo info to console to write to log file
  86.   echo -s $nick ran the settpks command $2
  87. }
  88. on 5:text:settpk*:#landail: {
  89.   set %tpk $int($2)
  90.   msg # Current recorded TPKS set to -> %tpk
  91.   set -zs %ran 5  
  92.   ;echo info to console to write to log file
  93.   echo -s $nick ran the settpk command $2
  94. }
  95.  
  96. ;----------------------------------------------------------
  97. ;-----------Commands to call Totals------------------------
  98. ;----------------------------------------------------------
  99.  
  100. on *:text:!deaths*:#landail: msg # Current recorded individual character's deaths so far -> %deaths
  101. on *:text:!death*:#landail: msg # Current recorded individual character's deaths so far -> %deaths
  102. on *:text:!tpks*:#landail: msg # The Shining Force Team has been wiped out %tpk times so far.
  103. on *:text:!tpk*:#landail: msg # The Shining Force Team has been wiped out %tpk times so far.
  104. on *:text:!lasttpks*:#landail: msg # Breath Of Fire 3 TPK Count --> 3
  105. on *:text:!lasttpk*:#landail: msg # Breath Of Fire 3 TPK Count --> 3
  106.  
  107. ;everything within /* and */ are comments
  108. /*
  109. ----Notes----
  110. Stats collection began on 7/25/2018
  111. SagaFrontier total approximated tpk count - 42
  112. SagaFrontier (didn't start till 2/5ths through playthrough)
  113. -----------------------------------------------------------
  114. Breath Of Fire 3 total death count - 9
  115. Breath Of Fire 3 total tpks count  - 3
  116. -----------------------------------------------------------
  117. Panzer Dragoon Saga (Sega Saturn) total death count - 4
  118. -----------------------------------------------------------
  119. ShiningForce3 ending death count -
  120. ShiningForce3 ending tpk count -
  121. -----------------------------------------------------------
  122.  
  123. TODO
  124. add logic to detect number of times a certain user
  125. has tried to run the command on cooldown and determine
  126. a reasonable number to apply to determine if user
  127. is trolling on purpose and apply an applicable timeout length
  128.  
  129. determine if a list of certain count of lowest rated
  130. games would be worth it
  131. on *:text:!worst*:#landail: msg # %worstlist
  132.  
  133. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement