Jump to content

Thorin

Member
  • Content count

    142
  • Joined

  • Last visited

  1. Thorin

    Hmmm...

    Well, after a very long vacation, i found my way back here haha
  2. Thorin

    Skill tele dialogue

    finally got around to doing this and it worked like a charm!
  3. Go to where the shop is handled, and just change the coordinate ranges to match that of your new home, or just comment it out so u can do it anywhere
  4. Thorin

    Skill tele dialogue

    [quote name='Emily']An IDE cannot fix functionality issues. They identify syntax conflicts. I see a few things, first your decision structure is a bit of a mess. I would recommend utilizing a switch statement and individual cases for the stages. You seem to have a return statement is an odd place: [code] if (componentId == OPTION_1) { if(player.getEquipment().getWeaponId() != -1 || player.getEquipment().getShieldId() != -1) stage = 1; sendNPCDialogue(npcId, 9827, "Please remove your weapon and shield first, or they will be deleted."); return; } [/code] You also have an invalid decision structure. If the user is not selecting 'option 1' and they do not have a weapon or shield, it will trigger the Falconry controller. [CODE] if (componentId == OPTION_1) { if(player.getEquipment().getWeaponId() != -1 || player.getEquipment().getShieldId() != -1) stage = 1; sendNPCDialogue(npcId, 9827, "Please remove your weapon and shield first, or they will be deleted."); return; } else if(player.getEquipment().getWeaponId() == -1 || player.getEquipment().getShieldId() == -1) { player.getControlerManager().startControler("Falconry"); } [/CODE] This is what I think you meant to do: [CODE] package com.rs.game.player.dialogues; import com.rs.Settings; import com.rs.cache.loaders.NPCDefinitions; import com.rs.game.WorldTile; import com.rs.game.minigames.CastleWars; import com.rs.game.player.Skills; import com.rs.game.player.content.Magic; import com.rs.game.player.controlers.FightCaves; import com.rs.game.player.controlers.FightKiln; public class SkillTeleports extends Dialogue { private int npcId; [MENTION=15855]Over[/MENTION]ride public void start() { npcId = (Integer) parameters[0]; sendEntityDialogue(SEND_2_TEXT_CHAT, new String[] { NPCDefinitions.getNPCDefinitions(npcId).name, "Time for some skilling, Eh?" }, IS_NPC, npcId, 9827); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { switch(stage) { case -1: sendEntityDialogue(SEND_1_TEXT_CHAT, new String[] { player.getDisplayName(), "Yup, Gotta get the comp cape..." }, IS_PLAYER, player.getIndex(), 9827); stage = 1; break; case 1: sendOptionsDialogue("What skill will you do?", "Hunter", "Mining", "WoodCutting", "Fishing", "More Options"); stage = 2; break; case 2: switch(componentId) { case OPTION_1: if(player.getEquipment().getWeaponId() != -1 || player.getEquipment().getShieldId() != -1) { stage = 1; sendNPCDialogue(npcId, 9827, "Please remove your weapon and shield first, or they will be deleted."); } else player.getControlerManager().startControler("Falconry"); break; case OPTION_2: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(4382, 5912, 2)); break; case OPTION_3: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3306, 5289, 0)); break; case OPTION_4: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2862, 2584, 0)); break; } break; } } } [/CODE] You will need to define the option_1 and send_1_text_chat, etc. values. Also, for this method: [code] sendOptionsDialogue("What skill will you do?", "Hunter", "Mining", "WoodCutting", "Fishing", "More Options"); [/code] Are any of those values supposed to be in an array?[/QUOTE] Unfortunately, im not very skilled in "java" but i can see how making seperate cases would make things flow easier, and now that you mention it, i do see how it would still initiate falconry, so ill change everything to seperate cases and see how it works out, thanks a bunch
  5. Thorin

    Skill tele dialogue

    I feel like im missing something somewhere, but i don't see it and neither does eclipse... When the person hits the skill tele button it pulls up the dialogue fine, but no matter what option they choose, it takes them to the falconry(hunter minigame) tele. [CODE] package com.rs.game.player.dialogues; import com.rs.Settings; import com.rs.cache.loaders.NPCDefinitions; import com.rs.game.WorldTile; import com.rs.game.minigames.CastleWars; import com.rs.game.player.Skills; import com.rs.game.player.content.Magic; import com.rs.game.player.controlers.FightCaves; import com.rs.game.player.controlers.FightKiln; public class SkillTeleports extends Dialogue { private int npcId; [MENTION=15855]Over[/MENTION]ride public void start() { npcId = (Integer) parameters[0]; sendEntityDialogue(SEND_2_TEXT_CHAT, new String[] { NPCDefinitions.getNPCDefinitions(npcId).name, "Time for some skilling, Eh?" }, IS_NPC, npcId, 9827); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (stage == -1) { sendEntityDialogue(SEND_1_TEXT_CHAT, new String[] { player.getDisplayName(), "Yup, Gotta get the comp cape..." }, IS_PLAYER, player.getIndex(), 9827); stage = 1; } else if (stage == 1) { sendOptionsDialogue("What skill will you do?", "Hunter", "Mining", "WoodCutting", "Fishing", "More Options"); stage = 2; } else if (stage == 2) { if (componentId == OPTION_1) { if(player.getEquipment().getWeaponId() != -1 || player.getEquipment().getShieldId() != -1) stage = 1; sendNPCDialogue(npcId, 9827, "Please remove your weapon and shield first, or they will be deleted."); return; }else if(player.getEquipment().getWeaponId() == -1 || player.getEquipment().getShieldId() == -1) { player.getControlerManager().startControler("Falconry"); }else if (componentId == OPTION_2) Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(4382, 5912, 2)); else if (componentId == OPTION_3) Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3306, 5289, 0)); else if (componentId == OPTION_4) Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2862, 2584, 0)); [/CODE] thats the part that teles them, any ideas?
  6. Its not finding the cache
  7. [quote name='Arix']I was getting mad while reading that & then I wrote your name in my death note.[/QUOTE] Thankfully, i had spare apples on hand
  8. Im downloading, ill mirror and im gonna use it :) ty
  9. All you did was copy and paste [URL="http://www.runelocus.com/forums/showthread.php?101283-815-Clean-Complete-Cache&p=787470#post787470"]This Thread...[/URL]
  10. [quote name='officiallulzs3c']+1 expects someone else to do it for him no there not. and even if they are rip it from a cache.[/QUOTE] but he [IMG]http://static1.textcraft.net/data1/9/4/9460eb0af10631bfb7199cff46bd88dc391cc0f2da39a3ee5e6b4b0d3255bfef95601890afd80709da39a3ee5e6b4b0d3255bfef95601890afd8070972d7f717703c89054ee9b3264ffb9648.png[/IMG]
  11. But he [IMG]http://static1.textcraft.net/data1/9/4/9460eb0af10631bfb7199cff46bd88dc391cc0f2da39a3ee5e6b4b0d3255bfef95601890afd80709da39a3ee5e6b4b0d3255bfef95601890afd8070950d801ea02f3772cb251c45c4e2e5786.png[/IMG]
  12. Not anymore, that was like 4 years ago, My boss at the time paid for the course for the ppl he hired
  13. [url]http://www.extension.harvard.edu/courses/marketing-management[/url]
  14. I know for a fact that this stuff works, I worked in marketing for 5 years and this is Marketing 101 here ppl. If your ad doesnt have this stuff, you need to seriously consider a new ad. For instance, In an infomercial they display a "Call to Action" every ten minutes, and by the 3rd one, roughly 80% of the ppl watching, have called in. Its a science and this is the kind of thing that draws in "Consumers". Great Post Envo
  15. Thorin

    Furnace Id Plox

    [URL=http://www.runelocus.com/forums/usertag.php?do=list&action=hash&hash=fixed]#fixed[/URL] thanks to [MENTION=94449]Arix[/MENTION] Heres the ID if anyone wants it [IMG]http://i.imgur.com/Ps0md9l.png[/IMG]
×