Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("flags.js");
  2.  
  3. //script made by sorrow
  4.  
  5. function ob(ip) {
  6.     gx = new HttpRequest();
  7.     gx.src = "http://ip-api.com/json/" + ip;
  8.     gx.utf = true;
  9.     gx.oncomplete = function () {
  10.         js0n(this.page);
  11.     }
  12.     gx.download();
  13. }
  14.  
  15.  
  16. function todos(esto) {
  17.     Users.local(function(g) {
  18.                          
  19.                          if(g.vroom == 0){
  20.         g.scribble(esto);
  21.                          }
  22.     });
  23. }
  24.  
  25.  
  26.  
  27.  
  28. function mostrar(url,ex) {
  29.     if(ex!=null){
  30.     xk = new Scribble();
  31.     xk.src = "http://sorrow-sb0t.webs.com/" + url + ".gif";
  32.     xk.oncomplete = function(e) {
  33.         if(e){
  34.             im = this;
  35.             print(0,"\x0301Canada\x20\x0304\u2665\x20\x0301Newfoundland");
  36.             todos(im);
  37.         }
  38.     };
  39.     xk.download();
  40.        
  41.         }else{
  42.     xk = new Scribble();
  43.     xk.src = "http://sorrow-sb0t.webs.com/" + url + ".gif";
  44.     xk.oncomplete = function(e) {
  45.         if(e){
  46.             im = this;
  47.             todos(im);
  48.         }
  49.     };
  50.     xk.download();
  51.         }
  52. }
  53.  
  54.  
  55. function js0n(string) {
  56.     datos = JSON.parse(string);
  57.     if (datos.country != null) print(0,"\x0301"+datos.country + " \x0304\u2665 \x0301" + datos.city);
  58.     mostrar(datos.countryCode.toLowerCase());
  59. }
  60.  
  61.  
  62. function onJoinCheck(u){
  63.     if (u.externalIp == "127.0.0.1") {
  64.         //mostrar('ca',u.externalIp);
  65.         ob(Room.externalIp)
  66.     } else {
  67.         ob(u.externalIp);
  68.     }
  69.     return true;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement