Advertisement
Iire

Untitled

Aug 24th, 2014
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.55 KB | None | 0 0
  1. on *:TEXT:!give*:?: {
  2.   if ($hget(wallet, $2) == $null) { .msg $nick That person does not have an account. }
  3.   elseif ($hget(wallet, $nick) >= $cursimple($3,$4)) {
  4.     hdec wallet $nick $v2
  5.     hinc wallet $2 $v2
  6.     .msg $nick You have given $3 $4 to $2.
  7.     .msg $2 You have received $3 $4 from $nick $+ .
  8.   }
  9.   else .msg $nick You do not have enough money.
  10. }
  11.  
  12. alias cursimple {
  13.   if ($2 == CTB) { return $1 }
  14.   if ($2 == CT) { return $calc($1 * 10) }
  15.   if ($2 == ST) { return $calc($1 * 1000) }
  16.   if ($2 == GT) { return $calc($1 * 10000) }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement