Thread: 718 Skill Dialogue fix?

Results 1 to 2 of 2
  1. #1 718 Skill Dialogue fix? 
    Registered Member
    Join Date
    May 2014
    Posts
    14
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    [Only registered and activated users can see links. ]

    Need this fixed. Should display image/bar name.

    Ideas?
    Reply With Quote  
     

  2. #2  
    Let the games begin!

    Angeloflife's Avatar
    Join Date
    Jul 2013
    Age
    23
    Posts
    754
    Thanks given
    21
    Thanks received
    147
    Rep Power
    83
    Heres my dialogue if u still need this
    [spoil]
    Code:
    package com.rs.game.player.dialogues;
    
    import com.rs.game.WorldObject;
    import com.rs.game.player.Skills;
    import com.rs.game.player.actions.Smelting;
    import com.rs.game.player.actions.Smelting.SmeltingBar;
    import com.rs.game.player.content.SkillsDialogue;
    import com.rs.game.player.content.SkillsDialogue.ItemNameFilter;
    
    
    	private WorldObject object;
    
    	@Override
    	public void start() {
    		object = (WorldObject) parameters[0];
    		int[] ids = new int[SmeltingBar.values().length];
    		for (int i = 0; i < ids.length; i++)
    			ids[i] = SmeltingBar.values()[i].getProducedBar().getId();
    		SkillsDialogue
    				.sendSkillsDialogue(
    						player,
    						SkillsDialogue.MAKE,
    						"How many bars you would like to smelt?<br>Choose a number, then click the bar to begin.",
    						28, ids, new ItemNameFilter() {
    							int count = 0;
    
    							@Override
    							public String rename(String name) {
    								SmeltingBar bar = SmeltingBar.values()[count++];
    								if (player.getSkills()
    										.getLevel(Skills.SMITHING) < bar
    										.getLevelRequired())
    									name = "<col=ff0000>" + name
    											+ "<br><col=ff0000>Level "
    											+ bar.getLevelRequired();
    								return name;
    
    							}
    						});
    	}
    
    	@Override
    	public void run(int interfaceId, int componentId) {
    		player.getActionManager().setAction(
    				new Smelting(SkillsDialogue.getItemSlot(componentId), object,
    						SkillsDialogue.getQuantity(player)));
    		end();
    	}
    
    	@Override
    	public void finish() {
    	}
    }
    [/spoil]
    [Only registered and activated users can see links. ]
    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/XXX Caches skill interfaces fix
    By Pro Gram Mer in forum Downloads
    Replies: 54
    Last Post: 06-28-2016, 07:54 AM
  2. [718] how to fix skill interface
    By Monum3ntal in forum Tutorials
    Replies: 86
    Last Post: 08-04-2015, 09:45 PM
  3. Replies: 22
    Last Post: 03-17-2014, 04:06 PM
  4. 718 skill interfaces fix
    By helpMe in forum Help
    Replies: 7
    Last Post: 05-07-2013, 08:36 AM
  5. [Matrix] Lobby + World list + Fixed Skill Dialogues
    By Ternary Operator in forum Show-off
    Replies: 54
    Last Post: 12-17-2012, 12:14 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •