Karma Script

By Relinquish on Jul 06, 2007

Just like when you own your account in the SMF forum, you see a Karma system in your profile and the mini profile.

It's a simple command
!applaud (nick) (reason) - adds the positive Karma and adds the total Karma
!smite (nick) (reason) - adds the negative Karma and subtracts the total Karma
!karmastats - views other people's Karma if they have the karma script loaded
(To yourself) /karma - views your Karma stats
(To yourself) /karmareset - resets your Karma stats, including the total Karma

Comments? Bugs? Complaints? Suggestions?

Oh, and please paste this script in the remote tab, not alias tab.

-================================================-
|                                                |
| mIRC Karma Script                              |
| Version 1.0                                    |
| Scripting made by Relinquish                   |
|                                                |
-================================================-

alias karma {
  echo $target Karma: + $+ $calc(%pkarma) $+ /- $+ $calc(%nkarma) - Total: $calc(%tkarma)
}
alias karmareset {
  echo $target Your Karma has been reseted to +0/-0
  unset %pkarma
  unset %nkarma
  unset %tkarma
}
on *:text:!applaud *:#:{
  if ($2 == $me) {
    inc %pkarma 1
    inc %tkarma 1
    notice $me $nick applauded you. Why? ( $+ $3- $+ )
  }
}
on *:text:!smite *:#:{
  if ($2 == $me) {
    inc %nkarma 1
    inc %tkarma -1
    notice $me $nick smited you. Why? ( $+ $3- $+ )
  }
}
on *:text:!karmastats:#:{
  notice $nick Karma: + $+ $calc(%pkarma) $+ /- $+ $calc(%nkarma) - Total: $calc(%tkarma)
  notice $me $nick used the !karmastats to view your Karma Stats
}

Comments

Sign in to comment.
Ghost-writer   -  Oct 23, 2009

ewww! notice $me? server abuse. echo -a works just fine. Heck, even noop $tip. And i dont really get the karma :\ who smites anymore? 3/5 so you get a 6, just because your code didnt bore me.

 Respond  
Johnbrandon   -  Oct 23, 2009

hmm mate, u could improve this script to be more useful and better, read this requestion thread, u could edit yours or add things http://www.hawkee.com/phpBB2/viewtopic.php?t=20398

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.