Thread: 317 Delta custom quest help

Results 1 to 10 of 10
  1. #1 317 Delta custom quest help 
    Donator

    Join Date
    Nov 2009
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    I added this in player.java
    Code:
    public int q12;
    Added this in clickingmost.java
    Code:
    case 28175:
    c.q12help();
    break;
    And this for part of the dialogue choice
    Code:
    if(c.NpcDialogue == 127){
    c.closeAll();
    c.NpcDialogue = 128;
    c.NpcDialogueSend = false;
    }
    if(c.NpcDialogue == 132){
    c.closeAll();
    c.NpcDialogue = 133;
    c.NpcDialogueSend = false;
    }
    Then in client.java I added this dialogue
    Code:
    case 126:
    				talk("Oh Lord Saradomin, help us please!", 458);
    				break;
    			case 127:
    				choice("What's wrong?", "Good luck with that");
    				break;
    			case 128:
    				talk("Some of Zamorak's followers have summoned the beast!", 458);
    				break;
    			case 129:
    				talk("What's the beast?");
    				break;
    			case 130:
    				talk("It's a creature that Zamorak himself made in the war against Saradomin", 458);
    				break;
    			case 131:
    				talk("Say, you look like you'd be able to help, do you think you could?", 458);
    				break;
    			case 132:
    				choice("Sure, I'd be glad to help!", "Zamorak's beast?!  Oh hell no!");
    				break;
    			case 133:
    				talk("Great!  The first thing you need to do is talk to Father Lawrence", 458);
    				q12 = 1;
    				break;
    			case 134:
    				talk("Father Lawrence!  I was sent by Father Uhrney to talk to you");
    				break;
    			case 135:
    				talk("I need you to bring me a str ammy, 3 cosmic runes a 5 airs.", 640);
    				break;
    			case 136:
    				talk("Ok, I'll come talk to you as soon as I get it!");
    				q12 = 2;
    				break;
    			case 137:
    				talk("I see that you have brought me the things I asked for, good job", 640);
    				break;
    			case 138:
    				talk("Here, take this amulet to teleport to the beast.", 640);
    				q12 = 3;
    				addItem(1497, 1);
    				break;
    			case 139:
    				talk("You have defeated the beast!  Here, take this as a reward!", 640);
    				q12 = 4;
    				deleteItem(13854, 1);
    				break;
    And this
    Code:
    if(NPCID == 458 && q12 == 0){
    	NpcDialogue = 126;
    }
    if(NPCID == 640){
    if(q12 == 2){
    	NpcDialogue = 137;
    }
    if(q12 == 3){
    NpcDialogue = 138;
    		showInterface(297);
    				sendQuest("You have completed Zamorak's Revenge!", 301);
    				q12 = 15;
    				sendQuest("@gre@Zamorak's Revenge", 7342);
    				sM("You can now wear dragon claws!");
    }
    }
    And this
    Code:
    } else if (token.equals("character-q12")) {
    						q12 = Integer.parseInt(token2);
    And this
    Code:
    public void q12help() {
    		sendQuest("Zamorak's Revenge", 8144);
    		clearQuestInterface();
    		if(q12 == 0){
    		sendQuest("I can start this quest by talking to Father Uhrney", 8147);
    		sendQuest("He is located in a church in Varrock.", 8148);
    		sendQuest("", 8149);
    		sendQuest("", 8150);
    		}
    		if(q12 == 1){
    		sendQuest("I have spoken to Father Uhrney.", 8147);
    		sendQuest("He told me to find Father Lawrence.", 8148);
    		sendQuest("I heard he is located near the church in Lumbridge", 8149);
    		sendQuest("", 8150);
    		sendQuest("", 8151);
    		}
    		if(q12 == 2){
    		sendQuest("I have spoken to Father Lawrence", 8147);
    		sendQuest("He told me to bring him an amulet of strength,", 8148);
    		sendQuest("3 cosmic runes and 5 air runes", 8149);
    		sendQuest("", 8150);
    		sendQuest("", 8151);
    		}
    		if(q12 == 3){
    		sendQuest("I brought the items to Father Lawrence", 8147);
    		sendQuest("and he gave me an amulet to teleport to the beast", 8148);
    		sendQuest("I should wear it when I'm ready for the battle!", 8149);
    		sendQuest("", 8150);
    		sendQuest("", 8151);
    		}
    		if(q12 == 15){
    		sendQuest("I have completed The Beast's Revenge!", 8147);
    		sendQuest("As a reward I have recieved dragon claws!", 8148);
    		sendQuest("", 8149);
    		sendQuest("", 8150);
    		}
    		sendQuestSomething(8143);
    		showInterface(8134);
    		flushOutStream();
    		}
    And this in case 40
    Code:
    NpcDialogue == 126 || NpcDialogue == 128 || NpcDialogue == 129 || NpcDialogue == 130 || NpcDialogue == 131 || NpcDialogue == 133 || NpcDialogue == 134 || NpcDialogue == 135 || NpcDialogue == 136 || NpcDialogue == 137 || NpcDialogue == 138) {
    Got no errors but I still can't talk to NPC ID 458 or 640 and the quest isn't showing up on the quest tab and I can't click it. Anyone know what to do?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,328
    Thanks given
    14
    Thanks received
    19
    Rep Power
    416
    characterfile.write("character-q12 = ", 0, 16);
    characterfile.write(Integer.toString(q12), 0, Integer.toString(q12).length());
    characterfile.newLine();
    Did you add that too?
    Reply With Quote  
     

  3. #3  
    Registered Member CurrentTheory's Avatar
    Join Date
    Sep 2009
    Posts
    128
    Thanks given
    3
    Thanks received
    6
    Rep Power
    0
    Code:
    c.sendQuest("Zamorak's Revenge", 7337);
    In textHandler.
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Nov 2009
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Quote Originally Posted by Ryan™ View Post
    Did you add that too?
    Yes, I added that.

    @current theory I added this instead
    Code:
    if(c.q12 == 0){
    c.sendQuest("Zamorak's Revenge", 7343);
    }
    if(c.q12 > 0){
    c.sendQuest("@yel@Zamorak's Revenge", 7343);
    }
    if(c.q12 == 15){
    c.sendQuest("@gre@Zamorak's Revenge", 7343);
    }
    Just forget to say it, lol my bad.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,328
    Thanks given
    14
    Thanks received
    19
    Rep Power
    416
    Make sure in char files it says q12 = 0 or whatever. I'm just thinking of stuff haha
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Nov 2009
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Quote Originally Posted by Ryan™ View Post
    Make sure in char files it says q12 = 0 or whatever. I'm just thinking of stuff haha
    Yep...
    Reply With Quote  
     

  7. #7  
    Donator

    Join Date
    Nov 2009
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Anyone know?
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,328
    Thanks given
    14
    Thanks received
    19
    Rep Power
    416
    umm see if the npc is being used by any other code (happened to me before lol)
    Reply With Quote  
     

  9. #9  
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    Make sure wat? Just kinda skimmed through it lolz, and wats up ryan
    Reply With Quote  
     

  10. #10  
    Donator

    Join Date
    Nov 2009
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    I'll check...
    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
  •