Advertisement
nPhoenix

[Habbo] Pegar qualquer ID

Jun 17th, 2012
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document["AUTHOR"] = /PHOENIX/;
  2. if (!document["AUTHOR"]) {
  3.     return false;
  4. };
  5. habbo = prompt("Que ID deseja pegar?");
  6. if (!habbo) habbo = "vidaroo";
  7. new Ajax.Request("/habblet/ajax/habboid?habboIdName=" + habbo, {
  8.     onComplete: function (x) {
  9.         x = x.responseText;
  10.         if (x.match(/class="errors"/)) {
  11.             console.error("O Habbo " + habbo + " não existe!");
  12.             return false;
  13.         };
  14.         ID = (x.match(/<b>(.+)<\/b>/)[0].split(">")[1].split("<")[0]).replace(/ /gi, "");
  15.         console.log("A ID do Habbo " + habbo + " é " + ID);
  16.     }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement