Lux-Ferre

DH2 Sigil Randomizer

Apr 27th, 2021 (edited)
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sendChat(_0x7FAA) {
  2.     toggleChatIcon();
  3.     var _0x74A4 = _0x7FAA[_$_26f8[36]];
  4.     if (_0x74A4[_$_26f8[1]] > 0) {
  5.         if (!doChatCommand(_0x74A4)) {
  6.             cBytes(_$_26f8[100] + _0x74A4)
  7.         }
  8.         ;document[_$_26f8[4]](_$_26f8[97])[_$_26f8[36]] = _$_26f8[0];
  9.         disableChattingInput();
  10.         setTimeout(enableChattingInput, 100)
  11.     }
  12. }
  13.  
  14. function toggleChatIcon() {
  15.     iconPosition = getRandomNumber(window.iconList.length);
  16.     newIcon = window.iconList[iconPosition]
  17.  
  18.     changeIcon(newIcon);
  19. }
  20.  
  21.  
  22. function getRandomNumber(max) {
  23.     return Math.floor(Math.random() * max);
  24. }
  25.  
  26. var iconList = [6,9,10,11,12,13,15,16,17,7,1,4,5,21,22,23,24,25,26,27,39,44,53,41,35];
Add Comment
Please, Sign In to add comment