Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on $*:text:/!swordfight /Si:#:{
- var %points = $readini(points.ini,$+(#,.,$nick),points)
- if (%points isnum 21-9999) {
- var %power = $r(1,3)
- var %attack = 0
- if ($2 %points isnum 0-20) {
- if ((%floodswordfight) || ($($+(%,floodswordfight.,$nick),2))) { return }
- set -u10 %floodswordfight On
- set -u30 %floodswordfight. $+ $nick On
- %attack = $read(attacks.txt)
- if (%power = 1 ) { msg # $nick Used %attack on $2 it was super effective! }
- elseif (%power = 2 ) { msg # $nick used %attack on $2 it was not very effective }
- elseif (%power = 3 ) { msg # $nick used %attack on $2 }
- else { echo # gg you broke my code $nick }
- /set %power = 0
- }
- else { msg # How dare you attack a peasant
- }
- }
- else { msg # this command is only for the knights of the wild
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement