kolton

Untitled

Aug 12th, 2014
679
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. *   @filename   GiveMalus.js
  3. *   @author     kolton
  4. *   @desc       Give the Horadric Malus to Charsi even witch characters below level 8
  5. *               Mule the Malus onto a low level character, get near Charsi and press the Insert key
  6. */
  7.  
  8. function GiveMalus() {
  9.     addEventListener("keyup",
  10.         function (key) {
  11.             var i, charsi;
  12.  
  13.             if (key === 45) { // INSERT key
  14.                 if (me.getItem(89)) {
  15.                     charsi = getUnit(1, "charsi");
  16.  
  17.                     if (!charsi) {
  18.                         me.overhead("Charsi not found.");
  19.  
  20.                         return;
  21.                     }
  22.  
  23.                     sendPacket(1, 0x31, 4, charsi.gid, 4, 0xa3);
  24.  
  25.                     for (i = 0; i < 10; i += 1) {
  26.                         if (!me.getItem(89)) {
  27.                             me.overhead("Malus given to Charsi. You can now imbue.");
  28.                         }
  29.  
  30.                         delay(100);
  31.                     }
  32.                 } else {
  33.                     me.overhead("You don't have the Malus.");
  34.                 }
  35.             }
  36.         });
  37.  
  38.     while (true) {
  39.         delay(100);
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment