Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:*:#: {
- if (Success isin $1) && ($2 == you) && ($3 == bought) {
- /writeini bullets.ini $address($nick,2) nick $nick
- /writeini bullets.ini $address($nick,2) chan $chan
- set %totalprice $remove($8,$chr(44))
- set %bulletprice $calc(%totalprice / $4)
- if ($round(%bulletprice,0) == %bulletprice) {
- msg $chan 10 $+ $nick 14bought7 $4 14bullets for a total amount of7 $ $+ $8 $+ 14! That's7 $ $+ $round(%bulletprice,0) 14per bullet with no hammer set!
- /timer 1 60 /bulletbuyreminder $chan $address($nick,2)
- }
- if ($round(%bulletprice,0) != %bulletprice) {
- set %hammerprice $calc(%totalprice / ($4 / 0.99))
- msg $chan 10 $+ $nick 14bought7 $4 14bullets for a total amount of7 $ $+ $8 $+ 14! That's7 $ $+ $round(%hammerprice,0) 14per bullet including hammer!
- /timer 1 60 /bulletbuyreminder $chan $address($nick,2)
- }
- }
- if (You may buy bullets again in isin $1-) {
- msg $chan 10 $+ $nick 14reached the bulletbuylimit! I will remind you in7 $7- $+ 14!
- /writeini bullets.ini $address($nick,2) nick $nick
- /writeini bullets.ini $address($nick,2) chan $chan
- if ($8 == hours) {
- set %reminderhrs $calc($7 * 3600)
- set %remindermins $calc($9 * 60)
- set %remindertime $calc(%reminderhrs + %remindermins + $11)
- /timer 1 %remindertime /bulletlimitreminder $chan $address($nick,2)
- }
- if ($8 == minutes) {
- set %remindermins $calc($7 * 60)
- set %remindertime $calc(%reminderhrs + %remindermins + $9)
- /timer 1 %remindertime /bulletlimitreminder $chan $address($nick,2)
- }
- if ($8 == seconds) {
- /timer 1 $7 /bulletlimitreminder $chan $address($nick,2)
- }
- }
- }
- on *:nick: {
- if ($readini(bullets.ini, $address($nick,2), nick) != $null) {
- writeini bullets.ini $address($nick,2) nick $newnick
- }
- }
Add Comment
Please, Sign In to add comment