Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.21 KB | None | 0 0
  1. on *:TEXT:*:#:{
  2.   if (!run == $1) {
  3.     if ($($+($,$0),2) isnum && $3) {
  4.       var %n $calc($ini($+(flowers,$chan,.ini),needed,$ini($+(flowers,$chan,.ini),needed,0)) + 1)
  5.       writeini $+(flowers,$chan,.ini) needed %n $+($nick,:,$($+($,2-,$calc($0 - 1)),2),:,$($+($,$0),2))
  6.       msg $chan Your ticketnumber is %n and your request is $($+($,$0),2) flowers this will take a maximum of $ceil($calc($($+($,$0),2) / 5)) runs.
  7.     }
  8.     else msg $chan Please use the correct command: !run Country Amount-Of-Flowers
  9.   }
  10.   elseif (!claim == $1) {
  11.     if ($nick($chan,$nick,&@%+~)) {
  12.       if ($2 isnum) {
  13.         if ($readini($+(flowers,$chan,.ini),needed,$2)) {
  14.           msg $chan Thank you $nick $+ , please go to $gettok($v1,2,58) and fetch $gettok($v1,3,58) flowers and negotiate a price with $gettok($v1,1,58) $+ .
  15.           msg $gettok($v1,1,58)  $+ $nick has accepted your offer for the flowers. You may now negotiate a price.
  16.         }
  17.         else msg $chan I cant find a ticket with that number.
  18.       }
  19.       else msg $chan Please use the correct command: !claim Number
  20.     }
  21.     else msg $chan Sorry $nick $+ , you are not of the required rank to be able to claim requests.
  22.   }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement