|
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?
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
So might be worth trying 741/499 for fullscreen/notCode: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;
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.
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?
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:
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: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() { } }
Do I have to somehow put this:Code:if (componentId == OPTION_4) { player.temporaryAttribute().put("skillMenu", 8); player.getPackets().sendConfig(965, 8); player.getInterfaceManager().sendInterface(499); }
into each dialogue class in order to have each skill guide functionable? I'm sure it has more to do with: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;
Why's it adding that?Code:case 11: player.getPackets().sendConfig(965, 1024 + skillMenu); break;
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |