Advertisement
Guest User

Untitled

a guest
Jun 14th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. on $*:text:/!swordfight /Si:#:{
  2. var %points = $readini(points.ini,$+(#,.,$nick),points)
  3. if (%points isnum 21-9999) {
  4. var %power = $r(1,3)
  5. var %attack = 0
  6. if ($2 %points isnum 0-20) {
  7. if ((%floodswordfight) || ($($+(%,floodswordfight.,$nick),2))) { return }
  8. set -u10 %floodswordfight On
  9. set -u30 %floodswordfight. $+ $nick On
  10. %attack = $read(attacks.txt)
  11.  
  12. if (%power = 1 ) { msg # $nick Used %attack on $2 it was super effective! }
  13. elseif (%power = 2 ) { msg # $nick used %attack on $2 it was not very effective }
  14. elseif (%power = 3 ) { msg # $nick used %attack on $2 }
  15. else { echo # gg you broke my code $nick }
  16. /set %power = 0
  17. }
  18. else { msg # How dare you attack a peasant
  19. }
  20. }
  21. else { msg # this command is only for the knights of the wild
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement