Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($1 == .vouch || $1 == .v) {
- if (!$auth($nick)) { notice $nick Bot is checking Q-Auth login, wait a few seconds and try again | who $nick n%nat,1 }
- else {
- var %u = $name($nick)
- // if ($hget(auths,%u) == NULL) { return }
- if (%gi) { return }
- if ($chan) { var %target = $chan }
- var %tu = $2
- if ($accessystem(%u,%tu).cmdvouch == 0) { describe %target You haven't access to3 .vouch command | return }
- if (!$3) { describe %target Usage: .vouch <qauth> <comment> | return }
- if ($matchtok($2, $chr(46), 0, 32) >= 1) { describe %target Invalid nick | return }
- if ($user(%tu).vouched) { describe %target Player $usercolor(%tu) is already vouched | return }
- if ($user(%u).voucherslots == 0) { describe %target You haven't free vouch slots | return }
- if ($hget(vouch,%tu)) {
- var %id = $user(%tu).id
- hadd vouch %tu %id %u $ctime 1 $3-
- noop $addslot(%u,%tu).vouch
- if ($user(%tu).div == 3) {
- var %expire = $calc($ctime + (336 * 3600))
- var %vtime = $asctime(%expire,dd.mm.yy $+ $chr(44) HH:nn)
- hadd trialcheck %tu 0 %expire
- describe %target Player $usercolor(%u) has been revouched3 Trial Player $usercolor(%tu) with comment:3 $3- $+ . Date of expire:3 %vtime
- }
- else {
- hadd trialcheck %tu 1 $ctime
- describe %target Player $usercolor(%tu) has been revouched by $usercolor(%u) with comment:3 $3-
- }
- }
- else {
- hadd win %tu 0
- hadd lost %tu 0
- hadd draw %tu 0
- hadd streak %tu 0
- hadd rep %tu 50
- hadd points %tu 1000
- describe %target Player $usercolor(%u) has added3 Trial vouch to $usercolor(%tu) with comment:3 $3- $+ . Date of expire:3 %vtime
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement