Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:*:#:{
- if (!run == $1) {
- if ($($+($,$0),2) isnum && $3) {
- var %n $calc($ini($+(flowers,$chan,.ini),needed,$ini($+(flowers,$chan,.ini),needed,0)) + 1)
- writeini $+(flowers,$chan,.ini) needed %n $+($nick,:,$($+($,2-,$calc($0 - 1)),2),:,$($+($,$0),2))
- 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.
- }
- else msg $chan Please use the correct command: !run Country Amount-Of-Flowers
- }
- elseif (!claim == $1) {
- if ($nick($chan,$nick,&@%+~)) {
- if ($2 isnum) {
- if ($readini($+(flowers,$chan,.ini),needed,$2)) {
- 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) $+ .
- msg $gettok($v1,1,58) $+ $nick has accepted your offer for the flowers. You may now negotiate a price.
- }
- else msg $chan I cant find a ticket with that number.
- }
- else msg $chan Please use the correct command: !claim Number
- }
- else msg $chan Sorry $nick $+ , you are not of the required rank to be able to claim requests.
- }
- elseif (!cancel== $1) {
- if ($2 isnum) {
- if ($readini($+(flowers,$chan,.ini),needed,$2)) {
- msg $chan ticket canceled
- remini $+(flowers,$chan,.ini) needed $2
- }
- else msg $chan I cant find a ticket with that number.
- }
- else msg $chan Please use the correct command: !cancel Number
- }
- else msg $chan Sorry $nick $+ , you are not the request tickets creator
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement