Advertisement
Corosus

Untitled

Mar 20th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. if (o7 isin $mid($1-, 0, 2)) {
  2. if (%saluteState == 0) {
  3. set %saluteState 1
  4. set %saluteFirst $nick
  5. .timersaluteReset 1 10 set %saluteState 0
  6. }
  7. else if (%saluteState == 1 && $nick != %saluteFirst) {
  8. set %saluteState 0
  9. set %tempp % [ $+ saluteStats. $+ [ $nick ] $+ . $+ [ %saluteFirst ] ]
  10. if (%tempp == $null || %tempp == 0) {
  11. echo wat
  12. set %tempp % [ $+ saluteStats. $+ [ %saluteFirst ] $+ . $+ [ $nick ] ]
  13. set % [ $+ saluteStats. $+ [ %saluteFirst ] $+ . $+ [ $nick ] ] [ $calc(%tempp + 1) ]
  14. }
  15. else {
  16. set % [ $+ saluteStats. $+ [ $nick ] $+ . $+ [ %saluteFirst ] ] [ $calc(%tempp + 1) ]
  17. }
  18.  
  19. set %notation th
  20. if ($calc(%tempp + 1) == 1) {
  21. set %notation st
  22. }
  23. else if ($calc(%tempp + 1) == 2) {
  24. set %notation nd
  25. }
  26. else if ($calc(%tempp + 1) == 3) {
  27. set %notation rd
  28. }
  29. msg $chan %saluteFirst o7 * o7 $nick - $calc(%tempp + 1) $+ %notation time
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement