Thread: orphaned case 17

Results 1 to 4 of 4
  1. #1 orphaned case 17 
    nubcake
    Guest
    well after looking at a tutorial of adding a quest,i finished one then
    at the end when i compiled i got this error

    Code:
    Error:
    orphaned case 17:
    press any key to continue...
    the quest(When i add this i get the error.)
    Code:
    if(q12 == 1 && NPCID == 747) {
    	NpcDialogue = 158;
    	NpcDialogueSend = false;
    	deleteItem(3460, 1);
    	q12 += 1;
    }
    if(q12 == 2 && playerHasItem(1535, 1)) { 
    	NpcDialogue = 166;
    	NpcDialogueSend = false;
    	q12 += 1;
    }
    if(q12 == 3 && playerHasItem(1536, 1)) { 
    		NpcDialogue = 169;
    		NpcDialogueSend = false;
    		q12 += 1;
    
    }
    if(q12 == 4) {
    		NpcDialogue = 172;
    		NpcDialogueSend = false;
    		q12 += 1;
    }
    
    if(q12 == 5 && NPCID == 198) {
    		NpcDialogue = 175;
    		NpcDialogueSend = false;
    		q12 = 15;
    }
    }
    under q2 to case 21(the case after 17)
    Code:
    if (NPCID == 702) {
    				PutNPCCoords = true;
    				WanneShop = 18;
    }
    if (NPCID == 804) {
    openTan();
    }
    if(NPCID == 2617){
    toX = 2480;
    toY = 5175;
    }
    if(NPCID == 599){
    		    showInterface(3559);
    		    apset = true;
    }
    if (NPCID == 1281) {
    				PutNPCCoords = true;
    				WanneShop = 6; 
    }
    
    			if (NPCID == 316) {
    				/* Net From Net & Bait - Any Sea */
    				if ((IsItemInBag(303) == true)) {
    					startFishing(316);
    				} else {
    					sM("You need a " + getItemName(303)
    							+ " to fish here.");
    				}
    			} else if (NPCID == 321) {
    				startFishing(321);
    			} else if (NPCID == 322) {
    				startFishing(322);
    			} else if (NPCID == 323) {
    				startFishing(323);
    
    			} else {
    	    faceNPC(NPCSlot);
    			}
    			if (PutNPCCoords == true) {
    				skillX = server.npcHandler.npcs[NPCSlot].absX;
    				skillY = server.npcHandler.npcs[NPCSlot].absY;
    			}
    			break;
    			
    			
    		
    
    		case 17:
    			// second Click npc
    			NPCSlot = inStream.readUnsignedWordBigEndianA();
    			if ((NPCSlot < 0) || (NPCSlot >= server.npcHandler.npcs.length)
    					|| (server.npcHandler.npcs[NPCSlot] == null))
    				break;
    
    			NPCID = server.npcHandler.npcs[NPCSlot].npcType;
    			long time = System.currentTimeMillis();
    			if (misc.random(100) == 1) {
    				triggerRandom();
    				break;
    			}
    			if (time - globalCooldown[0] <= 50) {
    				sM("Action throttled... please wait longer before acting!");
    				break;
    			}
    			if (time - lastMouse > 5000) {
    				//sM("Client hack detected!");
    				println("Suspicious activity!");
    				disconnected = true;
    				break;
    			}
    			if(action == 1){
    				sM("Suspicious activity!");			
    				break;
    			}
    
    			globalCooldown[0] = time;
    			int npcX = server.npcHandler.npcs[NPCSlot].absX;
    			int npcY = server.npcHandler.npcs[NPCSlot].absY;
    			if ((Math.abs(absX - npcX) > 50) || (Math.abs(absY - npcY) > 50)) {
    				//sM("Client hack detected!");
    				break;
    			}
    			if (server.npcHandler.npcs[NPCSlot].IsDead) {
    				sM("That monster has been killed!");
    				break;
    			}
    			FishingGo = false;
    			PutNPCCoords = false;
    if(NPCID == 1597){
    				PutNPCCoords = true;
    				WanneShop = 41;
    }
    if(NPCID == 959){
    				sM("You have been healed.");
    				lowGFX(436, 0);
    				currentHealth += 10;
    				if (currentHealth > playerLevel[playerHitpoints])
    					currentHealth = playerLevel[playerHitpoints];
    				sendQuest("" + currentHealth + "", 4016);
    }
    if(NPCID == 534){
    				PutNPCCoords = true;
    				WanneShop = 42;
    }
    if(NPCID == 594){
    				PutNPCCoords = true;
    				WanneShop = 17; 
    }
    if(NPCID == 569){
    PutNPCCoords = true;
    WanneShop = 8;
    }
    if(NPCID == 1){
    robPerson("man", 995, 105, 29, 1);
    }
    if(NPCID == 9){
    robPerson("guard", 995, 272, 48, 15);
    }
    if(NPCID == 23){
    robPerson("knight", 995, 440, 102, 30);
    }
    if(NPCID == 21){
    robPerson("hero", 995, 760, 120, 60);
    }
    if(NPCID == 66){
    robPerson("gnome", 995, 1200, 150, 80);
    }
    if(NPCID == 496){
                         NpcDialogue = 8;
                         NpcDialogueSend = false;
    }
    			if ((NPCID == 494) || (NPCID == 495)
    					|| (NPCID == 497) || (NPCID == 2354) || (NPCID == 2355)
    					|| (NPCID == 2619) || (NPCID == 3198)) {
    				/* Banking */
    				skillX = server.npcHandler.npcs[NPCSlot].absX;
    				skillY = server.npcHandler.npcs[NPCSlot].absY;
    				WanneBank = 2;
    			}
    			if(NPCID == 3789){
    			sendQuest("      "+pcPoints+"", 10379);
    			showInterface(10294);
    			}
    			if(NPCID == 683){
    				PutNPCCoords = true;
    				WanneShop = 33; 
    			}
    			if(NPCID == 682){
    				PutNPCCoords = true;
    				WanneShop = 3; 						
    			} else if ((NPCID == 300) || (NPCID == 844) || (NPCID == 462)) {
    				/* Essence Mine Guys */
    				IsUsingSkill = true;
    				skillX = server.npcHandler.npcs[NPCSlot].absX;
    				skillY = server.npcHandler.npcs[NPCSlot].absY;
    				stairs = 26;
    				stairDistance = 1;
    				if (NPCID == 300) {
    					Essence = 1;
    				} else if (NPCID == 844) {
    					Essence = 2;
    				} else if (NPCID == 462) {
    					Essence = 3;
    				}
    			} else if (NPCID == 461) {
    				// Magic store owner shop -bakatool
    				PutNPCCoords = true;
    				WanneShop = 39; // Magic store owner shop
    			} else if (NPCID == 553) {
    				// Aubury rune shop
    				PutNPCCoords = true;
    				WanneShop = 2; // Aubury Magic Shop
    			} else if ((NPCID == 522) || (NPCID == 523)) {
    				// Shop Keeper + Assistant
    				PutNPCCoords = true;
    				WanneShop = 1; // Varrock General Store
    			} else if ((NPCID == 526) || (NPCID == 527)) {
    				// Shop Keeper + Assistant
    				PutNPCCoords = true;
    				WanneShop = 3; // Falador General Store
    			} else if (NPCID == 1039) {
    				// robe seller
    				PutNPCCoords = true;
    				WanneShop = 38;
    			} 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 = 24; // Varrock Staff Shop
    			} else if (NPCID == 548) {
    				// Thessalia
    				PutNPCCoords = true;
    				WanneShop = 7; // 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 == 531) || (NPCID == 530)) {
    				// Shop Keeper + Assistant
    				PutNPCCoords = true;
    				WanneShop = 15; // Rimmington General Store
    			} else if (NPCID == 1860) {
    				// Brian
    				PutNPCCoords = true;
    				WanneShop = 16; // Rimmington Archery Shop
    			} else if (NPCID == 557) {
    				// Wydin
    				PutNPCCoords = true;
    				WanneShop = 17; // Port Sarim Food Shop
    			} else if (NPCID == 559) {
    				// Brian
    				PutNPCCoords = true;
    				WanneShop = 19; // Port Sarim Battleaxe 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) {
    					PutNPCCoords = true;
    					WanneShop = 26;
    			} 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 && q7 == 0) {
    				// Ranael
    				PutNPCCoords = true;
    				WanneShop = 28; // Al-Kharid Skirt Shop
    			} else if (NPCID == 2621) {
    				// Hur-Koz
    				PutNPCCoords = true;
    				WanneShop = 29; // TzHaar Shop Weapons,Amour
    			} else if (NPCID == 2622) {
    				// Hur-Lek
    				PutNPCCoords = true;
    				WanneShop = 30; // TzHaar Shop Runes
    			} else if (NPCID == 2620) {
    				// Hur-Tel
    				PutNPCCoords = true;
    				WanneShop = 8; // TzHaar Shop General Store
    			} else if (NPCID == 692) {
    				// Throwing shop
    				PutNPCCoords = true;
    				WanneShop = 32; // Authentic Throwing Weapons
    			} else if (NPCID == 537) {
    				// Scavvo
    				PutNPCCoords = true;
    				WanneShop = 35; // Champion's Rune shop
    			} else if (NPCID == 536) {
    				// Valaine
    				PutNPCCoords = true;
    				WanneShop = 36; // Champion's guild shop
    			} else if (NPCID == 933) {
    				// Legend's Shop
    				PutNPCCoords = true;
    				WanneShop = 37; // Legend's Shop
    			} else if (NPCID == 932) {
    				// Legends General Store
    				PutNPCCoords = true;
    				WanneShop = 38; // Legend's Gen. Store
    			} else if (NPCID == 804) {
    				PutNPCCoords = true;
    				WanneShop = 25; // Crafting shop
    
    
    			} else {
    	    faceNPC(NPCSlot);
    			}
    			if (PutNPCCoords == true) {
    				skillX = server.npcHandler.npcs[NPCSlot].absX;
    				skillY = server.npcHandler.npcs[NPCSlot].absY;
    			}
    
    			break;
    Reply With Quote  
     

  2. #2  
    Austin_
    Guest
    That means you already have the case. I did that tutorial too. I dont know what's wrong?
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jul 2009
    Posts
    3,999
    Thanks given
    1,003
    Thanks received
    1,028
    Rep Power
    0
    its means eitherf 2 case 17's or added it rong try skipping case 17 and change to 18 or more
    Reply With Quote  
     

  4. #4  
    JavaBMX
    Guest
    its means eitherf 2 case 17's or added it rong try skipping case 17 and change to 18 or more
    Yeah he's right.. Quests are annoying too add, but once you get the hang of it, its easy.
    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
  •