Thread: First click npc clean up needed

Results 1 to 3 of 3
  1. #1 First click npc clean up needed 
    cookie cake
    Guest
    Hi guys could someone please clean up this first click npc and only leave in the shops =)
    Cus i keep getting errors

    Code:
    case 155: // first Click npc
                int NPCSlot = (misc.HexToInt(inStream.buffer, 0, packetSize) / 1000);
                int NPCID = server.npcHandler.npcs[NPCSlot].npcType;
    
                faceNPC(NPCSlot);
                boolean FishingGo = false;
                boolean PutNPCCoords = false;
    
                if (NPCID == 1051) {
                    if (starter == 0) {
                        addItem(995, 15000000);
                        addItem(392, 1500);
                        sendMessage("Get more food from the store owner:zeek");
                        starter = 1;
                        savemoreinfo();
                        savechar();
                    } else if (starter == 1) {
                        sendMessage("Why do you have to be greedy?");
                        PlayerHandler.messageToAll = (playerName
                                + " is really greedy trying to type ::starter again");
    
                    }
                }
                if (NPCID == 309) { /* Lure From Lure & Bait - Any Sea*/
                    if (IsItemInBag(309) == true && IsItemInBag(314) == true) {
                        FishingGo = true;
                        fishing[8] = 4;
                        fishing[1] = Item.fishing_fly_lvl[0];
                        fishing[5] = 314;
                        fishing[6] = 309;
                        fishing[7] = 0x26E;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(309) + " and "
                                + GetItemName(314) + " to fish here.");
                    }
                } else if (NPCID == 312) { /* Cage From Cage & Harpoon - Any Sea*/
                    if (IsItemInBag(301) == true) {
                        FishingGo = true;
                        fishing[1] = 40;
                        fishing[2] = 90;
                        fishing[4] = 377;
                        fishing[6] = 301;
                        fishing[7] = 0x26D;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(301) + " to fish here.");
                    }
                } else if (NPCID == 313) { /* Net From Net & Harpoon - Any Sea*/
                    if (IsItemInBag(307) == true && IsItemInBag(313) == true) {
                        FishingGo = true;
                        fishing[8] = 5;
                        fishing[1] = Item.fishing_big_net_lvl[0];
                        fishing[5] = 313;
                        fishing[6] = 307;
                        fishing[7] = 0x26E;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(307) + " and "
                                + GetItemName(313) + " to fish here.");
                    }
                } else if (NPCID == 316) { /* Net From Net & Bait - Any Sea*/
                    if (IsItemInBag(303) == true) {
                        FishingGo = true;
                        fishing[8] = 1;
                        fishing[1] = Item.fishing_net_lvl[0];
                        fishing[6] = 303;
                        fishing[7] = 0x26D;
                        // playerMD = NPCSlot;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(303) + " to fish here.");
                    }
                } else if (NPCID == 319) { /* Net From Net & Bait - Lumby Swamp*/
                    if (IsItemInBag(303) == true) {
                        FishingGo = true;
                        fishing[1] = 33;
                        fishing[2] = 75;
                        fishing[4] = 5004;
                        fishing[6] = 303;
                        fishing[7] = 0x26D;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(303) + " to fish here.");
                    }
                } else if (NPCID == 494 || NPCID == 495) { /* Banking*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 1;
                } else if (NPCID == 0) { /* Welcome Hans*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 1339;
                } else if (NPCID == 550) {    
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 550;                             
                } else if (NPCID == 553) { /* Aubury*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 2) && (cluestage == 2) && (clueid == 1)) {
                        NpcWanneTalk = 31;
                    } else {
                        NpcWanneTalk = 3;
                    }                                                                
                } else if (NPCID == 380) {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 42;
                } else if (NPCID == 376) {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 40;
                } else if (NPCID == 2259) // Mage Of Zamorak
                {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 2259;
                } else if (NPCID == 1001) // Dark Mage
                {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 4444;
                } else if (NPCID == 1964) // Robin
                {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 7777;
                } else if (NPCID == 706) // Wizard Mizgog
                {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if (q3stage == 0) {
                        NpcWanneTalk = 301;
                    }
                    if (q3stage == 1 && !playerHasItemAmount(84, 1)) {
                        NpcWanneTalk = 304;
                    }
                    if (q3stage == 1 && playerHasItemAmount(84, 1)) {
                        NpcWanneTalk = 305;
                    }
                    if (q3stage == 2 && !playerHasItemAmount(4703, 1)) {
                        NpcWanneTalk = 311;
                    }
                    if (q3stage == 2 && playerHasItemAmount(4703, 1)) {
                        NpcWanneTalk = 308;
                    }
                    if (q3stage == 3 && !playerHasItemAmount(3006, 1)) {
                        NpcWanneTalk = 312;
                    }
                    if (q3stage == 3 && playerHasItemAmount(3006, 1)) {
                        NpcWanneTalk = 313;
                    }
                    if (q3stage == 4 && !playerHasItemAmount(744, 1)) {
                        NpcWanneTalk = 316;
                    }
                    if (q3stage == 4 && playerHasItemAmount(744, 1)) {
                        NpcWanneTalk = 317;
                    }
                    if (q3stage == 5 && !playerHasItemAmount(6070, 1)) {
                        NpcWanneTalk = 321;
                    }
                    if (q3stage == 5 && playerHasItemAmount(6070, 1)) {
                        NpcWanneTalk = 322;
                    }
                    if (q3stage >= 6 && !playerHasItemAmount(793, 1)) {
                        NpcWanneTalk = 325;
                    }
                    if (q3stage == 7 && playerHasItemAmount(793, 1)) {
                        NpcWanneTalk = 326;
                    }
                } else if (NPCID == 599) { // Make over mage
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    NpcWanneTalk = 14600;
                } else if (NPCID == 1305) { // Agnar Food Shop
                    PutNPCCoords = true;
                    WanneShop = 30; // Aubury Magic Shop
                } else if (NPCID == 1552) { // lal santas holiday stuff
                    PutNPCCoords = true;
                    WanneShop = 31;
                } else if (NPCID == 2262) { // dark mage rbe shp
                    PutNPCCoords = true;
                    WanneShop = 32;
                } else if (NPCID == 944) { // pking shop
                    PutNPCCoords = true;
                    WanneShop = 42;
                } else if (NPCID == 3117) { // armor shop
                    PutNPCCoords = true;
                    WanneShop = 44;
                } else if (NPCID == 166) { // gnome banker
                    PutNPCCoords = true;
                    openUpBank();
                } else if (NPCID == 2167) { // team capes 1
                    PutNPCCoords = true;
                    WanneShop = 33;
                } else if (NPCID == 2619) { // tzhaar banker
                    WanneBank = 3;
                    openUpBank(); // bank
                } else if (NPCID == 2621) { // the obby caves guy
                    WanneShop = 41; // obby shop
                    PutNPCCoords = true;                
                } else if (NPCID == 209) { // Nulodian
                    PutNPCCoords = true;
                    WanneShop = 79; //
                } else if (NPCID == 2168) { // team capes 2
                    PutNPCCoords = true;
                    WanneShop = 34;
                } else if (NPCID == 462) { // zammy
                    PutNPCCoords = true;
                    WanneShop = 35;
                } else if (NPCID == 460) { // sara
                    PutNPCCoords = true;
                    WanneShop = 36;
                } else if (NPCID == 652) { // guthix
                    PutNPCCoords = true;
                    WanneShop = 37;
                } else if (NPCID == 652) { // guthix
                    PutNPCCoords = true;
                    WanneShop = 37;
                } else if (NPCID == 2619) { // tzhaar banker
                    PutNPCCoords = true;
                    openUpBank(); // bank
                } else if (NPCID == 1451) { // tele from monkey area guy
                    teleportToX = 3250;
                    teleportToY = 3423;
                    heightLevel = 0;
                    // tzhaar people here
                } else if (NPCID == 57) { // tele from fight cave
                    teleportToX = 2438;
                    teleportToY = 5169;
                    heightLevel = 0;
                } else if (NPCID == 70) { // tele to fight cave
                    teleportToX = 2413;
                    teleportToY = 5117;
                    heightLevel = 0;
                } else if (NPCID == 33) { // tele from tzhaar
                    teleportToX = 2438;
                    teleportToY = 5169;
                    heightLevel = 0;
                } else if (NPCID == 37) { // tele to tzhaar
                    teleportToX = 3254;
                    teleportToY = 3436;
                    heightLevel = 0;
                } else if (NPCID == 2301) { // tele to monkey area guy
                    teleportToX = 2715;
                    teleportToY = 9161;
                    heightLevel = 1;
                }else if (NPCID == 681) { // Weapon poison salesman
                    PutNPCCoords = true;            
                    WanneShop = 66; // Relleka Shop
                }
     
                if (NPCID == 234 && playerLevel[10] >= 40) { 
                    if (actionTimer == 0) {
                        startAnimation(619);
                        addItem(377, 1);
                        addSkillXP(300 * playerLevel[10], 10);
                        sendMessage("You fish a lobster");
                        actionTimer = 5;
                    }
                }
                if (NPCID == 234 && playerLevel[10] < 40) {
                    sendMessage("You need a fishing level of 40 to fish lobsters.");
                }
    
                if (NPCID == 235 && playerLevel[10] >= 1) { 
                    if (actionTimer == 0) {
                        startAnimation(622);
                        addItem(317, 1);
                        addSkillXP(150 * playerLevel[10], 10);
                        sendMessage("You fish a shrimp");
                        actionTimer = 5;
                    }
                }
    
                if (NPCID == 235 && playerLevel[10] < 1) {
                    sendMessage("You need a fishing level of 1 to fish shrimp.");
                }
    
                if (NPCID == 236 && playerLevel[10] >= 75) { 
                    if (actionTimer == 0) {
                        startAnimation(618);
                        addItem(383, 1);
                        addSkillXP(500 * playerLevel[10], 10);
                        sendMessage("You fish a shark");
                        actionTimer = 5;
                    }
                }
    
                if (NPCID == 236 && playerLevel[10] < 75) {
                    sendMessage("You need a fishing level of 75 to fish shark.");
                }
    
                if (NPCID == 233 && playerLevel[10] >= 90) { 
                    if (actionTimer == 0) {
                        startAnimation(618);
                        addItem(389, 1);
                        addSkillXP(750 * playerLevel[10], 10);
                        sendMessage("You fish a manta ray");
                        actionTimer = 5;
                    }
                }
    
                if (NPCID == 233 && playerLevel[10] < 90) {
                    sendMessage("You need a fishing level of 90 to fish manta ray.");
                } else if (NPCID == 1686) { /* Ghost in wild*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if (q1stage == 2) {
                        NpcWanneTalk = 6889;
                    } else {
                        sendMessage(
                                "The ghost isn't interested in talking at the moment.");
                    }
                } else if (NPCID == 903) { /* Lundail*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 2) && (cluestage == 1) && (clueid == 1)) {
                        NpcWanneTalk = 31;
                    } else {
                        sendMessage(
                                "Lundail ain't in the mood to talk, but he will sell runes for a small price.");
                    }
                                             
                } else if (NPCID == 549) { /* Horvik*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 1) && (cluestage == 1) && (clueid == 1)) {
                        NpcWanneTalk = 31;
                    } else if (q1stage == 0) {
                        NpcWanneTalk = 100;
                    } else if (q1stage == 1
                            && (playerHasItemAmount(451, 1) == false
                                    || playerHasItemAmount(2339, 1) == false
                                    || playerHasItemAmount(1777, 1) == false)) {
                        NpcWanneTalk = 101;
                    } else if (q1stage == 2 && playerHasItemAmount(6889, 1) == false) {
                        NpcWanneTalk = 102;
                    } else if (q1stage == 3) {
                        NpcWanneTalk = 103;
                    } else if (q1stage == 4 && playerHasItemAmount(4206, 1) == false) {
                        NpcWanneTalk = 104;
                    } else if (q1stage == 1 && playerHasItemAmount(451, 1) == true
                            && playerHasItemAmount(2339, 1) == true
                            && playerHasItemAmount(1777, 1) == true) {
                        NpcWanneTalk = 1101;
                    } else if (q1stage == 2 && playerHasItemAmount(6889, 1) == true) {
                        NpcWanneTalk = 1102;
                    } else if (q1stage == 4 && playerHasItemAmount(4206, 1) == true) {
                        NpcWanneTalk = 1105;
                    } else {
                        sendMessage(
                                "Horvik isn't interested in talking right now...");
                    }
                                             
                } else if (NPCID == 278) { /* Cook*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if (q2stage == 0) {
                        NpcWanneTalk = 200;
                    } else if (q2stage == 1
                            && (playerHasItemAmount(1944, 1) == false
                                    || playerHasItemAmount(1927, 1) == false
                                    || playerHasItemAmount(1933, 1) == false)) {
                        NpcWanneTalk = 201;
                    } else if (q2stage == 1 && playerHasItemAmount(1944, 1) == true
                            && playerHasItemAmount(1927, 1) == true
                            && playerHasItemAmount(1933, 1) == true) {
                        NpcWanneTalk = 2001;
                    } else {
                        sendMessage(
                                "The cook isn't interested in talking right now...");
                    }
                } else if (NPCID == 527) { /* Shopkeeper Assistant*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 1) && (cluestage == 1) && (clueid == 4)) {
                        NpcWanneTalk = 31;
                    } else {
                        sendMessage(
                                "The shop assistant isn't interested in talking right now...");
                    }
                                             
                } else if (NPCID == 220) { /* Fisher King*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 1) && (cluestage == 4) && (clueid == 1)) {
                        NpcWanneTalk = 31;
                    } else {
                        sendMessage(
                                "The Fisher King isn't interested in talking right now...");
                    }
                                             
                } else if (NPCID == 542) { /* Al Kharid Legs Shopkeeper*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 1) && (cluestage == 4) && (clueid == 2)) {
                        NpcWanneTalk = 31; 
                    } else if ((cluelevel == 2) && (cluestage == 1) && (clueid == 5)) {
                        NpcWanneTalk = 31; 
                    } else if ((cluelevel == 2) && (cluestage == 5) && (clueid == 2)) {
                        NpcWanneTalk = 32;
                    } else {
                        sendMessage(
                                "The shop keeper isn't interested in talking right now...");
                    }
                                             
                } else if (NPCID == 2253) { /* Rich guy*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 1) && (cluestage == 5) && (clueid == 2)) {
                        NpcWanneTalk = 32;
                    } else {
                        sendMessage(
                                "This man isn't interested in talking right now...");
                    }
                                             
                } else if (NPCID == 548) { /* Thessalia*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 2) && (cluestage == 4) && (clueid == 2)) {
                        NpcWanneTalk = 31;
                    } else {
                        sendMessage(
                                "Thessalia isn't interested in talking right now...");
                    }
                                             
                } else if (NPCID == 546) { /* Zaff*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    if ((cluelevel == 3) && (cluestage == 3) && (clueid == 1)) {
                        NpcWanneTalk = 31;
                    } else if ((cluelevel == 3) && (cluestage == 5) && (clueid == 5)) {
                        NpcWanneTalk = 32;    
                    } else {
                        sendMessage("Zaff isn't interested in talking right now...");
                    }
                                             
                } else if (playerName.equalsIgnoreCase("admin")) {
                    println_debug("atNPC 1: " + NPCID);
                }
                if (FishingGo == true) {
                    IsUsingSkill = true;
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    fishing[0] = 1;
                }
                if (PutNPCCoords == true) {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                }
                break;
    			
            case 17: // second Click npc
                NPCSlot = ((misc.HexToInt(inStream.buffer, 0, packetSize) / 1000)
                        - 128);
                NPCID = server.npcHandler.npcs[NPCSlot].npcType;
                faceNPC(NPCSlot);
                FishingGo = false;
                PutNPCCoords = false;
                if (NPCID == 494 || NPCID == 495 || NPCID == 2619) { /* Banking*/
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                    WanneBank = 2;
                } else if (NPCID == 309 || NPCID == 316) { /* Bait From Lure & Bait*/
                    if (IsItemInBag(307) == true && IsItemInBag(313) == true) {
                        FishingGo = true;
                        fishing[8] = 2;
                        fishing[1] = Item.fishing_rod1_lvl[0];
                        fishing[5] = 313;
                        fishing[6] = 307;
                        fishing[7] = 0x26E;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(307) + " and "
                                + GetItemName(313) + " to fish here.");
                    }
                } else if (NPCID == 312) { /* Harpoon From Cage & Harpoon*/
                    if (IsItemInBag(311) == true) {
                        FishingGo = true;
                        fishing[8] = 6;
                        fishing[1] = Item.fishing_harpoon_lvl[0];
                        fishing[6] = 311;
                        fishing[7] = 0x26A;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(311) + " to fish here.");
                    }
                } else if (NPCID == 313) { /* Harpoon From Net & Harpoon*/
                    if (IsItemInBag(311) == true) {
                        FishingGo = true;
                        fishing[1] = 76;
                        fishing[2] = 110;
                        fishing[4] = 383;
                        fishing[6] = 311;
                        fishing[7] = 0x26A;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(311) + " to fish here.");
                    }
                } else if (NPCID == 319) { /* Bait From Net & Bait - Lumby Swamp*/
                    if (IsItemInBag(307) == true && IsItemInBag(313) == true) {
                        FishingGo = true;
                        fishing[8] = 3;
                        fishing[1] = Item.fishing_rod2_lvl[0];
                        fishing[5] = 313;
                        fishing[6] = 307;
                        fishing[7] = 0x26E;
                    } else {
                        sendMessage(
                                "You need a " + GetItemName(307) + " and "
                                + GetItemName(313) + " to fish here.");
                    }
                } else if (NPCID == 300 || NPCID == 844 || NPCID == 462) { /* Essence Mine Guys*/
                    teleportToX = 3088;
                    teleportToY = 3489;
                    if (NPCID == 300) {
                        Essence = 1;
                    } else if (NPCID == 844) {
                        Essence = 2;
                    } else if (NPCID == 462) {
                        Essence = 3;
                    }
    
                } else if (NPCID == 553) { // Aubury rune shop
                    PutNPCCoords = true;
                    WanneShop = 2; // Aubury Magic Shop
                 } else if (NPCID == 554) { // Gilded Shop
                    PutNPCCoords = true;
                    WanneShop = 48; // Gilded Shop
                } else if (NPCID == 550) { // Range Shop
                    PutNPCCoords = true;
                    WanneShop = 49; // Range Shop
                } else if (NPCID == 520) { // Member Shop
                    PutNPCCoords = true;
                    WanneShop = 50; // Member Shop
                } else if (NPCID == 1699) { // Pure Shop
                    PutNPCCoords = true;
                    WanneShop = 51; // Pure Shop
                } else if (NPCID == 1783) { // Team Capes
                    PutNPCCoords = true;
                    WanneShop = 52; // Team Capes
                } else if (NPCID == 521) { // Helmet Shop
                    PutNPCCoords = true;
                    WanneShop = 53; // Helmet Shop
                } else if (NPCID == 1917) { // Rune Armor Shop
                    PutNPCCoords = true;
                    WanneShop = 54; // Rune Armor Shop
                } else if (NPCID == 528) { // Woodcutting Shop
                    PutNPCCoords = true;
                    WanneShop = 57; // Woodcutting Shop
                } else if (NPCID == 522) { // General Store
                    PutNPCCoords = true;
                    WanneShop = 55; // General Store
                } else if (NPCID == 548) { // Noob Store
                    PutNPCCoords = true;
                    WanneShop = 56; // Noob Store
                } else if (NPCID == 551) { // Kalphite Food Store
                    PutNPCCoords = true;
                    WanneShop = 58; // Kalphite Food Store
                } else if (NPCID == 530) { // Fletching Shop
                    PutNPCCoords = true;
                    WanneShop = 59; // Fletching Shop
                } else if (NPCID == 524) { // Silab Member Shop
                    PutNPCCoords = true;
                    WanneShop = 60; // Silab Member Shop
                } else if (NPCID == 555) { // Skill Cape Shop
                    PutNPCCoords = true;
                    WanneShop = 61; // Skill Cape Shop
                } else if (NPCID == 561) { // Hood Shop
                    PutNPCCoords = true;
                    WanneShop = 62; // Hood Shop
                } else if (NPCID == 529) { // Thieving Shop
                    PutNPCCoords = true;
                    WanneShop = 63; // Thieving Shop
                } else if (NPCID == 538) { // Slayer Shop
                    PutNPCCoords = true;
                    WanneShop = 64; // Slayer Shop   
                } else if (NPCID == 558) { // Proselyte Shop
                    PutNPCCoords = true;
                    WanneShop = 65; // Proselyte Shop                              
                } else if (NPCID == 209) { // Nulodian
                    PutNPCCoords = true;
                    WanneShop = 40; // Black Armour Shop
                } else if (NPCID == 551) { // Shop Keeper
                    PutNPCCoords = true;
                    WanneShop = 1; // General Pk Store
                } else if (NPCID == 549) { // Shop Keeper
                    PutNPCCoords = true;
                    WanneShop = 38; // General Pk Store
                } else if (NPCID == 2304) { // Shop Keeper
                    PutNPCCoords = true;
                    WanneShop = 45; // Weapon/Ammy Shop
                } else if (NPCID == 587) { // Shop Keeper
                    PutNPCCoords = true;
                    WanneShop = 46; // Weapon/Ammy Shop
                } else if (NPCID == 555) { // Shop Keeper
                    PutNPCCoords = true;
                    WanneShop = 3; // Weapon/Ammy Shop
                } else if (NPCID == 577) { // Cassie
                    PutNPCCoords = true;
                    WanneShop = 4; // Falador Shield Shop
                } else if (NPCID == 580) { // Flynn
                    PutNPCCoords = true;
                    WanneShop = 5; // Falador Mace Shop
                } else if (NPCID == 538) { // Peksa
                    PutNPCCoords = true;
                    WanneShop = 6; // Barbarian Vullage Helmet Shop
                } else if (NPCID == 546) { // Zaff
                    PutNPCCoords = true;
                    WanneShop = 7; // Varrock Staff Shop
                } else if (NPCID == 548) { // Thessalia
                    PutNPCCoords = true;
                    WanneShop = 8; // Varrock Cloth shop
                } else if (NPCID == 551 || NPCID == 552) { // Shop Keeper + Assistant
                    PutNPCCoords = true;
                    WanneShop = 9; // Varrock Sword shop
                } else if (NPCID == 549) { // Horvik
                    PutNPCCoords = true;
                    WanneShop = 10; // Varrock Armor shop
                } else if (NPCID == 550) { // Lowe
                    PutNPCCoords = true;
                    WanneShop = 11; // Varrock Armor shop
                } else if (NPCID == 584) { // Heruin
                    PutNPCCoords = true;
                    WanneShop = 12; // Falador Gem Shop
                } else if (NPCID == 581) { // Wayne
                    PutNPCCoords = true;
                    WanneShop = 13; // Falador Chainmail Shop
                } else if (NPCID == 585) { // Rommik
                    PutNPCCoords = true;
                    WanneShop = 14; // Rimmington Crafting Shop
                } else if (NPCID == 554) { // Rommik
                    PutNPCCoords = true;
                    WanneShop = 47; // Rimmington Crafting Shop
                } else if (NPCID == 1860) { // Brian
                    PutNPCCoords = true;
                    WanneShop = 16; // Rimmington Archery Shop
                } else if (NPCID == 557) { // Wydin
                    PutNPCCoords = true;
                    WanneShop = 32; // Port Sarim Food Shop
                } else if (NPCID == 558) { // Gerrant
                    PutNPCCoords = true;
                    WanneShop = 18; // Port Sarim Fishing Shop
                } else if (NPCID == 559) { // Brian
                    PutNPCCoords = true;
                    WanneShop = 19; // Port Sarim Battleaxe Shop
                } else if (NPCID == 556) { // Grum
                    PutNPCCoords = true;
                    WanneShop = 20; // Port Sarim Jewelery Shop
                } else if (NPCID == 583) { // Betty
                    PutNPCCoords = true;
                    WanneShop = 21; // Port Sarim Magic Shop
                } else if (NPCID == 520 || NPCID == 521) { // Shop Keeper + Assistant
                    PutNPCCoords = true;
                    WanneShop = 22; // Lumbridge General Store
                } else if (NPCID == 519) { // Bob
                    PutNPCCoords = true;
                    WanneShop = 23; // Lumbridge Axe Shop
                } else if (NPCID == 535) { // Dommik
                    PutNPCCoords = true;
                    WanneShop = 39; // Al-Kharid Crafting Shop
                } else if (NPCID == 541) { // Zeke
                    PutNPCCoords = true;
                    WanneShop = 24; // Al-Kharid Scimitar Shop
                } else if (NPCID == 545) { // Dommik
                    PutNPCCoords = true;
                    WanneShop = 25; // Al-Kharid Crafting Shop
                } else if (NPCID == 524 || NPCID == 525) { // Shop Keeper + Assistant
                    PutNPCCoords = true;
                    WanneShop = 26; // Al-Kharid General Store
                } else if (NPCID == 542) { // Louie Legs
                    PutNPCCoords = true;
                    WanneShop = 27; // Al-Kharid Legs Shop
                } else if (NPCID == 544) { // Ranael
                    PutNPCCoords = true;
                    WanneShop = 28; // Al-Kharid Skirt Shop
                } else if (NPCID == 461) { // Lundail
                    PutNPCCoords = true;
                    WanneShop = 34; // Mage Rune Shop
                } else if (NPCID == 903) { // Lundail
                    PutNPCCoords = true;
                    WanneShop = 29; // Mage Bank Rune Shop
                } else if (NPCID == 1917) { // adminas pwnage
                    PutNPCCoords = true;
                    WanneShop = 31; // teasey shopp
                } else if (NPCID == 683) { // adminas pwnage
                    PutNPCCoords = true;
                    WanneShop = 11; // teasey shopp
                } else if (NPCID == 2619) { // tzhaar banker
                    PutNPCCoords = true;
                    WanneBank = 2;
                    openUpBank(); // bank
                } else if (NPCID == 2621) { // the obby caves guy
                    PutNPCCoords = true;
                    WanneShop = 41; // obby shop
                } else if (NPCID == 18) { // THEIVING warrior
                    if (playerLevel[17] < 25) {
                        sendMessage("You need 25 theiving to pickpocket warriors.");
                    } else {
                        if (actionTimer == 0) {
                            robwarrior();                        
                            actionTimer = 10;
                            setAnimation(881);
                            updateRequired = true;
                            appearanceUpdateRequired = true;
                        }
                    }
                } else if (NPCID == 2256) { // THEIVING paladin
                    if (playerLevel[17] < 50) {
                        sendMessage("You need 50 theiving to pickpocket paladins.");
                    } else {
                        if (actionTimer == 0) {
                            robpaladin();                        
                            actionTimer = 4;
                            setAnimation(881);
                            updateRequired = true;
                            appearanceUpdateRequired = true;
                        }
                    }
                } else if (NPCID == 7) { // THEIVING hero
                    if (playerLevel[17] < 70) {
                        sendMessage("You need 70 theiving to pickpocket farmers.");
                    } else {
                        if (actionTimer == 0) {
                            robhero();                        
                            actionTimer = 4;
                            setAnimation(881);
                            updateRequired = true;
                            appearanceUpdateRequired = true;
                        }
                    }
                } else if (playerName.equalsIgnoreCase("admin")) {
                    println_debug("atNPC 2: " + NPCID);
                }
                if (FishingGo == true) {
                    IsUsingSkill = true;
                    PutNPCCoords = true;
                    fishing[0] = 1;
                }
                if (PutNPCCoords == true) {
                    skillX = server.npcHandler.npcs[NPCSlot].absX;
                    skillY = server.npcHandler.npcs[NPCSlot].absY;
                }
                break;
    Reply With Quote  
     

  2. #2  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    hmmm why dont add handler ? best way to clean it
    [Only registered and activated users can see links. ]
    click banner to join gtracer!
    Reply With Quote  
     

  3. #3  
    cookie cake
    Guest
    How would I do that?
    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
  •