Thread: Battlescape Thieving help

Results 1 to 2 of 2
  1. #1 Battlescape Thieving help 
    Registered Member
    Join Date
    Jan 2009
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I got this code

    case 4278:
    if (playerLevel[playerThieving] < 55) {
    //sendMessage("You need 55 thieving to steal from this stall!");
    showDialogue("You need 55 thieving to steal from this stall!");
    break;
    }
    if (thiefDelay > 0) break;
    for (int n = 0; n < Server.s.npcHandler.maxNPCs; n++) {
    if (Server.s.npcHandler.npcs[n] != null) {
    if (Server.s.npcHandler.npcs[n].NpcType == 1298) {
    if (WithinDistance(absX, absY, Server.s.npcHandler.npcs[n].absX, Server.s.npcHandler.npcs[n].absY, 3)) {
    Server.s.npcHandler.npcs[n].textUpdate = "Stop right there!";
    Server.s.npcHandler.npcs[n].updateRequired = true;
    Server.s.npcHandler.npcs[n].textUpdateRequired = true;
    hitDiff = misc.random(15);
    updateHp(hitDiff, false);
    updateRequired = true;
    hitUpdateRequired = true;
    startAnimation(GetBlockEmote(getItemName(playerEqu ipment[playerWeapon])), 0);
    CreatePlayerGfx(80, 0, 100);
    EntangleDelay = 6;
    thiefDelay = 6;
    break;
    } else {
    if (invSpace()) {
    addItem(995, 21000);
    sendMessage("You manage to steal some coins.");
    startAnimation(881, 0);
    thiefDelay = 4;
    addSkillXP(750, 17);
    } else {
    sendMessage("Not enough space in your inventory.");
    }
    break;
    }
    }
    }
    }

    But The npc id 1298 dont attack when some1 is thieving from fish stall(id4278)
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2009
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Bump

    reason: I want to know why this dont work.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •