Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (NpcType == 2234) {
- if (WithinDistance(NpcX, NpcY, absX, absY, 3)) {
- int lvl = playerLevel[playerThieving];
- if (thiefDelay <= 0) {
- if (lvl >= 65) {
- if (misc.random(lvl) >= 38) {
- startAnimation(881, 1);
- sendMessage("You manage to pick the Master Farmer's pocket.");
- addItem(5299, 1);
- addSkillXP(43 * thiefXpInc, 17);
- thiefDelay = 4;
- } else {
- Server.s.npcHandler.npcs[NpcSlot].StartAnimation(412);
- Server.s.npcHandler.npcs[NpcSlot].TurnNpcTo(absX, absY);
- Server.s.npcHandler.npcs[NpcSlot].showText("What do you think you're doing?");
- EntangleDelay = 6;
- thiefDelay = 6;
- sendMessage("The Master Farmer catches you!");
- startAnimation(GetBlockEmote(getItemName(playerEquipment[playerWeapon])), 0);
- CreatePlayerGfx(80, 0, 100);
- hitDiff = misc.random(15);
- updateHp(hitDiff, false);
- updateRequired = true;
- hitUpdateRequired = true;
- }
- } else
- showDialogue("You need 38 thieving to pickpocket a Master Farmer.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement