Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.12 KB | None | 0 0
  1.     else if (NpcType == 2234) {
  2.                 if (WithinDistance(NpcX, NpcY, absX, absY, 3)) {
  3.                     int lvl = playerLevel[playerThieving];
  4.                     if (thiefDelay <= 0) {
  5.                         if (lvl >= 65) {
  6.                             if (misc.random(lvl) >= 38) {
  7.                                 startAnimation(881, 1);
  8.                                 sendMessage("You manage to pick the Master Farmer's pocket.");
  9.                                 addItem(5299, 1);
  10.                                 addSkillXP(43 * thiefXpInc, 17);
  11.                                 thiefDelay = 4;
  12.                             } else {
  13.                                 Server.s.npcHandler.npcs[NpcSlot].StartAnimation(412);
  14.                                 Server.s.npcHandler.npcs[NpcSlot].TurnNpcTo(absX, absY);
  15.                                 Server.s.npcHandler.npcs[NpcSlot].showText("What do you think you're doing?");
  16.                                 EntangleDelay = 6;
  17.                                 thiefDelay = 6;
  18.                                 sendMessage("The Master Farmer catches you!");
  19.                                 startAnimation(GetBlockEmote(getItemName(playerEquipment[playerWeapon])), 0);
  20.                                 CreatePlayerGfx(80, 0, 100);
  21.                                 hitDiff = misc.random(15);
  22.                                 updateHp(hitDiff, false);
  23.                                 updateRequired = true;
  24.                                 hitUpdateRequired = true;
  25.                             }
  26.                         } else
  27.                             showDialogue("You need 38 thieving to pickpocket a Master Farmer.");
  28.                     }
  29.                 }
  30.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement