Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @filename GiveMalus.js
- * @author kolton
- * @desc Give the Horadric Malus to Charsi even witch characters below level 8
- * Mule the Malus onto a low level character, get near Charsi and press the Insert key
- */
- function GiveMalus() {
- addEventListener("keyup",
- function (key) {
- var i, charsi;
- if (key === 45) { // INSERT key
- if (me.getItem(89)) {
- charsi = getUnit(1, "charsi");
- if (!charsi) {
- me.overhead("Charsi not found.");
- return;
- }
- sendPacket(1, 0x31, 4, charsi.gid, 4, 0xa3);
- for (i = 0; i < 10; i += 1) {
- if (!me.getItem(89)) {
- me.overhead("Malus given to Charsi. You can now imbue.");
- }
- delay(100);
- }
- } else {
- me.overhead("You don't have the Malus.");
- }
- }
- });
- while (true) {
- delay(100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment