Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. on *:TEXT:*!icey*:#: { if (%floodkill == 0) { /icey $nick
  2. set %floodkill 1
  3. timerfloodkill 1 5 set %floodkill 0 } }
  4. on *:TEXT:*!steal*:#: {
  5. if (%espynick == $nick) { halt }
  6. if (%iftime == 1) { halt }
  7. set %thief $rand(1,20)
  8. if (%espythiefset == 0) && (%thief == 20) { set %iftime 1
  9. espeon $nick }
  10. if (%espythiefset == 0) && (%thief < 20) { espeon }
  11. if (%espythiefset == 0) { set %espythiefset 1
  12. timerespythiefset 1 30 set %espythiefset 0 }
  13. }
  14. alias icey {
  15. if (%iftime = 0) {
  16. if %secdec == 1 { describe $chan still belongs to %espynick for 1 more second! }
  17. elseif %secdec < 60 { describe $chan still belongs to %espynick for %secdec more seconds }
  18. else {
  19. if $round($calc( %secdec / 60 ),0) = 1 { describe $chan still belongs to %espynick for $round($calc( %secdec / 60 ),0) more minute }
  20. else {
  21. if $round($calc( %secdec / 60 ),0) > 1 { describe $chan still belongs to %espynick for $round($calc( %secdec / 60 ),0) more minutes }
  22. }
  23. }
  24. }
  25. else {
  26. %time = $rand(1,15)
  27. %espynick = $1
  28. if %time = 1 { describe $chan now belongs to %espynick for %time minute }
  29. else { describe $chan now belongs to %espynick for %time minutes }
  30. %iftime = 0
  31. %secdec = $calc( %time * 60 )
  32. timerespyleft $calc( %time * 60 ) 1 dec %secdec
  33. timerespy 1 $calc( %time * 60) set %iftime 1
  34. }
  35. }
  36. on *:START: { set %floodkill 0 | unset %iftime | unset %espynick }
  37. alias varset { unset %espynick | set %floodkill 0 | unset %iftime | msg $chan [!icey vars reset] }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement