Advertisement
OrFeAsGr

St3list promo topic - Pokegen 2

Feb 12th, 2017
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.77 KB | None | 0 0
  1. ON *:SOCKOPEN:pokegenpromo: {
  2. sockwrite -nt $sockname GET /promo.php HTTP/1.1  | sockwrite -nt $sockname Host: pokegen.net | sockwrite $sockname $crlf }
  3.  
  4. ON *:SOCKREAD:pokegenpromo: { var %pgp | sockread %pgp | tokenize 32 %pgp | if (*The current promo pokemon is* iswm %pgp) { var %p = $gettok($6-,1,60) | if (!%lastpromo) || (%lastpromo != %p) { set %lastpromo %p
  5.       topic #test topic %lastpromo
  6.     }
  7.     sockclose $sockname
  8.   }
  9. }
  10.  
  11. alias promocheck {
  12. if (!$timer(promocheck).secs) {
  13. echo -at PokeGen Promo Checking Is Now On.
  14. sockopen pokegenpromo pokegen.net 80
  15. .timerpromocheck 0 3600 sockopen pokegenpromo pokegen.net 80
  16. }
  17. elseif ($timer(promocheck).secs) {
  18. echo -at PokeGen Promo Checking Is Now Off.
  19. .timerpromocheck off
  20. }
  21. }
  22.  
  23. ON *:START: {
  24. promocheck
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement