Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:!auction*:#test: {
- if ($2 == $null) { .notice $nick Error }
- elseif ($2 == add) {
- if ($3 == $null) { .notice $nick Please Mention The Special Nature Of Your Pokemon! }
- elseif ($4 == $null) { .notice $nick Please Enter A Pokemon To place in the Auction! }
- elseif ($5 == $nul) { .notice $nick Please Enter A Minimum Base Price For The Plaaced Pokemon for Auction! }
- else {
- if ($read(data/pokemon.bx, w, $4)) && ($read(data/specials.bx, w, $3)) {
- .inc %id
- .writeini -n data/auction.bx $nick Pokemon $4
- .writeini -n data/auction.bx $nick Nature $3
- .writeini -n data/auction.bx $nick Base $5
- .writeini -n data/auction.bx $nick id %id
- .write data/auction_list.bx %id $+ - $4 By $nick
- .set %bid_id $readini(data/auction.bx, $nick, id)
- .msg $chan [Auction] $nick Placed $3 In The Auction List With ID: %bid_id To Place a Bid Please Type !bid %bid_id <Amount>
- .unset %bid_id
- }
- else { .notice $nick Error: Something Has Gone Wrong In The Format }
- }
- }
- elseif ($2 == del) {
- .set %del $readini(data/auction.bx, $nick, Pokemon)
- if (%del == $3) {
- .dec %id
- .unset %del
- .remini data/auction.bx $nick
- .msg $chan [Auction] $nick Pulled Back His Pokemon, $3 From The Auction
- .set %temp_id $readini(data/auction.bx, $nick, id)
- .write -dl $+ %temp_id data/auction_list.bx
- .unset %temp_id
- }
- else {
- .notice $nick You Have Not Put $4 In The Auction!
- .unset %del
- }
- }
- elseif ($2 == list) { .play $chan data/auction_list.bx }
- }
Add Comment
Please, Sign In to add comment