Thread: [718]Oldschool Skillguide(tan one) interfaceid?

Results 1 to 9 of 9
  1. #1 [718]Oldschool Skillguide(tan one) interfaceid? 
    Registered Member
    Join Date
    Dec 2011
    Posts
    297
    Thanks given
    2
    Thanks received
    11
    Rep Power
    21
    I've looked through as many as I could looking for the oldschool skillguides, at this point i feel like for myself it'd be easier to make new interfaces explaining everything X_X Could someone possibly help me out if they have those interface ids handy?
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Attached imageAttached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    297
    Thanks given
    2
    Thanks received
    11
    Rep Power
    21
    Oh word, thanks man. Didn't even think about a dump.. could have done that myself x.x

    Damn, they arent even in there man ..


    https://prnt.sc/ljynqf
    Talking that one^
    Reply With Quote  
     

  4. #4  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Quote Originally Posted by TheScape View Post
    Oh word, thanks man. Didn't even think about a dump.. could have done that myself x.x

    Damn, they arent even in there man ..


    https://prnt.sc/ljynqf
    Talking that one^
    Ah yes because they're not sprites, they are models

    see my question about it

    Not sure what the id is, it's the same interface for all, they use configs to change the data, here's some code I pulled from a 667

    Code:
    case 158: // Dung
                            skillMenu = 25;
                            if (player.getTemporaryAttributes().remove("leveledUp[24]") != Boolean.TRUE) {
                                player.getPackets().sendConfig(965, 25);
                            } else {
                                lvlupSkill = 24;
                                player.getPackets().sendConfig(1230, 705);
                            }
                            break;
                    }
    
                    player.getInterfaceManager().sendInterface(lvlupSkill != -1 ? 741 : 499);
                    if (lvlupSkill != -1) LevelUp.switchFlash(player, lvlupSkill, false);
                    if (skillMenu != -1) player.getTemporaryAttributes().put("skillMenu", skillMenu);
                    break;
                case 499:
                    skillMenu = -1;
                    if (player.getTemporaryAttributes().get("skillMenu") != null)
                        skillMenu = (Integer) player.getTemporaryAttributes().get("skillMenu");
                    switch (componentId) {
                        case 10:
                            player.getPackets().sendConfig(965, skillMenu);
                            break;
                        case 11:
                            player.getPackets().sendConfig(965, 1024 + skillMenu);
                            break;
    So might be worth trying 741/499 for fullscreen/not
    Attached imageAttached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    are you trying to open the old skill guide on 718? if so its easy as commenting out interface 1218 in the buttonhandlers and uncomment interface 499 you will see 499 commented out by default.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2011
    Posts
    297
    Thanks given
    2
    Thanks received
    11
    Rep Power
    21
    Quote Originally Posted by khayam View Post
    are you trying to open the old skill guide on 718? if so its easy as commenting out interface 1218 in the buttonhandlers and uncomment interface 499 you will see 499 commented out by default.
    Well you see, im trying to make them pop up as a dialogue option when you click the skill in the skill interface. Reason being is thats how i have my skill teleports set up. Maybe i have to take all of the code from the buttonhandler class having to do with interface 499, and put it in each of the skill dialogue classes? Each stat has its own dialogue class called when clicking them.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    So you want to click a skill which opens a dialogue so you can add options like teleport? Or are you trying to add teleports/options on interface 499 for each skill?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2011
    Posts
    297
    Thanks given
    2
    Thanks received
    11
    Rep Power
    21
    No, I have the dialogues/options set up including all teleport locations etc. Each skills dialogue options includes an option for skill guide, which I'm trying to get to show up by clicking the option. Here's one of my skill dialogue classes:

    Code:
    package com.exil.game.player.dialogues;
    
    import com.exil.cache.loaders.NPCDefinitions;
    import com.exil.game.WorldTile;
    import com.exil.game.player.actions.combat.Magic;
    
    public class AgilTeleports extends Dialogue {
    
    private int npcId;
    
    	@Override
    	public void start() {
    		stage = 1;
    		if (stage == 1) {
    			sendOptionsDialogue("Agility Teleports", "Gnome Course", "Barbarian Course", 
    					"Wilderness Course", "Skill Guide");
    			stage = 1;
    		}
    	}
    
    	public void run(int interfaceId, int componentId) {
    		if (stage == 1) {
    			int option;
    			if (componentId == OPTION_1) {
    				end();
    				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2470, 3438, 0));//2470 3438
    			}
    			if (componentId == OPTION_2) {
    				end();
    				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2551, 3556, 0));//2551 3556
    			}
    			if (componentId == OPTION_3) {
    				end();
    				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3003, 3934, 0));//3003 3934
    			}
    			if (componentId == OPTION_4) {
    				player.temporaryAttribute().put("skillMenu", 8);
    				player.getPackets().sendConfig(965, 8);
    				player.getInterfaceManager().sendInterface(499);
    			}
    
    		 }
    	}
    	
    		private void teleportPlayer2(int x, int y, int z) {
    		player.setNextWorldTile(new WorldTile(x, y, z));
    		player.stopAll();
    	}
    
    	@Override
    	public void finish() {
    
    	}
    }
    Here's where I'm trying to call the correct interface, which it does, but when I try to sift through the options on the right side It nulls to the blank skillguide interface:

    Code:
    			if (componentId == OPTION_4) {
    				player.temporaryAttribute().put("skillMenu", 8);
    				player.getPackets().sendConfig(965, 8);
    				player.getInterfaceManager().sendInterface(499);
    			}
    Do I have to somehow put this:

    Code:
                    player.getInterfaceManager().sendInterface(lvlupSkill != -1 ? 741 : 499);
                    if (lvlupSkill != -1) LevelUp.switchFlash(player, lvlupSkill, false);
                    if (skillMenu != -1) player.getTemporaryAttributes().put("skillMenu", skillMenu);
                    break;
                case 499:
                    skillMenu = -1;
                    if (player.getTemporaryAttributes().get("skillMenu") != null)
                        skillMenu = (Integer) player.getTemporaryAttributes().get("skillMenu");
                    switch (componentId) {
                        case 10:
                            player.getPackets().sendConfig(965, skillMenu);
                            break;
                        case 11:
                            player.getPackets().sendConfig(965, 1024 + skillMenu);
                            break;
    into each dialogue class in order to have each skill guide functionable? I'm sure it has more to do with:
    Code:
                        case 11:
                            player.getPackets().sendConfig(965, 1024 + skillMenu);
                            break;
    Why's it adding that?
    Reply With Quote  
     

  9. #9  
    Registered Member deji's Avatar
    Join Date
    Dec 2018
    Posts
    75
    Thanks given
    4
    Thanks received
    21
    Rep Power
    66
    I'm not entirely sure, however just by looking at that piece of code without analysing the location of the variable I assume that it is the position in the skills Tab. So I am making a assumption it's like 1024,1025 etc. It's just a guess. But, if you use eclipse you can actually open the declaration of the variable (which it can reveal to you what it actually does) therefore you should be able to solve it. If you can't just pm me and I can help you further.

    When I usually design skill guides I create a interface which has buttons,multiple options which I find more cool.

    Using a dialogue is obviously much more easier and less time consuming however I find it less attracting from a players perspective.
    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 xp multiplier in one skill
    By OodlesOfNoodles in forum Help
    Replies: 2
    Last Post: 11-11-2014, 02:32 AM
  2. Replies: 5
    Last Post: 01-28-2014, 03:24 AM
  3. [718] OldSchool Items
    By ELKAY in forum Help
    Replies: 6
    Last Post: 09-20-2013, 04:19 PM
  4. Replies: 2
    Last Post: 08-27-2013, 02:35 AM
  5. [718] Ruined Edgeville in just one line!
    By Velocity in forum Snippets
    Replies: 12
    Last Post: 08-14-2012, 02:27 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
  •