Thread: Error with shops [DELTA]

Results 1 to 2 of 2
  1. #1 Error with shops [DELTA] 
    Registered Member
    Join Date
    Sep 2012
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    error: unreachable statement

    switch (NPCID) {
    ^

    Symbol: variable NPCID
    Location: class packets
    1 error

    Heres my case 17

    case 17:
    // second Click npc
    c.NPCSlot = c.inStream.readUnsignedWordBigEndianA();
    if ((c.NPCSlot < 0) || (c.NPCSlot >= server.npcHandler.npcs.length)
    || (server.npcHandler.npcs[c.NPCSlot] == null))
    break;
    c.NPCID = server.npcHandler.npcs[c.NPCSlot].npcType;
    long time = System.currentTimeMillis();
    if (misc.random(100) == 1) {
    c.triggerRandom();
    break;
    }
    if (time - c.globalCooldown[0] <= 50) {
    c.sM("Action throttled... please wait longer before acting!");
    break;
    }

    if (time - c.lastMouse > 5000) {
    //sM("Client hack detected!");
    c.println("Suspicious activity!");
    c.disconnected = true;
    break;
    }
    if(c.action == 1){
    c.sM("Suspicious activity!");
    break;
    }

    c.globalCooldown[0] = time;
    int npcX = server.npcHandler.npcs[c.NPCSlot].absX;
    int npcY = server.npcHandler.npcs[c.NPCSlot].absY;
    if ((Math.abs(c.absX - npcX) > 50) || (Math.abs(c.absY - npcY) > 50)) {
    //sM("Client hack detected!");
    break;
    }
    if (server.npcHandler.npcs[c.NPCSlot].IsDead) {
    //sM("That monster has been killed!");
    break;
    }
    FishingGo = false;
    PutNPCCoords = false;

    switch (NPCID) {

    case 1597:
    c.openUpShop(1);
    break;

    default:
    c.sM("They are busy right now.");
    break;
    }
    break;
    you guys see anything wrong?
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    make it

    Code:
    switch (c.NPCID) {
    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

Similar Threads

  1. [Delta] shops?
    By King Man002 in forum Help
    Replies: 0
    Last Post: 01-23-2011, 01:30 AM
  2. delta shops
    By Rainex in forum Help
    Replies: 1
    Last Post: 01-18-2011, 11:17 AM
  3. [Delta] Reload Shops [Delta]
    By Neekage in forum Tutorials
    Replies: 7
    Last Post: 06-05-2010, 05:08 AM
  4. [DELTA] Shops
    By Shemhamforash in forum Help
    Replies: 13
    Last Post: 10-03-2009, 07:30 PM
  5. [Delta] Need help with shops
    By Dimitry in forum Help
    Replies: 6
    Last Post: 05-06-2009, 10:04 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •