Advertisement
nPhoenix

[Habbo] Adicionar qualquer Habbo

Jul 22nd, 2012
410
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 habbo deseja adicionar?");
  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.         new Ajax.Request("/myhabbo/friends/add", {
  16.             parameters: "accountId=" + ID
  17.         });
  18.     }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement