Thread: Hunter Expert problem

Results 1 to 2 of 2
  1. #1 Hunter Expert problem 
    Registered Member WhatSarcasm's Avatar
    Join Date
    Sep 2013
    Posts
    42
    Thanks given
    0
    Thanks received
    1
    Rep Power
    32
    Okay so soon after adding hunter i added the npc who will handle the hunter shop and buying the cape, and doing this will be through the use of a dialogue like so:

    But the problem is when I click on either of the options, nothing happens although I've already added them to the clickingButton.java.
    My code is as follows:

    ActionHandler.java
    Code:
    		case 5113:
    			c.getDH().sendDialogues(30, i);
    		break;
    DialogueHandler.java
    Code:
    		/*
    		 * Hunting Expert
    		 */
    		case 30:
    			sendNpcChat4("Hello there, "+ c.playerName +".",
    					"I am the Hunting Expert of Serenity, upon achieving 99",
    					"hunter I became an expert at hunting.  Now,",
    					"what would you like to do?", c.talkingNpc, "Serenity Hunter Expert");
    				c.nextChat = 31;
    		break;
    		case 31:
    			sendOption2("Open Hunter Shop",
    					"Purchase Hunter Skillcape. @bla@(@369@99k@bla@)");
    			c.dialogueAction = 66;
    		break;
    		case 32:
    			sendNpcChat4("You either do not have the funds for the cape,",
    					"or you do not have the correct level.",
    					"Please come back when you do.",
    					"(You need @369@99k gold, and 99 hunter", c.talkingNpc, "Serenity Hunter Expert");
    		break;
    And now ClickingButtons.java; case 9158(second option)
    Code:
    		case 9158:
    			if (c.dialogueAction == 8) {
    				c.getPA().fixAllBarrows();
    			} else {
    				c.dialogueAction = 0;
    				c.getPA().removeAllWindows();
    			if (c.dialogueAction == 66) {
    				if(c.getItems().playerHasItem(995, 99000) && c.getPA().getXPForLevel(22) >= 1303436) {
    					c.getItems().deleteItem(995, 99000);
    					c.getItems().addItem(9949, 1);
    					c.getItems().addItem(9950, 1);
    				} else {
    					c.getDH().sendDialogues(32);
    					}
    				}
    			}
    			break;
    ClickingButtons.java; case 9157(First Option)
    Code:
    				if (c.dialogueAction == 66) {
    				c.getShops().openShop(9);
    			}
    				c.dialogueAction = 0;
    				c.getPA().removeAllWindows();
    			break;;

    Can someone point out where I'm messing up in doing so? Oh and how would I make it so it checks for any other 99's when buying the skillcape?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    Code:
    1,303,436
    is only 1.3m EXP 13,000,000 99 is 13m exp

    but that shouldnt make a difference if your testing it with 99.

    Code:
    		case 9158:
    			if (c.dialogueAction == 8) {
    				c.getPA().fixAllBarrows();
                            return;
                            if (c.dialogueAction == 0) {
    				c.getPA().removeAllWindows();
                            return;
    			if (c.dialogueAction == 66) || c.getPA().getXPForLevel(22) >= 13034360) {
    				if(c.getItems().playerHasItem(995, 99000)) {
                                    c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000);
    					c.getItems().addItem(9949, 1);
    					c.getItems().addItem(9950, 1);
    			} else {
    					c.getDH().sendDialogues(32);
    					}
    				}
    			}
    			break;
    you can try 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

Similar Threads

  1. [718] Hunter npc catching problem
    By speced1 in forum Help
    Replies: 0
    Last Post: 11-02-2013, 07:56 PM
  2. Hunter/Summoning Problem
    By tezzy in forum Help
    Replies: 13
    Last Post: 01-15-2012, 05:53 PM
  3. Replies: 0
    Last Post: 11-04-2011, 11:09 PM
  4. Fixing Log In\Out Problem
    By _Fear in forum Tutorials
    Replies: 11
    Last Post: 04-14-2010, 10:35 PM
  5. [Problem] Bounty Hunter
    By Annie in forum Help
    Replies: 0
    Last Post: 07-04-2009, 04:50 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
  •