Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias -l getid {
- return $strip($remove($right($1,$calc($len($1) - $pos($1,$chr(40)))),$chr(40),$chr(41),.))))
- }
- alias -l getname {
- return $strip($left($1,$calc($pos($1,$chr(40)) - 1)))
- }
- alias vinstall {
- if (%vinstalled) { echo -a vStats is already installed. /vuninstall to uninstall your stats | HALT }
- set %vname $?="Enter your ingame name."
- set %varrestpm $?!="Would you like arrest count increases to be announced to you via PM?"
- set %vdeathspm $?!="Would you like kill/death counts to be announced via PM?"
- set %vcriminalpm $?!="Would you like criminal activity counts (e.g. rape) to be announced via PM?"
- set %vvictimpm $?!="Would you like counts to be announced via PM when you are the victim of an arrest, rape or kidnap?"
- set %vterrorpm $?!="Would you like counts to be announced via PM when you blow up a building?"
- set %vnoobpm $?!="Would you like counts to be announced via PM when you get adnoobed?"
- set %vbancountpm $?!="Would you like to announce ban increases(Only works if you are an admin with a high enough level)"
- set %vadmincountpm $?!="Would you like to announce other admin action such as mutes/jails/kicks (Only works if you are an admin with a high enough level)"
- if ($?!"Installation almost complete. Are you happy with your options?" == $true) {
- set %vinstalled 1
- echo -a Installation is now complete, simply connect to the server and have fun!
- set %varrestcount 0
- set %vrearrestcount 0
- set %vmwarrestcount 0
- set %vdeathcount 0
- set %vkillcount 0
- set %vbancount 0
- set %vmutecount 0
- set %vjailcount 0
- set %vkickcount 0
- set %vfreezecount 0
- set %vwarncount 0
- set %vrapecount 0
- set %vrapedcount 0
- set %vrobberycount 0
- set %vamountrobbed 0
- set %vkidnapcount 0
- set %vkidnappedcount 0
- set %varrestedcount 0
- set %vreportcount 0
- set %vreportedcount 0
- set %vrobcount 0
- set %vrobbedcount 0
- set %vcagecount 0
- set %vterrorcount 0
- set %vnoobcount 0
- }
- else {
- unset %vname
- unset %varrestpm
- unset %vdeathspm
- unset %vbancountpm
- unset %vadmincountpm
- unset %vcriminalpm
- unset %vinstalled
- unset %varrestcount
- unset %vrearrestcount
- unset %vmwarrestcount
- unset %vdeathcount
- unset %vkillcount
- unset %vbancount
- unset %vmutecount
- unset %vjailcount
- unset %vkickcount
- unset %vfreezecount
- unset %vwarncount
- unset %vrapecount
- unset %vrapedcount
- unset %vrobberycount
- unset %vamountrobbed
- unset %vkidnapcount
- unset %vkidnappedcount
- unset %varrestedcount
- unset %vreportcount
- unset %vreportedcount
- unset %vrobcount
- unset %vrobbedcount
- unset %vcagecount
- unset %vterrorcount
- unset %vnoobcount
- echo -a Installation process cancelled
- }
- }
- alias vuninstall {
- if (!%vinstalled) {
- if ($?!="vStats isn't installed, would you like to install now?" == $true) { vinstall }
- halt
- }
- if ($?!"Are you sure you want to uninstall? You will lose all your stats." == $true) {
- unset %vname
- unset %varrestpm
- unset %vdeathspm
- unset %vbancountpm
- unset %vadmincountpm
- unset %vcriminalpm
- unset %vinstalled
- unset %varrestcount
- unset %vrearrestcount
- unset %vmwarrestcount
- unset %vdeathcount
- unset %vkillcount
- unset %vbancount
- unset %vmutecount
- unset %vjailcount
- unset %vkickcount
- unset %vfreezecount
- unset %vwarncount
- unset %vrapecount
- unset %vrapedcount
- unset %vrobberycount
- unset %vamountrobbed
- unset %vkidnapcount
- unset %vkidnappedcount
- unset %varrestedcount
- unset %vreportcount
- unset %vreportedcount
- unset %vrobcount
- unset %vrobbedcount
- unset %vcagecount
- unset %vterrorcount
- unset %vnoobcount
- echo -a vStats successfully uninstalled
- }
- else {
- echo -a Uninstall process cancelled
- }
- }
- alias vconfigure {
- if (!%vinstalled) { echo -a vStats isnt installed. Type /vinstall to install it. | HALT }
- set %vname $?="Enter your ingame name."
- set %varrestpm $?!="Would you like arrest count increases to be announced to you via PM?"
- set %vdeathspm $?!="Would you like kill/death counts to be announced via PM?"
- set %vcriminalpm $?!="Would you like criminal activity counts (e.g. rape) to be announced via PM?"
- set %vvictimpm $?!="Would you like counts to be announced via PM when you are the victim of an arrest, rape or kidnap?"
- set %vterrorpm $?!="Would you like counts to be announced via PM when you blow up a building?"
- set %vnoobpm $?!="Would you like counts to be announced via PM when you get adnoobed?"
- set %vbancountpm $?!="Would you like to announce ban increases(Only works if you are an admin with a high enough level)"
- set %vadmincountpm $?!="Would you like to announce other admin action such as mutes/jails/kicks (Only works if you are an admin with a high enough level)"
- echo -a vStats has been reconfigured. You may reconfigure at any time with /vconfigure
- }
- alias vadstats {
- if (%vinstalled) {
- msg #vstats (6vStats) 6Bans:7 %vbancount $+ $chr(124) 6Mutes:7 %vmutecount $+ $chr(124) 6Jails:7 %vjailcount $+ $chr(124) 6Kicks:7 %vkickcount $+ $chr(124) 6Warns:7 %vwarncount $+ $chr(124) 6Freezes:7 %vfreezecount $+ $chr(124) 6Cages:7 %vcagecount
- }
- }
- alias vstats {
- if (%vinstalled) {
- msg #vstats (6vStats) 6Police Reports:7 %vreportcount $+ $chr(124) 6Arrest:7 %varrestcount $+ $chr(124) 6Most wanted arrests:7 %vmwarrestcount $+ $chr(124) 6Total arrests:7 $calc(%varrestcount + %vmwarrestcount) $+ $chr(124) 6Kills:7 %vkillcount $+ $chr(124) 6Deaths:7 %vdeathcount $+ $chr(124) 6Ratio:7 $calc(%vkillcount / %vdeathcount) $+ $chr(124) 6Player robs:7 %vrobcount $+ $chr(124) 6Business robberies:7 %vrobberycount $+ $chr(124) 6Amount robbed:7 $chr(36) $+ %vamountrobbed $+ $chr(124) 6Rapes:7 %vrapecount $+ $chr(124) 6Kidnaps:7 %vkidnapcount $+ $chr(124) 6Times robbed:7 %vrobbedcount $+ $chr(124) 6Times raped:7 %vrapedcount $+ $chr(124) 6Times Kidnapped:7 %vkidnappedcount $+ $chr(124) 6Times Arrested:7 %varrestedcount $+ $chr(124) 6Times Police Reported:7 %vreportedcount $+ $chr(124) 6Times Blown Building:7 %vterrorcount $+ $chr(124) 6Times Adnoobed:7 %noobcount
- }
- }
- on *:TEXT:*Most Wanted suspect*has been sent to Alcatraz by Officer*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if (%vname == $getname($12)) {
- inc %vmwarrestcount
- if (%varrestpm) { msg #vstats !pm $getid($12) Most wanted arrest count increased! You have arrested %vmwarrestcount most wanted criminals. }
- }
- if (%vname == $getname($4)) {
- inc %varrestedcount
- if (%vvictimpm) { msg #vstats !pm $getid($4) You have been arrested %varrestedcount times! }
- }
- }
- }
- }
- on *:TEXT:*Wanted suspect*has been arrested by Officer*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if (%vname == $getname($9)) {
- inc %varrestcount
- if (%varrestpm) { msg #vstats !pm $getid($9) Arrest count increased! You have arrested %varrestcount people. }
- }
- if (%vname == $getname($3)) {
- inc %varrestedcount
- if (%vvictimpm) { msg #vstats !pm $getid($3) You have been arrested %varrestedcount times! }
- }
- }
- }
- }
- on *:TEXT:2[Death]*was killed by*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($getname($6) == %vname) {
- inc %vkillcount
- if (%vdeathspm) { msg #vstats !pm $getid($6) Kill count increased! You have killed %vkillcount people. }
- }
- if ($getname($2) == %vname) {
- inc %vdeathcount
- if (%vdeathspm) { msg #vstats !pm $getid($2) Death count increased! You have died %vdeathcount times. }
- }
- }
- }
- }
- on *:TEXT:*Has raped*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($getname($1) == %vname) {
- inc %vrapecount
- if (%vcriminalpm) { msg #vstats !pm $getid($1) Rape count increased! You have raped %vrapecount people. }
- }
- if ($getname($4) == %vname) {
- inc %vrapedcount
- if (%vcriminalpm) { msg #vstats !pm $getid($4) You have been raped %vrapedcount times! }
- }
- }
- }
- }
- on *:TEXT:*, You have successfully Jailed*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($strip($remove($1,$chr(44))) == $me) {
- if ($5 == Jailed) {
- inc %vjailcount
- if (%vadmincountpm) { msg #vstats Jail count increased! I have jailed %vjailcount people. }
- }
- }
- }
- }
- }
- on *:TEXT:*(POLICE REPORT)*Officer*has reported suspect*Reason*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (POLICE isin $1) {
- if (%vinstalled) {
- if (%vname == $getname($4)) {
- inc %vreportcount
- if (%%varrestpm) { msg #vstats !pm $getid($4) Police Report count increased! You have Police Reported %vreportcount people. }
- }
- if (%vname == $getname($8)) {
- inc %vreportedcount
- if (%vcriminalpm) { msg #vstats !pm $getid($4) You have been Police Reported %vreportedcount times! }
- }
- }
- }
- }
- }
- on *:TEXT:*has been*by*on IRC*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($str($chr(42),3) isin $1) {
- if ($7 == $me) {
- if ($5 == banned) {
- inc %vbancount
- if (%vbancountpm) { msg #vstats Ban count increased! I have banned %vbancount people. }
- }
- if ($5 == muted) {
- inc %vmutecount
- if (%vadmincountpm) { msg #vstats Mute count increased! I have muted %vmutecount people. }
- }
- if ($5 == frozen) {
- inc %vfreezecount
- if (%vadmincountpm) { msg #vstats Freeze count increased! I have frozen %vfreezecount people. }
- }
- if ($5 == kicked) {
- inc %vkickcount
- if (%vadmincountpm) { msg #vstats Kick count increased! I have kicked %vkickcount people. }
- }
- if ($5 == warned) {
- inc %vwarncount
- if (%vadmincountpm) { msg #vstats Warn count increased! I have warned %vwarncount people. }
- }
- }
- }
- }
- }
- }
- on *:TEXT:*ADMIN*PLAYER*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($strip($1) == ADMIN) {
- if (%vname == $getname($2)) {
- if ($3 == BANNED) {
- inc %vbancount
- if (%vbancountpm) { msg #vstats !pm $getid($2) Ban count increased! You have banned %vbancount people. }
- }
- if ($3 == JAILED) {
- inc %vjailcount
- if (%vadmincountpm) { msg #vstats !pm $getid($2) Jail count increased! You have jailed %vjailcount people. }
- }
- if ($3 == KICKED) {
- inc %vkickcount
- if (%vadmincountpm) { msg #vstats !pm $getid($2) Kick count increased! You have kicked %vkickcount people. }
- }
- if ($4 == WARNED) {
- inc %vwarncount
- if (%vadmincountpm) { msg #vstats !pm $getid($2) Warn count increased! You have warned %vwarncount people. }
- }
- if ($3 == FROZE) {
- inc %vfreezecount
- if (%vadmincountpm) { msg #vstats !pm $getid($2) Freeze count increased! You have froze %vfreezecount people. }
- }
- if ($3 == CAGED) {
- inc %vcagecount
- if (%vadmincountpm) { msg #vstats !pm $getid($2) Cage count increased! You have caged %vcagecount people. }
- }
- }
- }
- if ($strip($2) == ADMIN) {
- if (%vname == $getname($3)) {
- if ($4 == MUTED) {
- inc %vmutecount
- if (%vadmincountpm) { msg #vstats !pm $getid($3) Mute count increased! You have muted %vmutecount people. }
- }
- }
- }
- }
- }
- }
- on *:TEXT:*TRP*HAS WARNED PLAYER*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($strip($1) == TRP) {
- if (%vname == $getname($2)) {
- if ($4 == WARNED) {
- inc %vwarncount
- if (%vadmincountpm) { msg #vstats !pm $getid($2) Warn count increased! You have warned %vwarncount people. }
- }
- }
- }
- }
- }
- }
- on *:TEXT:**(DM WARN)**Has been warned for DMING by TRP*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($strip($10) == TRP) {
- if (%vname == $getname($11)) {
- if ($6 == warned) {
- inc %vwarncount
- if (%vadmincountpm) { msg #vstats !pm $getid($11) Warn count increased! You have warned %vwarncount people. }
- }
- }
- }
- }
- }
- }
- on *:TEXT:**(ADMIN WARN)**Has been warned for DMING by server admin*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if (ADMIN isin $1) {
- if (%vname == $getname($12)) {
- inc %vwarncount
- if (%vadmincountpm) { msg #vstats !pm $getid($12) Warn count increased! You have warned %vwarncount people. }
- }
- }
- }
- }
- }
- on *:TEXT:*has been banned from the server:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($strip($remove($1,$chr(44))) == $me) {
- inc %vbancount
- if (%vbancountpm) { msg #vstats Ban count increased! I have banned %vbancount people. }
- }
- }
- }
- }
- on *:TEXT:*ROBBERY)*has robbed a total of*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($chr(36) isin $9) { var %name $getname($3) | set %id $getid($3) | var %word $9 }
- if ($chr(36) isin $10) { var %name $getname($4) | var %id $getid($4) | var %word $10 }
- if (%vname == %name) {
- inc %vrobberycount
- set %vamountrobbed $calc(%vamountrobbed + $remove(%word,$chr(36)))
- if (%vcriminalpm) { msg #vstats !pm %id You have robbed a total of $chr(36) $+ %vamountrobbed from %vrobberycount places. }
- }
- }
- }
- }
- on *:TEXT:|_-Rob-_|*Has Robbed Player*By*:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($getname($2) == %vname) {
- inc %vrobcount
- set %vamountrobbed $calc(%vamountrobbed + $remove($13,$chr(36),$chr(33)))
- if (%vcriminalpm) { msg #vstats !pm $getid($2) Rob count increased! You have robbed %vrobcount people. }
- }
- if ($getname($6) == %vname) {
- inc %vrobbedcount
- if (%vcriminalpm) { msg #vstats !pm $getid($6) You have been robbed %vrobbedcount times! }
- }
- }
- }
- }
- on *:TEXT:(Kidnapping)*has grabbed*and thrown him into his car!:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($getname($2) == %vname) {
- inc %vkidnapcount
- if (%vcriminalpm) { msg #vstats !pm $getid($2) Kidnap count increased! You have kidnapped %vkidnapcount people. }
- }
- if ($getname($5) == %vname) {
- inc %vkidnappedcount
- if (%vvictimpm) { msg #vstats !pm $getid($5) You have been kidnapped %vkidnappedcount times! }
- }
- }
- }
- }
- on *:TEXT:Terrorist*Has blown up the*with C4 and has robbed*from it.:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($chr(36) isin $13) { var %name $getname($2) | set %id $getid($2) | var %word $13 }
- if ($chr(36) isin $14) { var %name $getname($2) | set %id $getid($2) | var %word $14 }
- if ($chr(36) isin $15) { var %name $getname($2) | set %id $getid($2) | var %word $15 }
- if ($getname($2) == %vname) {
- inc %vterrorcount
- inc %vrobberycount
- set %vamountrobbed $calc(%vamountrobbed + $remove(%word,$chr(36)))
- if (%vterrorpm) { msg #vstats !pm %id You have blown up %vterrorcount buildings! }
- }
- }
- }
- }
- on *:TEXT:**(ADMIN WARN)**Has been warned by server admin for being a nooblet:#: {
- if ($nick == DRDCNR1) || ($nick == DRDCNR2) || ($nick == DRDCNR3) {
- if (%vinstalled) {
- if ($getname($3) == %vname) {
- inc %vnoobcount
- if (%vnoobpm) { msg #vstats !pm $getid($3) You have been warned for nooby activity %vnoobcount times! }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment