Thread: [Quest] A WoodCutters Nightmare (Requested)

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 [Quest] A WoodCutters Nightmare (Requested) 
    Registered Member

    Join Date
    Jul 2008
    Posts
    939
    Thanks given
    0
    Thanks received
    3
    Rep Power
    781
    A WoodCutters Nightmare

    What is needed to complete this quest (10 mins Top): The monsters needed to start the quest aren't included. Please take the time to spawn one of this: 1395. You must also make some more NPC's that drop goblin mail. (ID 288). You also need to make it so you can click the button on the quest tab to show what you have to do it. (All of this is very simple)

    About the Quest: This is a simple kill and gather quest with extensive NPC Dialogue. You can actually choose to do the quest. Basically, all you have to do to finish building this quest is make a place where there is many Goblins as the reward is access to the Gnome Stronghold and some wood cutting experience. Anyways don't get me wrong this is a pretty cool quest. Oh yeah, nothing is stuck in the process so you won't get so much lag from this. It just calls upon the method that changes the colors on the quest bar on initialization and when an update on the quest is called. This is also unique!

    Step 1: Declare these integers

    Declare these integers.
    Code:
    public int PlrQuest2Choice = 0;
    public int PlrQuest2 = 0;
    public int PlrQuest2Choice2 = 0;
    Step 2: Proper Dialogue Switching

    Add this in packet 40.
    Code:
    		if (NpcDialogue == 3010 || NpcDialogue == 3011) { // Quest 2
    			NpcDialogue += 1;
    			NpcDialogueSend = false;
    		} else if ((NpcDialogue == 3012)) {
    			NpcDialogue = 0;
    			NpcDialogueSend = false;
    			RemoveAllWindows();
    		} else {
    			closeInterface();
    		}
    		
    		if (NpcDialogue == 3015 || NpcDialogue == 3016) { // Quest 2
    			NpcDialogue += 1;
    			NpcDialogueSend = false;
    		} else if ((NpcDialogue == 3017)) {
    			NpcDialogue = 0;
    			NpcDialogueSend = false;
    			RemoveAllWindows();
    		} else {
    			closeInterface();
    		}
    		
    		if (NpcDialogue == 3005 || NpcDialogue == 3006 || NpcDialogue == 3007) { // Quest 2
    			NpcDialogue += 1;
    			NpcDialogueSend = false;
    		} else if ((NpcDialogue == 3008)) {
    			NpcDialogue = 0;
    			NpcDialogueSend = false;
    			RemoveAllWindows();
    		} else {
    			closeInterface();
    		}
    		
    		if (NpcDialogue == 3000 || NpcDialogue == 3001) { // Quest 2
    			NpcDialogue += 1;
    			NpcDialogueSend = false;
    		} else if ((NpcDialogue == 3002)) {
    			NpcDialogue = 0;
    			NpcDialogueSend = false;
    			RemoveAllWindows();
    		} else {
    			closeInterface();
    		}
    Step 3: First Clicking

    Add this in you're first click NPC section (packet 155)

    Code:
    		if (NPCID == 1395) { // Quest 2
    			if (PlrQuest2 == 0) {
    				sSh();
    				NpcWanneTalk = 3000;
    			}
    			
    			if (PlrQuest2 == 1) {
    				sSh();
    				NpcWanneTalk = 3010;
    			}
    			
    			if (PlrQuest2 == 1 && playerHasItem(288, 20)) {
    				sSh();
    				NpcWanneTalk = 3015;
    			}
    			
    			if (PlrQuest2 == 1 && !playerHasItem(288, 20)) {
    				sSh();
    				NpcWanneTalk = 3013;
    			}
    			
    			if (PlrQuest2 == 2) {
    				sSh();
    				NpcWanneTalk = 3018;
    			}
    		}
    Step 4: Multiple Choice Yes

    Add this in packet 9157.

    Code:
    			if (PlrQuest2Choice2 == 1) { // Quest 2
    				PlrQuest2Choice2 = 0;
    				NpcDialogueSend = false;
    				NpcDialogue = 3013;
    				RemoveAllWindows();
    			}
    			
    			if (PlrQuest2Choice == 1) { //Quest 2
    				PlrQuest2Choice = 0;
    				NpcDialogueSend = false;
    				NpcDialogue = 3005;
    				RemoveAllWindows();
    			}
    Step 5: Multiple Choice No

    Add this in packet 9158.

    Code:
    			if (PlrQuest2Choice2 == 1) { // Quest 2
    				PlrQuest2Choice = 0;
    				NpcDialogue = 0;
    				RemoveAllWindows();
    				NpcDialogueSend = false;
    			}
    			
    			if (PlrQuest2Choice == 1) { // Quest 2
    				PlrQuest2Choice = 0;
    				NpcDialogue = 3003;
    				RemoveAllWindows();
    			}
    Step 6: Npc Dialogue

    Where ever you're Npc Dialogue section is, add this.

    Code:
    	  case 3000: // Quest 2
    		npt();
    		sendFrame126("Hello, can you help me defend my forest from these goblins?", 4885);
    		break;
    		
    	  case 3001: // Quest 2
    		sendFrame171(1, 2465);
    		sendFrame171(0, 2468);
    		sendFrame126("What would you like to say?", 2460);
    		sendFrame126("Alright, I'll help you!", 2461);
    		sendFrame126("No thanks, I have better things to do.", 2462);
    		sendFrame164(2459);
    		NpcDialogueSend = true;
    		PlrQuest2Choice = 1;
    		break;
    		
    	  case 3003: // Quest 2 - Said no
    		npt();
    		sendFrame126("Alright, run along now!", 4885);
    		break;
    		
    	  case 3005: // Quest 2 - Said yes
    		sendFrame200(4901, 591);
    		sendFrame126(GetNpcName(NpcTalkTo), 4902);
    		sendFrame126("a plentiful forest that had many yews!", 4906);
    		sendFrame126("Thank you!  But it won't be all too easy you see...", 4903);
    		sendFrame126("Those goblins were destroying my forest, eating the", 4904);
    		sendFrame126("leaves and almost everything!  Before, this use to be", 4905);
    		sendFrame75(NpcTalkTo, 4901);
    		sendFrame164(4900);
    		NpcDialogueSend = true;
    		break;
    	
    	  case 3006: // Quest 2 
    		sendFrame200(4901, 591);
    		sendFrame126(GetNpcName(NpcTalkTo), 4902);
    		sendFrame126("access to the Goblin Stronghold.", 4906);
    		sendFrame126("So, I hope you can kill these goblins and bring me", 4903);
    		sendFrame126("back their mail.  In turn for successfully gathering,", 4904);
    		sendFrame126("I will give you some experience in woodcutting, and", 4905);
    		sendFrame75(NpcTalkTo, 4901);
    		sendFrame164(4900);
    		NpcDialogueSend = true;
    		PlrQuest2 = 1;
    		QuestTab();
    		break;
    		
    	  case 3007: // Quest 2
    	    npt();
    		sendFrame126("Please get 20 goblin mail order to receive your reward.", 4885);
    		break;
    	  
    	  case 3010: // Quest 2
    		npt();
    		sendFrame126("Did you forget what you were assigned to do?", 4885);
    		break;
    		
    	  case 3011: // Quest 2
    		sendFrame171(1, 2465);
    		sendFrame171(0, 2468);
    		sendFrame126("What would you like to say?", 2460);
    		sendFrame126("Yeah, please tell me what to do.", 2461);
    		sendFrame126("No, I didn't forget.", 2462);
    		sendFrame164(2459);
    		NpcDialogueSend = true;
    		PlrQuest2Choice2 = 1;
    		break;
    		
    	  case 3013: // Quest 2
    		npt();
    		sendFrame126("Please get 20 goblin mail to receive your reward.", 4885);
    		break;
    		
    	   case 3015: // Quest 2
    		npt();
    		sendFrame126("Thank you for giving me 20 goblin mail.", 4885);
    		break;
    		
    	   case 3016: // Quest 2
    	   	npt();
    		deleteItem(288, 20);	
    		sendFrame126("You have saved my forest and I must reward you!", 4885);
    		PlrQuest2 = 2;
    		addSkillXP(20000, 8);
    		sendMessage("You have just finished the quest:  A Woodcutters Nightmare");
    		PlrQuestPoints += 2;
    		QuestTab();
    		addItem(605, 1);
    		break;
    		
    	   case 3018: // Quest 2
    	              npt();
    		sendFrame126("To get to the Goblin Stronghold, go near the jail.", 4885);
    		break;
    Step 7: Adding the methods

    Declare these methods in the respectable place in the client class.
    (May need to change which line this quest is on)

    Code:
    	public void QuestTab() {
    		
    		if (PlrQuest2 == 0) {
    			sendQuest("A Woodcutters Nightmare", 7332);
    		}
    		
    		if (PlrQuest2 == 1) {
    			sendQuest("@[email protected] Woodcutters Nightmare", 7332);
    		}
    		
    		if (PlrQuest2 == 2) {
    			sendQuest("@[email protected] Woodcutters Nightmare", 7332);
    		}
    
    	}
    	
    	public void npt() {
    		sendFrame200(4883, 591);
    		sendFrame126(GetNpcName(NpcTalkTo), 4884);
    		sendFrame75(NpcTalkTo, 4883);
    		sendFrame164(4882);
    		NpcDialogueSend = true;
    	}
    
    	public void sSh() {
    		skillX = server.npcHandler.npcs[NPCSlot].absX;
    		skillY = server.npcHandler.npcs[NPCSlot].absY;
    	}
    Step 8: Calling upon the method QuestTab.

    Add this in your welcome message area.

    Code:
    QuestTab();
    Step 9: Saving the quest

    Search for case 2, and find the right place to put this in.

    Code:
    else if (token.equals("character-2ndQuest")) {
    	PlrQuest2 = Integer.parseInt(token2);
    }
    Scroll down a bit and put this in.

    Code:
    characterfile.write("character-2ndQuest = ", 0, 21);
    characterfile.write(Integer.toString(PlrQuest2), 0, Integer.toString(PlrQuest2).length());
    characterfile.newLine();
    I'm Rog3r, fool.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    Quote Originally Posted by Rog3r View Post
    Oh yeah, nothing is stuck in the process so you won't get so much lag from this. It just calls upon the method that changes the colors on the quest bar on initialization and when an update on the quest is called.
    Hey, that's a genius idea.

    I wonder where you got it from.
    Reply With Quote  
     

  3. #3  
    Registered Member Tx-Sec's Avatar
    Join Date
    Jan 2008
    Age
    27
    Posts
    521
    Thanks given
    34
    Thanks received
    15
    Rep Power
    68
    add pictures omg?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2008
    Posts
    99
    Thanks given
    1
    Thanks received
    1
    Rep Power
    7
    Your packet 40 is way to big, it doesnt need to be that long
    Reply With Quote  
     

  5. #5  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    Ugly code, way too messy

    if (PlrQuest2 == 0) {
    sendQuest("A Woodcutters Nightmare", 7332);
    }

    if (PlrQuest2 == 1) {
    sendQuest("@[email protected] Woodcutters Nightmare", 7332);
    }

    if (PlrQuest2 == 2) {
    sendQuest("@[email protected] Woodcutters Nightmare", 7332);
    }
    1 stage? ...

    ALSO, It doesnt save..?

    Sorry bro, /fail
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
    Reply With Quote  
     

  6. #6  
    Registered Member
    Knova's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    677
    Thanks given
    0
    Thanks received
    9
    Rep Power
    344
    Quote Originally Posted by [М]ęŋąċę© View Post
    Ugly code, way too messy



    1 stage? ...

    ALSO, It doesnt save..?

    Sorry bro, /fail

    Wow he is right O_O
    Where is the character saving part?
    But still very good quest LOL
    I AM KITE! Hope you like my programming!
    Reply With Quote  
     

  7. #7  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    Quote Originally Posted by Knova View Post
    LOL your the noob. It does save idiot.
    O_O maybe learn to code dodian or somthing?
    Oh Really?
    Well maybe you can tell me where it saves?

    public int PlrQuest2Choice = 0;
    public int PlrQuest2 = 0;
    public int PlrQuest2Choice2 = 0;
    if (NpcDialogue == 3010 || NpcDialogue == 3011) { // Quest 2
    NpcDialogue += 1;
    NpcDialogueSend = false;
    } else if ((NpcDialogue == 3012)) {
    NpcDialogue = 0;
    NpcDialogueSend = false;
    RemoveAllWindows();
    } else {
    closeInterface();
    }

    if (NpcDialogue == 3015 || NpcDialogue == 3016) { // Quest 2
    NpcDialogue += 1;
    NpcDialogueSend = false;
    } else if ((NpcDialogue == 3017)) {
    NpcDialogue = 0;
    NpcDialogueSend = false;
    RemoveAllWindows();
    } else {
    closeInterface();
    }

    if (NpcDialogue == 3005 || NpcDialogue == 3006 || NpcDialogue == 3007) { // Quest 2
    NpcDialogue += 1;
    NpcDialogueSend = false;
    } else if ((NpcDialogue == 3008)) {
    NpcDialogue = 0;
    NpcDialogueSend = false;
    RemoveAllWindows();
    } else {
    closeInterface();
    }

    if (NpcDialogue == 3000 || NpcDialogue == 3001) { // Quest 2
    NpcDialogue += 1;
    NpcDialogueSend = false;
    } else if ((NpcDialogue == 3002)) {
    NpcDialogue = 0;
    NpcDialogueSend = false;
    RemoveAllWindows();
    } else {
    closeInterface();
    }
    if (PlrQuest2Choice2 == 1) { // Quest 2
    PlrQuest2Choice2 = 0;
    NpcDialogueSend = false;
    NpcDialogue = 3013;
    RemoveAllWindows();
    }

    if (PlrQuest2Choice == 1) { //Quest 2
    PlrQuest2Choice = 0;
    NpcDialogueSend = false;
    NpcDialogue = 3005;
    RemoveAllWindows();
    }
    if (PlrQuest2Choice2 == 1) { // Quest 2
    PlrQuest2Choice = 0;
    NpcDialogue = 0;
    RemoveAllWindows();
    NpcDialogueSend = false;
    }

    if (PlrQuest2Choice == 1) { // Quest 2
    PlrQuest2Choice = 0;
    NpcDialogue = 3003;
    RemoveAllWindows();
    }
    case 3000: // Quest 2
    npt();
    sendFrame126("Hello, can you help me defend my forest from these goblins?", 4885);
    break;

    case 3001: // Quest 2
    sendFrame171(1, 2465);
    sendFrame171(0, 2468);
    sendFrame126("What would you like to say?", 2460);
    sendFrame126("Alright, I'll help you!", 2461);
    sendFrame126("No thanks, I have better things to do.", 2462);
    sendFrame164(2459);
    NpcDialogueSend = true;
    PlrQuest2Choice = 1;
    break;

    case 3003: // Quest 2 - Said no
    npt();
    sendFrame126("Alright, run along now!", 4885);
    break;

    case 3005: // Quest 2 - Said yes
    sendFrame200(4901, 591);
    sendFrame126(GetNpcName(NpcTalkTo), 4902);
    sendFrame126("a plentiful forest that had many yews!", 4906);
    sendFrame126("Thank you! But it won't be all too easy you see...", 4903);
    sendFrame126("Those goblins were destroying my forest, eating the", 4904);
    sendFrame126("leaves and almost everything! Before, this use to be", 4905);
    sendFrame75(NpcTalkTo, 4901);
    sendFrame164(4900);
    NpcDialogueSend = true;
    break;

    case 3006: // Quest 2
    sendFrame200(4901, 591);
    sendFrame126(GetNpcName(NpcTalkTo), 4902);
    sendFrame126("access to the Goblin Stronghold.", 4906);
    sendFrame126("So, I hope you can kill these goblins and bring me", 4903);
    sendFrame126("back their mail. In turn for successfully gathering,", 4904);
    sendFrame126("I will give you some experience in woodcutting, and", 4905);
    sendFrame75(NpcTalkTo, 4901);
    sendFrame164(4900);
    NpcDialogueSend = true;
    PlrQuest2 = 1;
    QuestTab();
    break;

    case 3007: // Quest 2
    npt();
    sendFrame126("Please get 20 goblin mail order to receive your reward.", 4885);
    break;

    case 3010: // Quest 2
    npt();
    sendFrame126("Did you forget what you were assigned to do?", 4885);
    break;

    case 3011: // Quest 2
    sendFrame171(1, 2465);
    sendFrame171(0, 2468);
    sendFrame126("What would you like to say?", 2460);
    sendFrame126("Yeah, please tell me what to do.", 2461);
    sendFrame126("No, I didn't forget.", 2462);
    sendFrame164(2459);
    NpcDialogueSend = true;
    PlrQuest2Choice2 = 1;
    break;

    case 3013: // Quest 2
    npt();
    sendFrame126("Please get 20 goblin mail to receive your reward.", 4885);
    break;

    case 3015: // Quest 2
    npt();
    sendFrame126("Thank you for giving me 20 goblin mail.", 4885);
    break;

    case 3016: // Quest 2
    npt();
    deleteItem(288, 20);
    sendFrame126("You have saved my forest and I must reward you!", 4885);
    PlrQuest2 = 2;
    addSkillXP(20000, 8);
    sendMessage("You have just finished the quest: A Woodcutters Nightmare");
    PlrQuestPoints += 2;
    QuestTab();
    addItem(605, 1);
    break;

    case 3018: // Quest 2
    npt();
    sendFrame126("To get to the Goblin Stronghold, go near the jail.", 4885);
    break;
    public void QuestTab() {

    if (PlrQuest2 == 0) {
    sendQuest("A Woodcutters Nightmare", 7332);
    }

    if (PlrQuest2 == 1) {
    sendQuest("@[email protected] Woodcutters Nightmare", 7332);
    }

    if (PlrQuest2 == 2) {
    sendQuest("@[email protected] Woodcutters Nightmare", 7332);
    }

    }

    public void npt() {
    sendFrame200(4883, 591);
    sendFrame126(GetNpcName(NpcTalkTo), 4884);
    sendFrame75(NpcTalkTo, 4883);
    sendFrame164(4882);
    NpcDialogueSend = true;
    }

    public void sSh() {
    skillX = server.npcHandler.npcs[NPCSlot].absX;
    skillY = server.npcHandler.npcs[NPCSlot].absY;
    }
    QuestTab();
    Fucken ******
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
    Reply With Quote  
     

  8. #8  
    Registered Member
    Knova's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    677
    Thanks given
    0
    Thanks received
    9
    Rep Power
    344
    I fixed my post noob before u posted that O_O
    I AM KITE! Hope you like my programming!
    Reply With Quote  
     

  9. #9  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    So you dont look like a ******?
    Why change your post then?
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Jul 2008
    Posts
    939
    Thanks given
    0
    Thanks received
    3
    Rep Power
    781
    Haha, I forgot about that. On my source, it was saving via SQL.
    I'm Rog3r, fool.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •