Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.68 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.           remini $+(flowers,$chan,.ini) needed $2
  17.  
  18.         }
  19.         else msg $chan I cant find a ticket with that number.
  20.       }
  21.       else msg $chan Please use the correct command: !claim Number
  22.     }
  23.     else msg $chan Sorry $nick $+ , you are not of the required rank to be able to claim requests.
  24.   }
  25.   elseif (!cancel== $1) {
  26.     if ($2 isnum) {
  27.       if ($readini($+(flowers,$chan,.ini),needed,$2)) {
  28.         msg $chan flower request canceled
  29.         remini $+(flowers,$chan,.ini) needed $2
  30.       }
  31.       else msg $chan I cant find a ticket with that number.
  32.     }
  33.     else msg $chan Please use the correct command: !cancel Number
  34.   }
  35.   else msg $chan Sorry $nick $+ , you are not the request tickets creator
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement