Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;----------------------------------------------------
- ; Increase Deaths/TPKS multiples at a time
- ;----------------------------------------------------
- ;if user has access level 5 or higher then proceed
- ;if not then halt script
- ;if the very fist character in chat is + then
- ;if command was ran within last 5 seconds do nothing
- ;if +1 is followed with death or tpk then increase count
- on 5:text:*+*:#landail: {
- if (%ran > 0) {
- ;echo to logfile the person that called the command
- ;while it was on the 5 second cooldown
- echo + command was ran by $nick but timer is on cooldown
- halt
- }
- if ($2 = tpk || $2 = tpks) {
- inc %tpk $int($1)
- ;msg # Current recorded TPKS so far -> %tpk
- msg # The Shining Force Team has been wiped out %tpk times so far.
- set -zs %ran 5
- echo -s $nick ran the +tpk command. $nick $1 timer is set for %ran seconds
- }
- if ($2 = deaths || $2 = death) {
- inc %deaths $int($1)
- msg # Current recorded individual character's deaths so far -> %deaths
- set -zs %ran 5
- echo -s $nick ran the +death command. $nick $1 . timer is set for %ran seconds
- }
- }
- ;----------------------------------------------------
- ; Decrease Deaths/TPKS multiples at a time
- ;----------------------------------------------------
- ;follows the exact same logic as above but formatted
- ;in a way that allows for +2 +3 +4 +5 etc
- on 5:text:*-*:#landail: {
- if (%ran > 0) {
- echo - command was ran but timer is on cooldown
- halt
- }
- if ($2 = tpk || $2 = tpks) {
- inc %tpk $int($1)
- ;msg # Current recorded TPKS so far -> %tpk
- msg # The Shining Force Team has been wiped out %tpk times so far.
- set -zs %ran 5
- echo -s $nick ran the -tpk command. $nick $1
- }
- if ($2 = deaths || $2 = death) {
- inc %deaths $int($1)
- msg # Current recorded individual character's deaths so far -> %deaths
- set -zs %ran 5
- echo -s $nick ran the -death command. $nick $1
- }
- }
- ;----------------------------------------------------
- ; Manually Set Deaths to specific number ;
- ;----------------------------------------------------
- ; allows someone with lvl 5 or higher to set deaths to
- ; a specific number via landail channel chat OR
- ; via whisper to thesevbot
- on 5:text:setdeath*:*: {
- set %deaths $int($2)
- set -zs %ran 5
- ;echo info to console to write to log file
- echo -s $nick ran the setdeath command $2
- }
- on 5:text:setdeaths*:#landail: {
- set %deaths $int($2)
- msg # Current recorded deaths set to -> %deaths
- set -zs %ran 5
- ;echo info to console to write to log file
- echo -s $nick ran the setdeaths command $2
- }
- on 5:text:settpks*:#landail: {
- set %tpk $int($2)
- msg # Current recorded TPKS set to -> %tpk
- set -zs %ran 5
- ;echo info to console to write to log file
- echo -s $nick ran the settpks command $2
- }
- on 5:text:settpk*:#landail: {
- set %tpk $int($2)
- msg # Current recorded TPKS set to -> %tpk
- set -zs %ran 5
- ;echo info to console to write to log file
- echo -s $nick ran the settpk command $2
- }
- ;----------------------------------------------------------
- ;-----------Commands to call Totals------------------------
- ;----------------------------------------------------------
- on *:text:!deaths*:#landail: msg # Current recorded individual character's deaths so far -> %deaths
- on *:text:!death*:#landail: msg # Current recorded individual character's deaths so far -> %deaths
- on *:text:!tpks*:#landail: msg # The Shining Force Team has been wiped out %tpk times so far.
- on *:text:!tpk*:#landail: msg # The Shining Force Team has been wiped out %tpk times so far.
- on *:text:!lasttpks*:#landail: msg # Breath Of Fire 3 TPK Count --> 3
- on *:text:!lasttpk*:#landail: msg # Breath Of Fire 3 TPK Count --> 3
- ;everything within /* and */ are comments
- /*
- ----Notes----
- Stats collection began on 7/25/2018
- SagaFrontier total approximated tpk count - 42
- SagaFrontier (didn't start till 2/5ths through playthrough)
- -----------------------------------------------------------
- Breath Of Fire 3 total death count - 9
- Breath Of Fire 3 total tpks count - 3
- -----------------------------------------------------------
- Panzer Dragoon Saga (Sega Saturn) total death count - 4
- -----------------------------------------------------------
- ShiningForce3 ending death count -
- ShiningForce3 ending tpk count -
- -----------------------------------------------------------
- TODO
- add logic to detect number of times a certain user
- has tried to run the command on cooldown and determine
- a reasonable number to apply to determine if user
- is trolling on purpose and apply an applicable timeout length
- determine if a list of certain count of lowest rated
- games would be worth it
- on *:text:!worst*:#landail: msg # %worstlist
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement