Advertisement
Guest User

Point System (rough)

a guest
Dec 15th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.45 KB | None | 0 0
  1. on $*:text:/!kills (add|remove)/Si:#:{
  2.   if ($nick == sbdonslaught) {
  3.     if ($0 < 3) { msg $chan Insufficient parameters: Use !kills [add|remove] [user] [number] | return }
  4.     writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
  5.     { msg $chan $3 now has $readini(Points.ini,$+(#,.,$3),Points) kills. BloodTrail }
  6.   }
  7.   else { msg $chan Nice Try $nick. Kappa }
  8. }
  9. on *:text:!kills:#:{
  10.   if ((%floodkills) || ($($+(%,floodkills.,$nick),2))) { return }
  11.   set -u15 %floodkills. $+ $nick On
  12.   if ( $readini(Points.ini,$+(#,.,$nick),Points) >= 500 && $readini(Points.ini,$+(#,.,$nick),Points) < 1000 ){ msg $chan $nick has $readini(Points.ini,$+(#,.,$nick),Points) total kills. OpieOP  
  13.   elseif ( $readini(Points.ini,$+(#,.,$nick),Points) >= 100 && $readini(Points.ini,$+(#,.,$nick),Points) < 500 ){ msg $chan $nick has $readini(Points.ini,$+(#,.,$nick),Points) total kills. PogChamp
  14.   elseif ( $readini(Points.ini,$+(#,.,$nick),Points) >= 1000 ){ msg $chan $nick has $readini(Points.ini,$+(#,.,$nick),Points) total kills. RollIt!  
  15.   elseif ( $readini(Points.ini,$+(#,.,$nick),Points) <= 0 ){ msg $chan $nick has $readini(Points.ini,$+(#,.,$nick),Points) total kills. WutFace
  16.   else { msg $chan $nick has $readini(Points.ini,$+(#,.,$nick),Points) kills. }
  17. }
  18. alias -l addPoints {
  19.   if ($1 !isnum) { echo 2 -st $1 is not a number. It needs to be a number. | halt }
  20.   var %topic $+($chan,.,$nick)
  21.   var %points $calc($readini(Points.ini,%topic,Points) + $1)
  22.   writeini -n Points.ini %topic Points %points
  23.   return %points
  24. }
  25.  
  26. alias -l lookUpPoints {
  27.   var %topic $+($chan,.,$nick)
  28.   var %points $readini(Points.ini,%topic,Points)
  29.   return %points
  30. }
  31. alias doaddpoints {
  32.   if ($3 !isnum) { echo 2 -st $3 is not a number. It needs to be a number. | halt }
  33.   var %topic $+($1,.,$2)
  34.   var %points $calc($readini(Points.ini,%topic,Points) + $3)
  35.   writeini -n Points.ini %topic Points %points
  36.   echo -a Added points for %topic
  37. }
  38.  
  39. alias dorempoints {
  40.   var %topic $+($1,.,$2)
  41.   remini -n Points.ini %topic Points
  42.   echo -a Removed points for %topic
  43. }
  44. on !*:join:#:{
  45.   $+(.timerpoints.,#,.,$nick) 0 900 add.pts $+(#,.,$nick)
  46.   add.pts $+(#,.,$nick)
  47. }
  48. on !*:part:#:$+(.timerpoints.,#,.,$nick) off
  49. alias -l add.pts {
  50.   writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  51. }
  52. on *:text:!kills check *:#:{ msg $chan $3 has $readini(Points.ini,$+(#,.,$3-),Points) kills.
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement