Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by Zoda

  1. Hey i've replaced the old tabs under the chat box with another type.. When i try to click them the client crashes.. I knew i have to do something in the client.. Does some1 know which class or method i should be looking in. i might be able to figure it out from there.. Here's a pic if u dont know what i mean; [IMG]http://www.upload.ee/image/2560494/Namnlos.png[/IMG] hold ctrl and scroll if u can't see :)
  2. [quote name='displee']Idk what you guys are talking about but I only made this to edit the price. And it works fine.[/QUOTE] It crashes even if u change 1 number :s What client do you use? If it isn't your own client, where did u download it? :)
  3. Why does the f***ing client crash when you change anything in the cache?
  4. Zoda

    [718] Dialouges help?

    Here's my dial Don't mind the imports just imported the 1's i thought had to do with inventory and item.. [CODE]package com.rs.game.player.dialogues; import com.rs.cache.loaders.ItemDefinitions; import com.rs.game.item.Item; import com.rs.game.ItemsContainer; import com.rs.game.player.Skills; import com.rs.game.player.Player; import com.rs.game.player.Inventory; import com.rs.game.net.decoders.handlers.InventoryOptionsHandler; public class WhipChanger extends Dialogue { int npcId; [MENTION=15855]Over[/MENTION]ride public void start() { npcId = (Integer) parameters[0]; if (!player.getInventory().containsItem(995, 2500000) || !player.getInventory().containsItem(4151, 1)) { sendDialogue( "You need 2500000 coins and a regular whip to change the colour of it."); }else{ sendOptionsDialogue("Select a colour.", "Yellow", "Blue", "White", "Green", "None."); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (stage == -1) { if (componentId == OPTION_1) { player.getInventory().deleteItem(995, 2500000); player.getInventory().deleteItem(4151, 1); player.getInventory().addItem(15441, 1); } else if (componentId == OPTION_2) { player.getInventory().deleteItem(995, 2500000); player.getInventory().deleteItem(4151, 1); player.getInventory().addItem(15442, 1); } else if (componentId == OPTION_3) { player.getInventory().deleteItem(995, 2500000); player.getInventory().deleteItem(4151, 1); player.getInventory().addItem(15443, 1); } else if (componentId == OPTION_4) { player.getInventory().deleteItem(995, 2500000); player.getInventory().deleteItem(4151, 1); player.getInventory().addItem(15444, 1); } else if (componentId == OPTION_5) { end(); } } [MENTION=15855]Over[/MENTION]ride public void finish() { } } [/CODE] Error i get: [CODE]src\com\rs\game\player\dialogues\WhipChanger.java:31: error: ';' expected public void run(int interfaceId, int componentId) { ^ src\com\rs\game\player\dialogues\WhipChanger.java:31: error: <identifier> expect ed public void run(int interfaceId, int componentId) { ^ src\com\rs\game\player\dialogues\WhipChanger.java:31: error: not a statement public void run(int interfaceId, int componentId) { ^ src\com\rs\game\player\dialogues\WhipChanger.java:31: error: ';' expected public void run(int interfaceId, int componentId) { ^ src\com\rs\game\player\dialogues\WhipChanger.java:57: error: ';' expected public void finish() { ^ src\com\rs\game\player\dialogues\WhipChanger.java:62: error: reached end of file while parsing } ^ 6 errors[/CODE]
  5. Doesn't work wor me :S
  6. [quote name='displee']Unlocks the quests in the quest tab (now you can send custom text to the quests trough the slotId) [CODE] getPackets().sendUnlockIComponentOptionSlots(190, 15, 0, 201, 0, 1, 2, 3); [/CODE] Unlocks remove button in the equipment stats interface [CODE] player.getPackets().sendUnlockIComponentOptionSlots(667, 9, 0, 14, 0); [/CODE] Unlocks drag item to inventory (shop) [CODE] player.getPackets().sendIComponentSettings(1265, 26, 0, getStoreSize() * 6, 82903066); [/CODE][/QUOTE] Does the 1 in the middle make so you can remove items when the big equipment interface is open? And i don't get how to add it.. should i add it in this method? [CODE] public static void openEquipmentBonuses(final Player player, boolean banking) { player.stopAll(); player.getInterfaceManager().sendInventoryInterface(670); player.getInterfaceManager().sendInterface(667); player.getPackets().sendConfigByFile(4894, banking ? 1 : 0); player.getPackets().sendItems(93, player.getInventory().getItems()); player.getPackets().sendInterSetItemsOptionsScript(670, 0, 93, 4, 7, "Equip", "Compare", "Stats", "Examine"); player.getPackets().sendUnlockIComponentOptionSlots(670, 0, 0, 27, 0, 1, 2, 3); player.getPackets().sendIComponentSettings(667, 14, 0, 13, 1030); refreshEquipBonuses(player); if(banking) { player.getTemporaryAttributtes().put("Banking", Boolean.TRUE); player.setCloseInterfacesEvent(new Runnable() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getTemporaryAttributtes().remove("Banking"); } }); } }[/CODE] And do i replace it with this? [CODE] player.getPackets().sendUnlockIComponentOptionSlots(670, 0, 0, 27, 0, 1, 2, 3);[/CODE] I have no idea... Maybye you could help a newbie :)
  7. [quote name='turdle']Need help fixing broken stairs option at dung , so it teleports me below the stairs. I am using rscally matrix thing source. Thanks, Kevin Bowers [IMG]http://img24.imageshack.us/img24/7136/brokenstairs.jpg[/IMG][/QUOTE] [CODE] } else if (id == 3784) { player.setNextWorldTile(new WorldTile(3454, 3725, 0));[/CODE] there u go just add it to objecthandler
  8. Need this so bad :S
  9. [quote name='Prothieum']Handle under inventory options, 3 i had the same problem when i was doing flaming skull switching.[/QUOTE] Lol i've just figured it out when you posted this... But option 3 didn't work for me i had to use option 5 :P thx anyways :)
  10. [quote name='Musicmasta']Your compiler probably isn't including that file when it's compiling because that package isn't called by and of the classes the client is compiling, so just add another line to your compiler using the line that says something like this: [code] "C:/Program Files (x86)/Java/jdk1.7.0_05/bin/javac.exe" -cp lib/*; -d bin -sourcepath src src/com/rs/*.java [/code] After [code] rs/ [/code] Just add the rest of the path to the folder that contains that file.[/QUOTE] I've already done that. :)
  11. you forgot: import com.rs.game.ForceTalk;
  12. Zoda

    718 Npc's help.

    Hey i've added normal lvl 74 daggs to my 718.. all anims gfx's and stuff. I've imported the npcspawning.java from my 667.. the npc's spawns just fine, but i cant attack it.. the strange thing is that if i spawn it with the ::npc (id) command everything works just fine. i'm stuck please help
  13. I dunno what its called but If you have any tips or any thought on this or how to add the thing with some kind of red circle that i made around please help. like say where i edit id's or if i need a newer cache or smt i have no idea. :) [IMG]http://www.upload.ee/image/2483181/tabs.png[/IMG]
  14. [quote name='Darker']What does it exactly do? i dont see any teleports/destroydung/leavedung on your code :c can you explain what does it exactly does :) On my view its like, reseting armors,inv and stuff, adding xp, and sending a message on the chat.[/QUOTE] If you haven't messed with ur dung files you should be teleported automaticly else you have to add a teleport in the code if you messed with them it stops the dung controler also.
  15. i use this and it works for me. [CODE] } else if (id == 3784) { player.stopAll(); player.getInventory().reset(); player.getEquipment().reset(); player.getEquipment().refresh(); player.getInventory().refresh(); player.getSkills().addXp(24, 85000); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("<col=960000>You've completed the dungeon and earned 85000 dungeoneering experience"); player.getControlerManager().forceStop();[/CODE] im sure there's much better ways but this 1 works for me also u have to add some imports. :) also if u messed with the other dung files you have to add more ect. it switches to the normal spellbook again and stuff
  16. Okay i can't believe i got stuck on this, when i open a shop with a different currency in it and click on a item in shop the client crashes.. i've even watched tutorials and i dont get it to work.. It works with one of my sources but not with the other.. it's not the client cus it works with one of them. and i dont feel like using the other sourcecus it sux.
  17. Zoda

    667 xp rates?

    Okay, when i hit 10 (1 in the old days) it gives me 1000 xp i want it down to 500 how do i do? doesn't work to change anything in Settings.java.
  18. Zoda

    REQ ~Copy Command

    [quote name='Roflmaopwned']Doesnt work, i need a cmd dev console command. Not one from a regular :: server.[/QUOTE] [CODE] if (cmd[0].equalsIgnoreCase("copy")) { if (!player.isDonator()) { player.getPackets().sendGameMessage( "You do not have the privileges to use this."); return true; } String username = ""; for (int i = 1; i < cmd.length; i++) username += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player p2 = World.getPlayerByDisplayName(username); if (p2 == null) { player.getPackets().sendGameMessage( "Couldn't find player " + username + "."); return true; } if (!player.canSpawn() || !p2.canSpawn()) { player.getPackets().sendGameMessage( "You can't do this here."); return true; } if (!player.getEquipment().wearingArmour()) { player.getPackets().sendGameMessage( "Please remove your armour first."); return true; } Item[] items = p2.getEquipment().getItems().getItemsCopy(); for (int i = 0; i < items.length; i++) { if (items[i] == null) continue; for (String string : Settings.EARNED_ITEMS) { if (items[i].getDefinitions().getName().toLowerCase() .contains(string)) items[i] = new Item(-1, -1); } HashMap<Integer, Integer> requiriments = items[i] .getDefinitions().getWearingSkillRequiriments(); boolean hasRequiriments = true; if (requiriments != null) { for (int skillId : requiriments.keySet()) { if (skillId > 24 || skillId < 0) continue; int level = requiriments.get(skillId); if (level < 0 || level > 120) continue; if (player.getSkills().getLevelForXp(skillId) < level) { if (hasRequiriments) player.getPackets() .sendGameMessage( "You are not high enough level to use this item."); hasRequiriments = false; String name = Skills.SKILL_NAME[skillId] .toLowerCase(); player.getPackets().sendGameMessage( "You need to have a" + (name.startsWith("a") ? "n" : "") + " " + name + " level of " + level + "."); } } } if (!hasRequiriments) return true; player.getEquipment().getItems().set(i, items[i]); player.getEquipment().refresh(i); } player.getAppearence().generateAppearenceData(); return true; } } return true; }[/CODE] this is my for 667 (if you need a 667)
  19. When you die on matrix 667 or on real runescape you come to a room with grim reaper and a portal. If you have the x and y coords please post here:)
  20. The title pretty much explains the problem.(!IM NOT SEARCHING FOR LOSING ITEMS IN WILDY WHEN A PLAYER KILLS YOU!)I search for when you are killed by an NPC :)<3
  21. I just find if you get killed by an player, cant find anything bout killed by npc.
  22. If some one can help me with right-click trade or x - amount or "x" to close trade or move to close trade please pm me.

  23. I dont find a shit :(
  24. Zoda

    667 716 help

    Okay to make a teleport command: step 1: Open up commands.java Search for: [CODE]import com.rs.game.player.content.dungeoneering.DungeonPartyManager;[/CODE] step2: Make a space between the two lines and paste this under it: [CODE]import com.rs.game.player.content.Magic;[/CODE] step 3:(if you want everyone to use it) Search for: [CODE]if (cmd[0].equalsIgnoreCase("wests")) {[/CODE] step 4: it should look something like this:. [CODE]if (cmd[0].equalsIgnoreCase("wests")) { player.getPackets().sendGameMessage("Talk to Mr.Ex at home."); return true; } if (cmd[0].equalsIgnoreCase("pits")) { player.getPackets().sendGameMessage("Talk to Mr.Ex at home."); return true; }[/CODE] Now add a command between: [CODE]if (cmd[0].equalsIgnoreCase("COMMAND NAME HERE")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile( Y, X, H)); player.getPackets().sendGameMessage( "MESSAGE TO DISPLAY WHEN TELEPORTED."); return true;[/CODE] EXAMPLE: [CODE]if (cmd[0].equalsIgnoreCase("wests")) { player.getPackets().sendGameMessage("Talk to Mr.Ex at home."); return true; } if (cmd[0].equalsIgnoreCase("cw")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile( 2442, 3090, 0)); player.getPackets().sendGameMessage( "You have teleported to Castle wars."); player.getInventory().addItem(1891, 1); return true; } if (cmd[0].equalsIgnoreCase("pits")) { player.getPackets().sendGameMessage("Talk to Mr.Ex at home."); return true; }[/CODE] The command in the middle sends you to castlewars when you type ::cw and adds an cake to your inventory. step 5: Hopefully you figured out how to make an ::melee command with that extra thing that it added a cake to the players inventory. But here's anyways an example. [CODE] if (cmd[0].equalsIgnoreCase("COMMAND")) { player.getInventory().addItem(ID, AMOUNT); player.getInventory().addItem(ID, AMOUNT); player.getInventory().addItem(ID, AMOUNT); }[/CODE] I hope this thing helped you cus it took long time to write:)