Jump to content

Search the Community

Showing results for tags 'post'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 56 results

  1. Here's an old ass tag I had laying around and was kinda unfinished so I fixed it up a bit and added some depth to it [img]http://i.imgur.com/usHW1ev.png[/img]
  2. [quote]For those of you who don't know, Mod Infinity is RuneZone(Nathan) , the owner of the RS Fansite "Runezone.com" You can see him confirming so here: [url]http://i.imgur.com/E2mstzU.png[/url], or here: [url]http://runezone.com/status/index.php?id=73293[/url] Mod Infinity forged a court injunction, and was too stupid and left in a line which could be googled and traced back to the template he used in a tutorial. Later he claimed "ignorance" saying he did not know a COURT had to approve a COURT injunction, and got a rival fansite shut down (RS Demon) You can see/read the evidence here: [url]http://i.imgur.com/qMEDsrV.png[/url] Other Evidence of conflict of interest: [LIST] [*]RuneZone.com or its subsidiaries have appeared in every community chronicle since the 2nd one. [*]Jagex created rules which stated ads on fansites could not advertise any games, or RWT. This is impossible to do, since ads are given by a third party which goes off users search history. Meaning sites like tip.it do not get platinum fansite status, however, of course, RuneZone.com is a platinum fansite. [*]Mod Infinity is the community manager, and "Fansite curator" many moderators he has chosen are from RuneZone, and him being the fansite curator is an obvious conflict of interest. [*]Further evidence of Mod Infinity trying to take over the RS fansite market: [url]http://i.imgur.com/JDGV37I.png[/url][/quote] [/LIST] [CENTER][I]-[URL="http://redd.it/2fni67"]source[/URL]-[/I][/CENTER] [Quote] Before he was hired by Jagex, Mod Infinity forged a court injunction to get a rival fansite shut down, and left in a line which could be googled and traced back to the template he used in a tutorial. Later he claimed "ignorance" saying he did not know a COURT had to approve a COURT injunction. I posted about this three months ago in a related thread about Infinity's favoritism towards RuneZone: In 2011 RuneZone and another site (RSDemon) were in a spat that involved them using content from RuneScape Wiki, which was the reason I was involved. There were also other circumstances related to those two sites trying to merge, or having previously been merged -- I'm not familiar with the details. Nathan, from RuneZone (now known as Infinity) sent the following to RSDemon's host: [quote]<RuneZone>, Petitioner, v. <RSDemon>, Respondent VERIFIED PETITION FOR TEMPORARY INJUNCTION JURISDICTIONAL ALLEGATIONS This is an action for the equitable remedy of a temporary injunction. Copyrighted content is being used and distributed. FACTUAL ALLEGATIONS Petitioner has personal knowledge that respondent <RSDemon> has a well-formed plan to act in a manner that will bypass the petitioner claims. The planned act complained of is COPYRIGHT ACT 1988. There is no substantial public interest that will be contravened by this Honorable Court issuing an injunction favoring this particular petitioner. There is a substantial likelihood that petitioner will prevail in this action, because the facts obtained on the record by discovery will reveal that the website in question is in breach of numerous computer misuse acts. UNDER PENALTIES OF PERJURY I affirm that the facts alleged in the foregoing are true and correct according to my own personal knowledge. BEFORE ME personally appeared Peter Piper who, being by me first duly sworn, executed the foregoing in my presence and stated to me that the facts alleged therein are true and correct according to his own personal knowledge. <RuneZone>[/quote] Emphasis mine, and I've edited out the names of the two people, but one of them is Nathan and the other was the owner of RSDemon. This supposed court injunction was sent by RuneZone to GoDaddy, and RSDemon was shut down. Now, if you Google the part in bold, you'll see it's from a tutorial on how to write a court injunction. Presumably, Nathan or someone else with RuneZone copied the tutorial and sent it, without any court approval, to the website host. Nathan later wrote to RSDemon: [I]There seems to have been some inaccuracies in the court injunction - our legal adviser had assumed that the client of a corporation could indeed submit a court injunction, however I have personally researched this and have found a court of law must verify the court injunction, and have such have withdraw the previous court injunction due to inaccuracies.[/I] Aha! Believe it or not, court injunctions actually have to be approved by a court! However, I think the damage had been done already -- the other site was shut down anyway because restoring it would have involved some sort of legal skirmish which neither of them seemed to have the money for. So that's the story of how RuneZone forged a court injunction to get a rival site shut down. Everything above is true to the best of my knowledge, although it's been three years so I'm mostly basing it off the correspondence I had with the owners of RuneZone and RSDemon at the time. I have copied the correspondence between me, RuneZone (Infinity) and RSDemon. It can be found here -- these emails have only been edited to remove personal information (names, emails), and are otherwise as-is. First is me talking with the owner of RSDemon, then me talking with RuneZone (Mod Infinity). It is not entirely in chronological order. This should corroborate what I've claimed here. Numerous people sent in complaints to the fansite program at the time, although nothing happened. Of course, Infinity somehow ended up being put in charge of the fansite support program, which has led to all sorts of favoritism towards his site -- you can read more about that here. Today, a thread was posted in the fansite forums relating to this issue -- Infinity gave sort of a non-response similar to this that didn't really address anything, and locked the thread. I am not posting the actual response due to privacy concerns. So, what do you guys think? Infinity currently runs the fansite support program, and has shown considerable favoritism to his own site, at the expense of others. Is this acceptable?[/quote] [center]-[I][URL="http://redd.it/2fon9y"]source[/URL][/I]-[/center]
  3. Title says it all, I already went to there website and its down and I tried to download it on the top list, but it downloads the runelocus homepage for some reason. Decided to come back and see whats knew on it, if anyone has it please post it below.
  4. Simple thread, post your favorite Runescape memes here, I'll start.. [IMG]http://global3.memecdn.com/runescape_o_218403.jpg[/IMG] [IMG]http://24.media.tumblr.com/tumblr_m6yq4vxcUu1qlo849o1_500.jpg[/IMG] [IMG]http://cdn.memegenerator.net/instances/47255398.jpg[/IMG] [IMG]http://s2.quickmeme.com/img/e2/e2c3f9926bfdd33d6a734e89c3317476c897d8f5af9382ad771d747fed883b2b.jpg[/IMG] [IMG]https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/s403x403/10389654_731866706856051_8782390616077808284_n.jpg[/IMG]
  5. Title basically says it all, but I am curious on everyone's thoughts on this topic. At the moment we currently have the following post count images. Bronze = 0 posts Iron = 50 posts Steel = 100 posts Mithril = 200 posts Adamant = 400 posts Rune = 800 posts Dragon = 1600 posts Bandos = 3200 posts I can't speak for others, but is it possible that we can add more post count images? I no it's all about a users activity and such, but I do find the gap from 800 posts to 1600 is a lot and especially from 1600 to 3200, could we add another 1-2 post images in between? so it's not so much of a big gap. Post opinions below :)
  6. Hey, So I've been on this website since 2009 or so and signed up in 2010. I wasn't active until last year around this time and have since acquired 500 posts. Now that's a lot for me considering the most posts I've ever had on a forums in the past 7 years was 800 or so and that was on my forums before I sold it. I've seen this website evolve and change designs time and time again and for the most part they've been positive changes. I'm now going to give my honest thoughts on each part of the website. [B]Main Site[/B] I've personally been working on adding content to the website so I don't have much to say, we could use more tutorials in the database but that will come with time. The toplist is good and it has all the features that a toplist should have. Although hopefully we will start to do more with the homepage. [B]The Forums[/B] The forums could use some more activity but over the past year it's been getting more and more popular. I see more and more members logging on daily and I have made some pretty good friends on the forums. The design is simple and clean and I like how you can switch from a bunch of different designs. [B]The Members[/B] This is a close knit community but the majority of them members are nice and welcoming. Most members will jump up to help anyone that needs help but other members a bit to harsh on people who ask for help. [B]The Staff[/B] The staff team is good, it's clear that they have there stuff together as most issues get handled quickly and spam gets removed swiftly. The staff members are nice. [B]Overall[/B] Overall, this is my favorite forums right next to my own that I owned. I plan on reaching 1,000 posts, then 1,500 and so on and I'm going to be around for a while :) [B]Shoutouts[/B] Shoutout to homies Ziek, Iki, Arix, content team, and anyone else I forgot.
  7. [IMG]http://i.imgur.com/1LtAvHm.png[/IMG] After posting, going back in to edit it gives you this warning
  8. I was wondering how much it costs to promoted your server on rune locus i can't seem to find the prices on the website if you could link me below or message prices i would appreciate it (was thinking of buying) :D
  9. okay so im gonna try to learn to code and need a good easy source and client to learn on, i been trying to download some [pI] sources but all the links wont work or been deleted, i would like a [PI] source and client. im a noob to this i know so call me whatever yall want, any help would be awesome :)
  10. [B]Requirements:[/B] All skills MUST be working 100%, this is essential! No GUIs from 2011+ The new dark GUIs are just...yuk! This is essential! Gameplay These are all essential! -No shops selling rares or high lvl items at start (I.e. many servers seem to have rare shops at Edgeville) -No insane starting money (I.e. 25mill gold at start) -No starting levels at 99 (Most servers seem to have the combat skills at 99 when you start) Grand Exchange (Would be nice but not required) Original Runescape music (Would be nice but not required) A decent sized community (Would be nice but not required) [B]What I really want!/Requirements in detail[/B] I started Runescape in 2008-2010/11 and it was excellent! Now runescape has gone downhill so im after the exact same experience as possiable when i played in 2008. Nostalgia. EDIT: Ok I hear these are unlikely, is there anything close to it? Or anything you can recommend at all?
  11. Yesterday evening we've already introduced them to you, the brand new post rank images! As a new member you start at the Bronze rank, and when your post count increases you'll go pass ranks: Iron > Steel > Mithril > Adamant > Rune > Dragon. Once you've reached the end of Dragon you'll get the final Bandos rank. Many thanks to [MENTION=62059]Julesmk[/MENTION] for the neat designing of the bars! Bronze = 0 posts Iron = 50 posts Steel = 100 posts Mithril = 200 posts Adamant = 400 posts Rune = 800 posts Dragon = 1600 posts Bandos = 3200 posts
  12. Currently there are user post count ranks added such as Bronze member, iron member, steel member and so on.. But there isn't any images added I just noticed and I'm bringing this up because back in the day when I first started using RSPS communities it was one of the things that I loved. Getting your post count up and getting a new rank title plus the awesome images that came with it displayed on your user information next to any post you made. So I'm suggesting that we add them because I think they are a nice little feature to have. Here is an example of the images, not in use like on a forum but I'm sure you've seen it before anyhow. [IMG]http://i776.photobucket.com/albums/yy41/tom14431996/rankssuggestion_zps9445af41.png[/IMG] Please leave some feedback about this because I would like to know what everyone else thinks.
  13. Again, I cannot spawn items, and someone gave me the script for an item spawning command, suggesting that I do not have the command. Here it is: if (playerCommand.startsWith("item") && c.playerRights >= 2) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::item 995 200 for example 200 gp"); } } catch(Exception e) { } } What do I do with this? Is there a configuration file I should put this in? Where?
  14. [B][COLOR=RoyalBLue]I'm sure this has been posted before, but maybe not.. EITHER WAY What about making a 5-25 post requirement in order to use the shoutbox? Why? So new users don't sign up and say in the shoutbox "help me pls" "how do i x" bla bla bla. This way, if they want help, they will help the forum activity. If they wish to partake in casual talk in the shoutbox, they can do so by partaking in a little forum discussion first. :cool: Or maybe this is already implemented and I am stupid.[/COLOR][/B]
  15. Server advertisement videos DO NOT BELONG HERE. Posting them here is a direct violation of the global forum rules, which state: Any advertisement videos posted here will be deleted without warning and you will be infracted. You can simply add the video to your advertisement thread in the correct section.
  16. axter

    Post your Setup!

    Post your setup, I thought mine was pretty cool, (even though my desk is kinda fucked), so here's mine: [IMG]http://i41.tinypic.com/24b4si0.jpg[/IMG] [IMG]http://i42.tinypic.com/2zfom6r.jpg[/IMG] [IMG]http://i44.tinypic.com/2w4y7ub.jpg[/IMG] (Redbull happens to be my favorite energy drink, besides water ;)) Btw if anyone knows how to hide/organize wires, please tell me LOL.
  17. axter

    Post Count Ranks

    I've noticed post count ranks have changed... I never saw a thread, is there gunna be more, or what? lolking
  18. [CENTER][IMG]http://i46.tinypic.com/t6e71z.png[/IMG] Greetings fellow Rune-Serverians! I am here to announce that the greatest server has just emerged from its sleep once again! Yes, we were popular before but shut down due to family issues. We are back and running once again and we strive to perfect our work as we accomplished before. We are running at full power and we strive to make our players happy and addicted to our server! Our server has been renewed and has content that really addicts players. As funny as it sounds, I the owner, am very addicted to my own server. Yes, I am very active. I am advertising this post because I want those people out there who can't find a good server to come and play the best server known and have the fun they need. [IMG]http://i48.tinypic.com/oseq0z.png[/IMG] Links: Webclient: [URL="http://dragonx.neatu.net/webclient.html"]http://dragonx.neatu.net/webclient.html[/URL] Client: [url=http://www.mediafire.com/?0s6zdb529kbbce6]DragonX.jar[/url] Website: [url=http://dragonx.netau.net]DragonX[/url] Forums: [URL="http://dragonx.freeiz.com,"]http://dragonx.freeiz.com[/URL] Please join us! We need people to join our growing community! DragonX[/CENTER]
  19. Sync

    Post your Specs

    [img]http://i.imgur.com/OtwHR.png?1?1917[/img] [img]http://i.imgur.com/g4b7Z.png?1[/img] Just bought this yesterday for $450 AUD with a 24" screen. NVIDIA GeForce GTS 450 Graphics Card, SATA 2 HDD, DDR3 ram.
  20. should add an option to make it so people have to post or thank before being able to view a tutorial's code or download a server
  21. I recently posted a thread about a compiling error. I fixed that one, but I have a question about this error. It involves ButtonHandler.java Here: [CODE]Compiling BronzeGod 724, please wait... src\com\rs\net\decoders\handlers\ButtonHandler.java:266: error: method sendInfo in class Shop cannot be applied to given types; shop.sendInfo(player, slotId, isBuying shop.getMainStock() : player.getInventory().getItems().getItems()); ^ required: Player,int,boolean found: Player,int,Item[] reason: actual argument Item[] cannot be converted to boolean by method invoc tion conversion 1 error src\com\rs\net\decoders\handlers\ButtonHandler.java:266: error: method sendInfo in class Shop cannot be applied to given types; shop.sendInfo(player, slotId, isBuying shop.getMainStock() : player.getInventory().getItems().getItems()); ^ required: Player,int,boolean found: Player,int,Item[] reason: actual argument Item[] cannot be converted to boolean by method invoc tion conversion 1 error[/CODE] Here is my ButtonHandler.java: [CODE]package com.rs.net.decoders.handlers; import java.util.HashMap; import java.util.TimerTask; import com.rs.Settings; import com.rs.cache.loaders.ItemDefinitions; import com.rs.content.exchange.ExchangeHandler; import com.rs.cores.CoresManager; import com.rs.game.WorldTile; import com.rs.game.item.Item; import com.rs.game.player.content.SquealOfFortune; import com.rs.game.minigames.Crucible; import com.rs.game.minigames.duel.DuelControler; import com.rs.game.minigames.soulwars.SoulWarsButtons; import com.rs.game.npc.familiar.Familiar; import com.rs.game.npc.familiar.Familiar.SpecialAttack; import com.rs.game.player.CombatDefinitions; import com.rs.game.player.EmotesManager; import com.rs.game.player.Equipment; import com.rs.game.player.Inventory; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.player.actions.Construction; import com.rs.game.player.actions.FightPitsViewingOrb; import com.rs.game.player.actions.HomeTeleport; import com.rs.game.player.actions.Rest; import com.rs.game.player.actions.Smithing.ForgingInterface; import com.rs.game.player.actions.Summoning; import com.rs.game.player.content.AdventurersLog; import com.rs.game.player.content.ItemConstants; import com.rs.game.player.content.Magic; import com.rs.game.player.content.PlayerLook; import com.rs.game.player.content.Runecrafting; import com.rs.game.player.content.Shop; import com.rs.game.player.content.SkillCapeCustomizer; import com.rs.game.player.content.SkillsDialogue; import com.rs.game.player.dialogues.LevelUp; import com.rs.game.player.dialogues.Transportation; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.io.InputStream; import com.rs.net.decoders.WorldPacketsDecoder; import com.rs.utils.ItemExamines; import com.rs.utils.Logger; import com.rs.utils.Utils; public class ButtonHandler { public static void handleButtons(final Player player, InputStream stream, int packetId) { int interfaceHash = stream.readIntV2(); int interfaceId = interfaceHash >> 16; if (Utils.getInterfaceDefinitionsSize() <= interfaceId) { // hack, or server error or client error // player.getSession().getChannel().close(); return; } if (player.isDead() || !player.getInterfaceManager().containsInterface(interfaceId)) return; final int componentId = interfaceHash - (interfaceId << 16); if (componentId != 65535 && Utils.getInterfaceDefinitionsComponentsSize(interfaceId) <= componentId) { // hack, or server error or client error // player.getSession().getChannel().close(); return; } final int slotId2 = stream.readUnsignedShort128(); final int slotId = stream.readUnsignedShortLE128(); if (!player.getControlerManager().processButtonClick(interfaceId, componentId, slotId, packetId)) return; // squeal if (interfaceId == 1253) { if (componentId == 93) { SquealOfFortune.spin(player); } else if (componentId == 7) { player.getPackets().sendOpenURL("http://google.com/"); } else if (componentId == 239) { SquealOfFortune.closeSOF(player); } else if (componentId == 192) { SquealOfFortune.claimItem(player); player.closeInterfaces(); } else if (componentId == 273){ SquealOfFortune.openSOF(player); } else if (componentId == 258){ SquealOfFortune.claimItem(player); SquealOfFortune.closeSOF(player); } else if (componentId == 106) SquealOfFortune.closeSOF(player); } if (interfaceId == 1139) { if (componentId == 18) { SquealOfFortune.openSOF(player); } else if (componentId == 23) { player.getPackets().sendOpenURL("http://google.com/"); player.getPackets().sendGameMessage("Link is opening!"); } } if (interfaceId == 1252) { if (componentId == 3) { SquealOfFortune.openSOF(player); } else if (componentId == 5) { player.closeInterfaces(); player.getPackets().sendGameMessage("The icon will appear the next time you log in"); } } if (interfaceId == 548 || interfaceId == 746) { if ((interfaceId == 548 && componentId == 148) || (interfaceId == 746 && componentId == 199)) { if (player.getInterfaceManager().containsScreenInter() || player.getInterfaceManager() .containsInventoryInter()) { // TODO cant open sound player.getPackets() .sendGameMessage( "Please finish what you're doing before opening the world map."); return; } // world map open player.getPackets().sendWindowsPane(755, 0); int posHash = player.getX() << 14 | player.getY(); player.getPackets().sendGlobalConfig(622, posHash); // map open // center // pos player.getPackets().sendGlobalConfig(674, posHash); // player // position } else if ((interfaceId == 548 && componentId == 17) || (interfaceId == 746 && componentId == 54)) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getSkills().switchXPDisplay(); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getSkills().switchXPPopup(); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getSkills().setupXPCounter(); }else if ((interfaceId == 746 && componentId == 207) || (interfaceId == 548 && componentId == 159)) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) { if (player.getInterfaceManager().containsScreenInter()) { player.getPackets() .sendGameMessage( "Please finish what you're doing before opening the price checker."); return; } player.stopAll(); player.getPriceCheckManager().openPriceCheck(); } } if (ExchangeHandler.handleButtons(player, interfaceId, componentId)) { return; } } else if(interfaceId == 397) { Construction.handleConstructionButtons(player, componentId); } else if (interfaceId == 276) { SoulWarsButtons.handleRewards(player, componentId, packetId); } else if (interfaceId == 107) { ExchangeHandler.sendSellItem(player, slotId2, slotId, componentId); return; } if (ExchangeHandler.handleButtons(player, interfaceId, componentId)) { return; } else if (interfaceId == 34) {// notes interface /* switch(componentId) { case 35: case 37: case 39: case 41: Note current = (Note) player.getTemporaryAttributtes().get("curNote"); current.setColour(componentId - (34 + (componentId == 35 ? 0 : componentId + 1))); player.getNotes().refresh(); player.getPackets().sendHideIComponent(34, 16, true); break; case 3: player.getPackets().sendRunScript(109, new Object[] { "Please enter the note text." }); player.getTemporaryAttributtes().put("entering_note", Boolean.TRUE); break; case 9: switch(packetId) { case WorldPacketsDecoder.ACTION_BUTTON1_PACKET: Note note = player.getNotes().getNotes().get(slotId); if (player.getTemporaryAttributtes().get("curNote") == note) { player.getTemporaryAttributtes().remove("curNote"); player.getPackets().sendConfig(1439, -1); return; } else { player.getTemporaryAttributtes().put("curNote", note); player.getPackets().sendConfig(1439, slotId); } break; case WorldPacketsDecoder.ACTION_BUTTON2_PACKET: player.getTemporaryAttributtes().put("curNote", player.getNotes().getNotes().get(slotId)); player.getPackets().sendRunScript(109, new Object[] { "Please edit the note text." }); player.getTemporaryAttributtes().put("editing_note", Boolean.TRUE); player.getPackets().sendConfig(1439, slotId); break; case WorldPacketsDecoder.ACTION_BUTTON3_PACKET: player.getTemporaryAttributtes().put("curNote", player.getNotes().getNotes().get(slotId)); player.getPackets().sendHideIComponent(34, 16, false); player.getPackets().sendConfig(1439, slotId); break; } break; case 8: Note note = (Note) player.getTemporaryAttributtes().get("curNote"); player.getNotes().remove(note); break; }*/ /** * Money Pouch */ } else if (interfaceId == 746) { if (componentId == 207) { if (packetId == 14) { player.getPackets().sendRunScript(5557, 1); player.getPackets().sendRunScript(5560, player.getCoins(), "n"); } else if (packetId == 67){ player.getTemporaryAttributtes().put("money_remove", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } } } else if (interfaceId == 548) { if (componentId == 159) { if (packetId == 14) { player.getPackets().sendRunScript(5557, 1); player.getPackets().sendRunScript(5560, player.getCoins(), "n"); } else if (packetId == 67){ player.out("hi"); player.getTemporaryAttributtes().put("money_remove", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } } } else if (interfaceId == 182) { if (player.getInterfaceManager().containsInventoryInter()) return; if (componentId == 6 || componentId == 13) if (!player.hasFinished()) player.logout(componentId == 6); } else if (interfaceId == 1165) { //if (componentId == 22) //Summoning.closeDreadnipInterface(player); } else if (interfaceId == 880) { if (componentId >= 7 && componentId <= 19) Familiar.setLeftclickOption(player, (componentId - 7) / 2); else if (componentId == 21) Familiar.confirmLeftOption(player); else if (componentId == 25) Familiar.setLeftclickOption(player, 7); else if (interfaceId == 1265) { Shop shop = (Shop) player.getTemporaryAttributtes().get("Shop"); if (shop == null) return; boolean isBuying = player.getTemporaryAttributtes().get("shop_buying") != null; int amount = (int) player.getTemporaryAttributtes().get("amount_shop"); if (componentId == 20) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) shop.sendInfo(player, slotId, isBuying ? shop.getMainStock() : player.getInventory().getItems().getItems()); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) shop.handleShop(player, slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) shop.handleShop(player, slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) shop.handleShop(player, slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) shop.handleShop(player, slotId, 50); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) shop.handleShop(player, slotId, 500); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) shop.sendExamine(player, slotId); } else if (componentId == 201) { Integer slot = (Integer) player.getTemporaryAttributtes().get("ShopSelectedSlot"); if (slot == null) return; if (isBuying) shop.buy(player, slot, amount); else shop.sell(player, slotId, amount); } else if (componentId == 208) { //+5 player.getTemporaryAttributtes().put("amount_shop", amount + 5); player.getPackets().sendIComponentText(interfaceId, 67, String.valueOf(amount)); } else if (componentId == 15) { player.getTemporaryAttributtes().put("amount_shop", amount + 1); player.getPackets().sendIComponentText(interfaceId, 67, String.valueOf(amount)); } else if (componentId == 214) { player.getTemporaryAttributtes().put("amount_shop", amount - 1); player.getPackets().sendIComponentText(interfaceId, 67, String.valueOf(amount)); } else if (componentId == 15) { player.getTemporaryAttributtes().put("amount_shop", amount + 5); player.getPackets().sendIComponentText(interfaceId, 67, String.valueOf(amount)); } else if (componentId == 29) { player.getTemporaryAttributtes().remove("shop_buying"); } else if (componentId == 28) { player.getTemporaryAttributtes().put("shop_buying", true); } } else if (interfaceId == 1266) { if (componentId == 0) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getInventory().sendExamine(slotId); else { Shop shop = (Shop) player.getTemporaryAttributtes().get("Shop"); if (shop == null) return; if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) shop.sendValue(player, slotId); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) shop.sell(player, slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) shop.sell(player, slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) shop.sell(player, slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) shop.sell(player, slotId, 50); } } } }else if (interfaceId == 309) PlayerLook.handleHairdresserSalonButtons(player, componentId, slotId); else if (interfaceId == 729) PlayerLook.handleThessaliasMakeOverButtons(player, componentId, slotId); else if (interfaceId == 187) { if (componentId == 1) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getMusicsManager().playAnotherMusic(slotId / 2); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getMusicsManager().sendHint(slotId / 2); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getMusicsManager().addToPlayList(slotId / 2); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getMusicsManager().removeFromPlayList(slotId / 2); } else if (componentId == 4) player.getMusicsManager().addPlayingMusicToPlayList(); else if (componentId == 10) player.getMusicsManager().switchPlayListOn(); else if (componentId == 11) player.getMusicsManager().clearPlayList(); else if (componentId == 13) player.getMusicsManager().switchShuffleOn(); } else if (interfaceId == 275) { if (componentId == 14) { player.getPackets().sendOpenURL(Settings.WEBSITE_LINK); } } else if ((interfaceId == 590 && componentId == 8) || interfaceId == 464) { player.getEmotesManager().useBookEmote(interfaceId == 464 ? componentId : EmotesManager.getId(slotId, packetId)); } else if (interfaceId == 192) { if (componentId == 2) player.getCombatDefinitions().switchDefensiveCasting(); else if (componentId == 7) player.getCombatDefinitions().switchShowCombatSpells(); else if (componentId == 9) player.getCombatDefinitions().switchShowTeleportSkillSpells(); else if (componentId == 11) player.getCombatDefinitions().switchShowMiscallaneousSpells(); else if (componentId == 13) player.getCombatDefinitions().switchShowSkillSpells(); else if (componentId >= 15 & componentId <= 17) player.getCombatDefinitions() .setSortSpellBook(componentId - 15); else Magic.processNormalSpell(player, componentId, packetId); } else if (interfaceId == 334) { if(componentId == 22) player.closeInterfaces(); else if (componentId == 21) player.getTrade().accept(false); } else if (interfaceId == 335) { if(componentId == 18) player.getTrade().accept(true); else if(componentId == 20) player.closeInterfaces(); else if(componentId == 32) { if(packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getTrade().removeItem(slotId, 1); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getTrade().removeItem(slotId, 5); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getTrade().removeItem(slotId, 10); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getTrade().removeItem(slotId, Integer.MAX_VALUE); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("trade_item_X_Slot", slotId); player.getTemporaryAttributtes().put("trade_isRemove", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); }else if(packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getTrade().sendValue(slotId, false); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getTrade().sendExamine(slotId, false); }else if(componentId == 35) { if(packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getTrade().sendValue(slotId, true); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getTrade().sendExamine(slotId, true); } } else if (interfaceId == 336) { if(componentId == 0) { if(packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getTrade().addItem(slotId, 1); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getTrade().addItem(slotId, 5); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getTrade().addItem(slotId, 10); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getTrade().addItem(slotId, Integer.MAX_VALUE); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("trade_item_X_Slot", slotId); player.getTemporaryAttributtes().remove("trade_isRemove"); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); }else if(packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getTrade().sendValue(slotId); else if(packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getInventory().sendExamine(slotId); } } else if (interfaceId == 300) { ForgingInterface.handleIComponents(player, componentId); } else if (interfaceId == 206) { if (componentId == 15) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getPriceCheckManager().removeItem(slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getPriceCheckManager().removeItem(slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getPriceCheckManager().removeItem(slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getPriceCheckManager().removeItem(slotId, Integer.MAX_VALUE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("pc_item_X_Slot", slotId); player.getTemporaryAttributtes().put("pc_isRemove", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } } } else if (interfaceId == 672) { if (componentId == 16) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) Summoning.createPouch(player, slotId2, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) Summoning.createPouch(player, slotId2, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) Summoning.createPouch(player, slotId2, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) Summoning.createPouch(player, slotId2, Integer.MAX_VALUE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) Summoning.createPouch(player, slotId2, 28);// x else if (packetId == WorldPacketsDecoder.ACTION_BUTTON6_PACKET) { player.getPackets().sendGameMessage( "You currently need " + ItemDefinitions.getItemDefinitions( slotId2) .getCreateItemRequirements()); } } } else if (interfaceId == 207) { if (componentId == 0) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getPriceCheckManager().addItem(slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getPriceCheckManager().addItem(slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getPriceCheckManager().addItem(slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getPriceCheckManager().addItem(slotId, Integer.MAX_VALUE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("pc_item_X_Slot", slotId); player.getTemporaryAttributtes().remove("pc_isRemove"); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getInventory().sendExamine(slotId); } } else if (interfaceId == 665) { if (player.getFamiliar() == null || player.getFamiliar().getBob() == null) return; if (componentId == 0) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getFamiliar().getBob().addItem(slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getFamiliar().getBob().addItem(slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getFamiliar().getBob().addItem(slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getFamiliar().getBob() .addItem(slotId, Integer.MAX_VALUE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("bob_item_X_Slot", slotId); player.getTemporaryAttributtes().remove("bob_isRemove"); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getInventory().sendExamine(slotId); } } else if (interfaceId == 671) { if (player.getFamiliar() == null || player.getFamiliar().getBob() == null) return; if (componentId == 27) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getFamiliar().getBob().removeItem(slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getFamiliar().getBob().removeItem(slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getFamiliar().getBob().removeItem(slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getFamiliar().getBob() .removeItem(slotId, Integer.MAX_VALUE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("bob_item_X_Slot", slotId); player.getTemporaryAttributtes().put("bob_isRemove", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } } else if (componentId == 29) player.getFamiliar().takeBob(); } else if (interfaceId == 916) { SkillsDialogue.handleSetQuantityButtons(player, componentId); } else if (interfaceId == 193) { if (componentId == 5) player.getCombatDefinitions().switchShowCombatSpells(); else if (componentId == 7) player.getCombatDefinitions().switchShowTeleportSkillSpells(); else if (componentId >= 9 && componentId <= 11) player.getCombatDefinitions().setSortSpellBook(componentId - 9); else if (componentId == 18) player.getCombatDefinitions().switchDefensiveCasting(); else Magic.processAncientSpell(player, componentId, packetId); } else if (interfaceId == 430) { if (componentId == 5) player.getCombatDefinitions().switchShowCombatSpells(); else if (componentId == 7) player.getCombatDefinitions().switchShowTeleportSkillSpells(); else if (componentId == 9) player.getCombatDefinitions().switchShowMiscallaneousSpells(); else if (componentId >= 11 & componentId <= 13) player.getCombatDefinitions() .setSortSpellBook(componentId - 11); else if (componentId == 20) player.getCombatDefinitions().switchDefensiveCasting(); else Magic.processLunarSpell(player, componentId, packetId); } else if (interfaceId == 261) { if (player.getInterfaceManager().containsInventoryInter()) return; if (componentId == 22) { if (player.getInterfaceManager().containsScreenInter()) { player.getPackets() .sendGameMessage( "Please close the interface you have open before setting your graphic options."); return; } player.stopAll(); player.getInterfaceManager().sendInterface(742); } else if (componentId == 12) player.switchAllowChatEffects(); else if (componentId == 13) { //chat setup player.getInterfaceManager().sendSettings(982); } else if (componentId == 14) player.switchMouseButtons(); else if (componentId == 24) //audio options player.getInterfaceManager().sendSettings(429); else if (componentId == 26) AdventurersLog.open(player); }else if (interfaceId == 429) { if (componentId == 18) player.getInterfaceManager().sendSettings(); } else if (interfaceId == 982) { if (componentId == 5) player.getInterfaceManager().sendSettings(); else if (componentId == 41) player.setPrivateChatSetup(player.getPrivateChatSetup() == 0 ? 1 : 0); else if (componentId >= 49 && componentId <= 66) player.setPrivateChatSetup(componentId - 48); else if (componentId >= 72 && componentId <= 91) player.setFriendChatSetup(componentId - 72); } else if (interfaceId == 271) { WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (componentId == 8 || componentId == 42) player.getPrayer().switchPrayer(slotId); else if (componentId == 43 && player.getPrayer().isUsingQuickPrayer()) player.getPrayer().switchSettingQuickPrayer(); } }); } else if (interfaceId == 320) { player.stopAll(); int lvlupSkill = -1; int skillMenu = -1; switch (componentId) { case 150: // Attack skillMenu = 1; if (player.getTemporaryAttributtes().remove("leveledUp[0]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 1); } else { lvlupSkill = 0; player.getPackets().sendConfig(1230, 10); } break; case 9: // Strength skillMenu = 2; if (player.getTemporaryAttributtes().remove("leveledUp[2]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 2); } else { lvlupSkill = 2; player.getPackets().sendConfig(1230, 20); } break; case 22: // Defence skillMenu = 5; if (player.getTemporaryAttributtes().remove("leveledUp[1]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 5); } else { lvlupSkill = 1; player.getPackets().sendConfig(1230, 40); } break; case 40: // Ranged skillMenu = 3; if (player.getTemporaryAttributtes().remove("leveledUp[4]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 3); } else { lvlupSkill = 4; player.getPackets().sendConfig(1230, 30); } break; case 58: // Prayer if (player.getTemporaryAttributtes().remove("leveledUp[5]") != Boolean.TRUE) { skillMenu = 7; player.getPackets().sendConfig(965, 7); } else { lvlupSkill = 5; player.getPackets().sendConfig(1230, 60); } break; case 71: // Magic if (player.getTemporaryAttributtes().remove("leveledUp[6]") != Boolean.TRUE) { skillMenu = 4; player.getPackets().sendConfig(965, 4); } else { lvlupSkill = 6; player.getPackets().sendConfig(1230, 33); } break; case 84: // Runecrafting if (player.getTemporaryAttributtes().remove("leveledUp[20]") != Boolean.TRUE) { skillMenu = 12; player.getPackets().sendConfig(965, 12); } else { lvlupSkill = 20; player.getPackets().sendConfig(1230, 100); } break; case 102: // Construction skillMenu = 22; if (player.getTemporaryAttributtes().remove("leveledUp[21]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 22); } else { lvlupSkill = 21; player.getPackets().sendConfig(1230, 698); } break; case 145: // Hitpoints skillMenu = 6; if (player.getTemporaryAttributtes().remove("leveledUp[3]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 6); } else { lvlupSkill = 3; player.getPackets().sendConfig(1230, 50); } break; case 15: // Agility skillMenu = 8; if (player.getTemporaryAttributtes().remove("leveledUp[16]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 8); } else { lvlupSkill = 16; player.getPackets().sendConfig(1230, 65); } break; case 28: // Herblore skillMenu = 9; if (player.getTemporaryAttributtes().remove("leveledUp[15]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 9); } else { lvlupSkill = 15; player.getPackets().sendConfig(1230, 75); } break; case 46: // Thieving skillMenu = 10; if (player.getTemporaryAttributtes().remove("leveledUp[17]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 10); } else { lvlupSkill = 17; player.getPackets().sendConfig(1230, 80); } break; case 64: // Crafting skillMenu = 11; if (player.getTemporaryAttributtes().remove("leveledUp[12]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 11); } else { lvlupSkill = 12; player.getPackets().sendConfig(1230, 90); } break; case 77: // Fletching skillMenu = 19; if (player.getTemporaryAttributtes().remove("leveledUp[9]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 19); } else { lvlupSkill = 9; player.getPackets().sendConfig(1230, 665); } break; case 90: // Slayer skillMenu = 20; if (player.getTemporaryAttributtes().remove("leveledUp[18]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 20); } else { lvlupSkill = 18; player.getPackets().sendConfig(1230, 673); } break; case 108: // Hunter skillMenu = 23; if (player.getTemporaryAttributtes().remove("leveledUp[22]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 23); } else { lvlupSkill = 22; player.getPackets().sendConfig(1230, 689); } break; case 140: // Mining skillMenu = 13; if (player.getTemporaryAttributtes().remove("leveledUp[14]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 13); } else { lvlupSkill = 14; player.getPackets().sendConfig(1230, 110); } break; case 135: // Smithing skillMenu = 14; if (player.getTemporaryAttributtes().remove("leveledUp[13]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 14); } else { lvlupSkill = 13; player.getPackets().sendConfig(1230, 115); } break; case 34: // Fishing skillMenu = 15; if (player.getTemporaryAttributtes().remove("leveledUp[10]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 15); } else { lvlupSkill = 10; player.getPackets().sendConfig(1230, 120); } break; case 52: // Cooking skillMenu = 16; if (player.getTemporaryAttributtes().remove("leveledUp[7]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 16); } else { lvlupSkill = 7; player.getPackets().sendConfig(1230, 641); } break; case 130: // Firemaking skillMenu = 17; if (player.getTemporaryAttributtes().remove("leveledUp[11]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 17); } else { lvlupSkill = 11; player.getPackets().sendConfig(1230, 649); } break; case 125: // Woodcutting skillMenu = 18; if (player.getTemporaryAttributtes().remove("leveledUp[8]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 18); } else { lvlupSkill = 8; player.getPackets().sendConfig(1230, 660); } break; case 96: // Farming skillMenu = 21; if (player.getTemporaryAttributtes().remove("leveledUp[19]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 21); } else { lvlupSkill = 19; player.getPackets().sendConfig(1230, 681); } break; case 114: // Summoning skillMenu = 24; if (player.getTemporaryAttributtes().remove("leveledUp[23]") != Boolean.TRUE) { player.getPackets().sendConfig(965, 24); } else { lvlupSkill = 23; player.getPackets().sendConfig(1230, 705); } break; case 120: // Dung skillMenu = 25; if (player.getTemporaryAttributtes().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);*/ player.getInterfaceManager().sendScreenInterface(317, 1218); player.getPackets().sendInterface(false, 1218, 1, 1217); //seems to fix if (lvlupSkill != -1) LevelUp.switchFlash(player, lvlupSkill, false); if (skillMenu != -1) player.getTemporaryAttributtes().put("skillMenu", skillMenu); } else if (interfaceId == 1218) { if((componentId >= 33 && componentId <= 55) || componentId == 120 || componentId == 151 || componentId == 189) player.getPackets().sendInterface(false, 1218, 1, 1217); //seems to fix } else if (interfaceId == 499) { int skillMenu = -1; if (player.getTemporaryAttributtes().get("skillMenu") != null) skillMenu = (Integer) player.getTemporaryAttributtes().get( "skillMenu"); if(componentId >= 10 && componentId <= 25) player.getPackets().sendConfig(965, ((componentId - 10) * 1024) + skillMenu); else if (componentId == 29) // close inter player.stopAll(); } else if (interfaceId == 387) { if (player.getInterfaceManager().containsInventoryInter()) return; if (componentId == 6) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) { int hatId = player.getEquipment().getHatId(); if(hatId == 24437 || hatId == 24439 || hatId == 24440 || hatId == 24441) { player.getDialogueManager().startDialogue("FlamingSkull", player.getEquipment().getItem(Equipment.SLOT_HAT), -1); return; } }else if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) ButtonHandler.sendRemove(player, Equipment.SLOT_HAT); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getEquipment().sendExamine(Equipment.SLOT_HAT); } else if (componentId == 9) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { int capeId = player.getEquipment().getCapeId(); if (capeId == 20769 || capeId == 20771) SkillCapeCustomizer.startCustomizing(player, capeId); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) { int capeId = player.getEquipment().getCapeId(); if (capeId == 20767) SkillCapeCustomizer.startCustomizing(player, capeId); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) ButtonHandler.sendRemove(player, Equipment.SLOT_CAPE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getEquipment().sendExamine(Equipment.SLOT_CAPE); } else if (componentId == 12) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) { int amuletId = player.getEquipment().getAmuletId(); if (amuletId <= 1712 && amuletId >= 1706 || amuletId >= 10354 && amuletId <= 10361) { if (Magic.sendItemTeleportSpell(player, true, Transportation.EMOTE, Transportation.GFX, 4, new WorldTile(3087, 3496, 0))) { Item amulet = player.getEquipment().getItem( Equipment.SLOT_AMULET); if (amulet != null) { amulet.setId(amulet.getId() - 2); player.getEquipment().refresh( Equipment.SLOT_AMULET); } } } else if (amuletId == 1704 || amuletId == 10352) player.getPackets() .sendGameMessage( "The amulet has ran out of charges. You need to recharge it if you wish it use it once more."); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) { int amuletId = player.getEquipment().getAmuletId(); if (amuletId <= 1712 && amuletId >= 1706 || amuletId >= 10354 && amuletId <= 10361) { if (Magic.sendItemTeleportSpell(player, true, Transportation.EMOTE, Transportation.GFX, 4, new WorldTile(2918, 3176, 0))) { Item amulet = player.getEquipment().getItem( Equipment.SLOT_AMULET); if (amulet != null) { amulet.setId(amulet.getId() - 2); player.getEquipment().refresh( Equipment.SLOT_AMULET); } } } } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) { int amuletId = player.getEquipment().getAmuletId(); if (amuletId <= 1712 && amuletId >= 1706 || amuletId >= 10354 && amuletId <= 10361) { if (Magic.sendItemTeleportSpell(player, true, Transportation.EMOTE, Transportation.GFX, 4, new WorldTile(3105, 3251, 0))) { Item amulet = player.getEquipment().getItem( Equipment.SLOT_AMULET); if (amulet != null) { amulet.setId(amulet.getId() - 2); player.getEquipment().refresh( Equipment.SLOT_AMULET); } } } } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { int amuletId = player.getEquipment().getAmuletId(); if (amuletId <= 1712 && amuletId >= 1706 || amuletId >= 10354 && amuletId <= 10361) { if (Magic.sendItemTeleportSpell(player, true, Transportation.EMOTE, Transportation.GFX, 4, new WorldTile(3293, 3163, 0))) { Item amulet = player.getEquipment().getItem( Equipment.SLOT_AMULET); if (amulet != null) { amulet.setId(amulet.getId() - 2); player.getEquipment().refresh( Equipment.SLOT_AMULET); } } } } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) ButtonHandler.sendRemove(player, Equipment.SLOT_AMULET); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getEquipment().sendExamine(Equipment.SLOT_AMULET); } else if (componentId == 15) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) { int weaponId = player.getEquipment().getWeaponId(); if(weaponId == 15484) player.getInterfaceManager().gazeOrbOfOculus(); }else if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) ButtonHandler.sendRemove(player, Equipment.SLOT_WEAPON); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getEquipment().sendExamine(Equipment.SLOT_WEAPON); } else if (componentId == 18) ButtonHandler.sendRemove(player, Equipment.SLOT_CHEST); else if (componentId == 21) ButtonHandler.sendRemove(player, Equipment.SLOT_SHIELD); else if (componentId == 24) ButtonHandler.sendRemove(player, Equipment.SLOT_LEGS); else if (componentId == 27) ButtonHandler.sendRemove(player, Equipment.SLOT_HANDS); else if (componentId == 30) ButtonHandler.sendRemove(player, Equipment.SLOT_FEET); else if (componentId == 33) ButtonHandler.sendRemove(player, Equipment.SLOT_RING); else if (componentId == 36) ButtonHandler.sendRemove(player, Equipment.SLOT_ARROWS); else if (componentId == 45) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) { ButtonHandler.sendRemove(player, Equipment.SLOT_AURA); player.getAuraManager().removeAura(); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getEquipment().sendExamine(Equipment.SLOT_AURA); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getAuraManager().activate(); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getAuraManager().sendAuraRemainingTime(); } else if (componentId == 40) { player.stopAll(); player.getInterfaceManager().sendInterface(17); } else if (componentId == 37) { openEquipmentBonuses(player, false); } } else if (interfaceId == 640) { if (componentId == 18 || componentId == 22) { player.getTemporaryAttributtes().put("WillDuelFriendly", true); player.getPackets().sendConfig(283, 67108864); } else if (componentId == 19 || componentId == 21) { player.getTemporaryAttributtes().put("WillDuelFriendly", false); player.getPackets().sendConfig(283, 134217728); } else if (componentId == 20) { DuelControler.challenge(player); } } else if (interfaceId == 650) { if (componentId == 15) { player.stopAll(); player.setNextWorldTile(new WorldTile(2974, 4384, player.getPlane())); player.getControlerManager().startControler( "CorpBeastControler"); } else if (componentId == 16) player.closeInterfaces(); } else if (interfaceId == 667) { if (componentId == 14) { if (slotId >= 14) return; Item item = player.getEquipment().getItem(slotId); if (item == null) return; if (packetId == 3) player.getPackets().sendGameMessage( ItemExamines.getExamine(item)); else if (packetId == 216) { sendRemove(player, slotId); ButtonHandler.refreshEquipBonuses(player); } } else if (componentId == 46 && player.getTemporaryAttributtes().remove("Banking") != null) { player.getBank().openBank(); } } else if (interfaceId == 670) { if (componentId == 0) { if (slotId >= player.getInventory().getItemsContainerSize()) return; Item item = player.getInventory().getItem(slotId); if (item == null) return; if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) { if (sendWear(player, slotId, item.getId())) ButtonHandler.refreshEquipBonuses(player); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getInventory().sendExamine(slotId); } } else if (interfaceId == Inventory.INVENTORY_INTERFACE) { // inventory if (componentId == 0) { if (slotId > 27 || player.getInterfaceManager() .containsInventoryInter()) return; Item item = player.getInventory().getItem(slotId); if (item == null || item.getId() != slotId2) return; if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) InventoryOptionsHandler.handleItemOption1(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) InventoryOptionsHandler.handleItemOption2(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) InventoryOptionsHandler.handleItemOption3(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) InventoryOptionsHandler.handleItemOption4(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) InventoryOptionsHandler.handleItemOption5(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON6_PACKET) InventoryOptionsHandler.handleItemOption6(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON7_PACKET) InventoryOptionsHandler.handleItemOption7(player, slotId, slotId2, item); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) InventoryOptionsHandler.handleItemOption8(player, slotId, slotId2, item); } } else if (interfaceId == 742) { if (componentId == 46) // close player.stopAll(); } else if (interfaceId == 743) { if (componentId == 20) // close player.stopAll(); } else if (interfaceId == 741) { if (componentId == 9) // close player.stopAll(); } else if (interfaceId == 749) { if (componentId == 4) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) // activate player.getPrayer().switchQuickPrayers(); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) // switch player.getPrayer().switchSettingQuickPrayer(); } } else if (interfaceId == 750) { if (componentId == 4) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) { player.toogleRun(player.isResting() ? false : true); if (player.isResting()) player.stopAll(); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) { if (player.isResting()) { player.stopAll(); return; } long currentTime = Utils.currentTimeMillis(); if (player.getEmotesManager().getNextEmoteEnd() >= currentTime) { player.getPackets().sendGameMessage( "You can't rest while perfoming an emote."); return; } if (player.getLockDelay() >= currentTime) { player.getPackets().sendGameMessage( "You can't rest while perfoming an action."); return; } player.stopAll(); player.getActionManager().setAction(new Rest()); } } } else if (interfaceId == 11) { if (componentId == 17) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getBank().depositItem(slotId, 1, false); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getBank().depositItem(slotId, 5, false); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getBank().depositItem(slotId, 10, false); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getBank().depositItem(slotId, Integer.MAX_VALUE, false); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("bank_item_X_Slot", slotId); player.getTemporaryAttributtes().remove("bank_isWithdraw"); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getInventory().sendExamine(slotId); } else if (componentId == 18) player.getBank().depositAllInventory(false); else if (componentId == 20) player.getBank().depositAllEquipment(false); } else if (interfaceId == 762) { if (componentId == 15) player.getBank().switchInsertItems(); else if (componentId == 19) player.getBank().switchWithdrawNotes(); else if (componentId == 33) player.getBank().depositAllInventory(true); else if (componentId == 37) player.getBank().depositAllEquipment(true); else if (componentId == 35) player.getBank().emptyPouch(true); else if (componentId == 46) { player.closeInterfaces(); player.getInterfaceManager().sendInterface(767); player.setCloseInterfacesEvent(new Runnable() { @Override public void run() { player.getBank().openBank(); } }); } else if (componentId >= 46 && componentId <= 64) { int tabId = 9 - ((componentId - 46) / 2); if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getBank().setCurrentTab(tabId); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getBank().collapse(tabId); } else if (componentId == 95) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getBank().withdrawItem(slotId, 1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getBank().withdrawItem(slotId, 5); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getBank().withdrawItem(slotId, 10); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getBank().withdrawLastAmount(slotId); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("bank_item_X_Slot", slotId); player.getTemporaryAttributtes().put("bank_isWithdraw", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getBank().withdrawItem(slotId, Integer.MAX_VALUE); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON6_PACKET) player.getBank().withdrawItemButOne(slotId); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getBank().sendExamine(slotId); } else if (componentId == 119) { openEquipmentBonuses(player, true); } } else if (interfaceId == 763) { if (componentId == 0) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) player.getBank().depositItem(slotId, 1, true); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getBank().depositItem(slotId, 5, true); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getBank().depositItem(slotId, 10, true); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getBank().depositLastAmount(slotId); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) { player.getTemporaryAttributtes().put("bank_item_X_Slot", slotId); player.getTemporaryAttributtes().remove("bank_isWithdraw"); player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" }); } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) player.getBank().depositItem(slotId, Integer.MAX_VALUE, true); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON8_PACKET) player.getInventory().sendExamine(slotId); } } else if (interfaceId == 767) { if (componentId == 10) player.getBank().openBank(); } else if (interfaceId == 884) { if (componentId == 4) { int weaponId = player.getEquipment().getWeaponId(); if (player.hasInstantSpecial(weaponId)) { player.performInstantSpecial(weaponId); return; } submitSpecialRequest(player); } else if (componentId >= 7 && componentId <= 10) player.getCombatDefinitions().setAttackStyle(componentId - 7); else if (componentId == 11) player.getCombatDefinitions().switchAutoRelatie(); } else if (interfaceId == 755) { if (componentId == 44) player.getPackets().sendWindowsPane( player.getInterfaceManager().hasRezizableScreen() ? 746 : 548, 2); else if (componentId == 42) { player.getHintIconsManager().removeAll();//TODO find hintIcon index player.getPackets().sendConfig(1159, 1); } } else if (interfaceId == 20) SkillCapeCustomizer.handleSkillCapeCustomizer(player, componentId); else if (interfaceId == 1056) { if (componentId == 173) player.getInterfaceManager().sendInterface(917); } else if (interfaceId == 751) { if (componentId == 26) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getFriendsIgnores().setPrivateStatus(0); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getFriendsIgnores().setPrivateStatus(1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getFriendsIgnores().setPrivateStatus(2); } else if (componentId == 32) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.setFilterGame(false); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.setFilterGame(true); } else if (componentId == 29) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.setPublicStatus(0); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.setPublicStatus(1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.setPublicStatus(2); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON5_PACKET) player.setPublicStatus(3); }else if (componentId == 0) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.getFriendsIgnores().setFriendsChatStatus(0); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.getFriendsIgnores().setFriendsChatStatus(1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.getFriendsIgnores().setFriendsChatStatus(2); } else if (componentId == 23) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.setClanStatus(0); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.setClanStatus(1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.setClanStatus(2); } else if (componentId == 20) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.setTradeStatus(0); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.setTradeStatus(1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.setTradeStatus(2); } else if (componentId == 17) { if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) player.setAssistStatus(0); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) player.setAssistStatus(1); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) player.setAssistStatus(2); else if (packetId == WorldPacketsDecoder.ACTION_BUTTON9_PACKET) { //ASSIST XP Earned/Time } } }/* else if(interfaceId == 105) { GrandExchange.handleButtons(player, componentId); } */else if (interfaceId == 1163 || interfaceId == 1164 || interfaceId == 1168 || interfaceId == 1170 || interfaceId == 1173) player.getDominionTower().handleButtons(interfaceId, componentId); else if (interfaceId == 900) PlayerLook.handleMageMakeOverButtons(player, componentId); else if (interfaceId == 1028) PlayerLook.handleCharacterCustomizingButtons(player, componentId); else if (interfaceId == 1108 || interfaceId == 1109) player.getFriendsIgnores().handleFriendChatButtons(interfaceId, componentId, packetId); else if (interfaceId == 1079) player.closeInterfaces(); else if (interfaceId == 374) { if(componentId >= 5 && componentId <= 9) player.setNextWorldTile(new WorldTile(FightPitsViewingOrb.ORB_TELEPORTS[componentId-5])); else if (componentId == 15) player.stopAll(); }else if (interfaceId == 1092) { player.stopAll(); WorldTile destTile = null; switch(componentId) { case 47: destTile = HomeTeleport.LUMBRIDGE_LODE_STONE; break; case 42: destTile = HomeTeleport.BURTHORPE_LODE_STONE; break; case 39: destTile = HomeTeleport.LUNAR_ISLE_LODE_STONE; break; case 7: destTile = HomeTeleport.BANDIT_CAMP_LODE_STONE; break; case 50: destTile = HomeTeleport.TAVERLY_LODE_STONE; break; case 40: destTile = HomeTeleport.ALKARID_LODE_STONE; break; case 51: destTile = HomeTeleport.VARROCK_LODE_STONE; break; case 45: destTile = HomeTeleport.EDGEVILLE_LODE_STONE; break; case 46: destTile = HomeTeleport.FALADOR_LODE_STONE; break; case 48: destTile = HomeTeleport.PORT_SARIM_LODE_STONE; break; case 44: destTile = HomeTeleport.DRAYNOR_VILLAGE_LODE_STONE; break; case 41: destTile = HomeTeleport.ARDOUGNE_LODE_STONE; break; case 43: destTile = HomeTeleport.CATHERBAY_LODE_STONE; break; case 52: destTile = HomeTeleport.YANILLE_LODE_STONE; break; case 49: destTile = HomeTeleport.SEERS_VILLAGE_LODE_STONE; break; } if(destTile != null) player.getActionManager().setAction(new HomeTeleport(destTile)); }else if (interfaceId == 1214) player.getSkills().handleSetupXPCounter(componentId); else if (interfaceId == 1292) { if(componentId == 12) Crucible.enterArena(player); else if (componentId == 13) player.closeInterfaces(); } if (Settings.DEBUG) Logger.log("ButtonHandler", "InterfaceId " + interfaceId + ", componentId " + componentId + ", slotId " + slotId + ", slotId2 " + slotId2 + ", PacketId: " + packetId); } public static void sendRemove(Player player, int slotId) { if (slotId >= 15) return; player.stopAll(false, false); Item item = player.getEquipment().getItem(slotId); if (item == null || !player.getInventory().addItem(item.getId(), item.getAmount())) return; player.getEquipment().getItems().set(slotId, null); player.getEquipment().refresh(slotId); player.getAppearence().generateAppearenceData(); if (Runecrafting.isTiara(item.getId())) player.getPackets().sendConfig(491, 0); if (slotId == 3) player.getCombatDefinitions().desecreaseSpecialAttack(0); } public static boolean sendWear(Player player, int slotId, int itemId) { if (player.hasFinished() || player.isDead()) return false; player.stopAll(false, false); Item item = player.getInventory().getItem(slotId); String itemName = item.getDefinitions() == null ? "" : item .getDefinitions().getName().toLowerCase(); if (item == null || item.getId() != itemId) return false; if (item.getDefinitions().isNoted() || !item.getDefinitions().isWearItem(player.getAppearence().isMale())) { player.getPackets().sendGameMessage("You can't wear that."); return true; } for (String strings : Settings.DONATOR_ITEMS) { if (itemName.contains(strings) && !player.isDonator()) { player.getPackets().sendGameMessage( "You need to be a donator to equip " + itemName + "."); return true; } } for (String strings : Settings.EXTREME_DONATOR_ITEMS) { if (itemName.contains(strings) && !player.isExtremeDonator()) { player.getPackets().sendGameMessage( "You need to be a extreme donator to equip " + itemName + "."); return true; } } for (String strings : Settings.EARNED_ITEMS) { if (itemName.contains(strings) && player.getRights() <= 1) { player.getPackets().sendGameMessage( "You must earn " + itemName + "."); return true; } } for (String strings : Settings.VOTE_REQUIRED_ITEMS) { if (itemName.toLowerCase().contains(strings) && !player.hasVoted()) { player.getPackets().sendGameMessage("You need to vote to wear the prod item "+itemName+" for 24 hours, type ::vote to vote."); return true; } } int targetSlot = Equipment.getItemSlot(itemId); if (targetSlot == -1) { player.getPackets().sendGameMessage("You can't wear that."); return true; } if(!ItemConstants.canWear(item, player)) return true; boolean isTwoHandedWeapon = targetSlot == 3 && Equipment.isTwoHandedWeapon(item); if (isTwoHandedWeapon && !player.getInventory().hasFreeSlots() && player.getEquipment().hasShield()) { player.getPackets().sendGameMessage( "Not enough free space in your inventory."); return true; } HashMap<Integer, Integer> requiriments = item.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; if (!player.getControlerManager().canEquip(targetSlot, itemId)) return false; player.stopAll(false, false); player.getInventory().deleteItem(slotId, item); if (targetSlot == 3) { if (isTwoHandedWeapon && player.getEquipment().getItem(5) != null) { if (!player.getInventory().addItem( player.getEquipment().getItem(5).getId(), player.getEquipment().getItem(5).getAmount())) { player.getInventory().getItems().set(slotId, item); player.getInventory().refresh(slotId); return true; } player.getEquipment().getItems().set(5, null); } } else if (targetSlot == 5) { if (player.getEquipment().getItem(3) != null && Equipment.isTwoHandedWeapon(player.getEquipment() .getItem(3))) { if (!player.getInventory().addItem( player.getEquipment().getItem(3).getId(), player.getEquipment().getItem(3).getAmount())) { player.getInventory().getItems().set(slotId, item); player.getInventory().refresh(slotId); return true; } player.getEquipment().getItems().set(3, null); } } if (player.getEquipment().getItem(targetSlot) != null && (itemId != player.getEquipment().getItem(targetSlot).getId() || !item .getDefinitions().isStackable())) { if (player.getInventory().getItems().get(slotId) == null) { player.getInventory() .getItems() .set(slotId, new Item(player.getEquipment() .getItem(targetSlot).getId(), player .getEquipment().getItem(targetSlot) .getAmount())); player.getInventory().refresh(slotId); } else player.getInventory().addItem( new Item(player.getEquipment().getItem(targetSlot) .getId(), player.getEquipment() .getItem(targetSlot).getAmount())); player.getEquipment().getItems().set(targetSlot, null); } if(targetSlot == Equipment.SLOT_AURA) player.getAuraManager().removeAura(); int oldAmt = 0; if (player.getEquipment().getItem(targetSlot) != null) { oldAmt = player.getEquipment().getItem(targetSlot).getAmount(); } Item item2 = new Item(itemId, oldAmt + item.getAmount()); player.getEquipment().getItems().set(targetSlot, item2); player.getEquipment().refresh(targetSlot, targetSlot == 3 ? 5 : targetSlot == 3 ? 0 : 3); player.getAppearence().generateAppearenceData(); player.getPackets().sendSound(2240, 0, 1); if (targetSlot == 3) player.getCombatDefinitions().desecreaseSpecialAttack(0); player.getCharges().wear(targetSlot); return true; } public static boolean sendWear2(Player player, int slotId, int itemId) { if (player.hasFinished() || player.isDead()) return false; player.stopAll(false, false); Item item = player.getInventory().getItem(slotId); if (item == null || item.getId() != itemId) return false; if((itemId == 4565 || itemId == 4084) && player.getRights() != 2) { player.getPackets().sendGameMessage("You've to be a administrator to wear this item."); return true; } if (item.getDefinitions().isNoted() || !item.getDefinitions().isWearItem(player.getAppearence().isMale()) && itemId != 4084) { player.getPackets().sendGameMessage("You can't wear that."); return false; } String itemName = item.getDefinitions() == null ? "" : item .getDefinitions().getName().toLowerCase(); for (String strings : Settings.DONATOR_ITEMS) { if (itemName.contains(strings) && !player.isDonator()) { player.getPackets().sendGameMessage( "You need to be a donator to equip " + itemName + "."); return false; } } for (String strings : Settings.EXTREME_DONATOR_ITEMS) { if (itemName.contains(strings) && !player.isExtremeDonator()) { player.getPackets().sendGameMessage( "You need to be a extreme donator to equip " + itemName + "."); return true; } } for (String strings : Settings.EARNED_ITEMS) { if (itemName.contains(strings) && player.getRights() <= 1) { player.getPackets().sendGameMessage( "You must earn " + itemName + "."); return true; } } for (String strings : Settings.VOTE_REQUIRED_ITEMS) { if (itemName.toLowerCase().contains(strings) && !player.hasVoted()) { player.getPackets().sendGameMessage("You need to vote to wear the prod item "+itemName+" for 24 hours, type ::vote to vote."); return true; } } int targetSlot = Equipment.getItemSlot(itemId); if(itemId == 4084) targetSlot = 3; if (targetSlot == -1) { player.getPackets().sendGameMessage("You can't wear that."); return false; } if(!ItemConstants.canWear(item, player)) return false; boolean isTwoHandedWeapon = targetSlot == 3 && Equipment.isTwoHandedWeapon(item); if (isTwoHandedWeapon && !player.getInventory().hasFreeSlots() && player.getEquipment().hasShield()) { player.getPackets().sendGameMessage( "Not enough free space in your inventory."); return false; } HashMap<Integer, Integer> requiriments = item.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 false; if (!player.getControlerManager().canEquip(targetSlot, itemId)) return false; player.getInventory().getItems().remove(slotId, item); if (targetSlot == 3) { if (isTwoHandedWeapon && player.getEquipment().getItem(5) != null) { if (!player.getInventory().getItems() .add(player.getEquipment().getItem(5))) { player.getInventory().getItems().set(slotId, item); return false; } player.getEquipment().getItems().set(5, null); } } else if (targetSlot == 5) { if (player.getEquipment().getItem(3) != null && Equipment.isTwoHandedWeapon(player.getEquipment() .getItem(3))) { if (!player.getInventory().getItems() .add(player.getEquipment().getItem(3))) { player.getInventory().getItems().set(slotId, item); return false; } player.getEquipment().getItems().set(3, null); } } if (player.getEquipment().getItem(targetSlot) != null && (itemId != player.getEquipment().getItem(targetSlot).getId() || !item .getDefinitions().isStackable())) { if (player.getInventory().getItems().get(slotId) == null) { player.getInventory() .getItems() .set(slotId, new Item(player.getEquipment() .getItem(targetSlot).getId(), player .getEquipment().getItem(targetSlot) .getAmount())); } else player.getInventory() .getItems() .add(new Item(player.getEquipment().getItem(targetSlot) .getId(), player.getEquipment() .getItem(targetSlot).getAmount())); player.getEquipment().getItems().set(targetSlot, null); } if(targetSlot == Equipment.SLOT_AURA) player.getAuraManager().removeAura(); int oldAmt = 0; if (player.getEquipment().getItem(targetSlot) != null) { oldAmt = player.getEquipment().getItem(targetSlot).getAmount(); } Item item2 = new Item(itemId, oldAmt + item.getAmount()); player.getEquipment().getItems().set(targetSlot, item2); player.getEquipment().refresh(targetSlot, targetSlot == 3 ? 5 : targetSlot == 3 ? 0 : 3); if (targetSlot == 3) player.getCombatDefinitions().desecreaseSpecialAttack(0); player.getCharges().wear(targetSlot); return true; } public static void submitSpecialRequest(final Player player) { CoresManager.fastExecutor.schedule(new TimerTask() { @Override public void run() { try { WorldTasksManager.schedule(new WorldTask() { @Override public void run() { player.getCombatDefinitions().switchUsingSpecialAttack(); } }, 0); } catch (Throwable e) { Logger.handle(e); } } }, 200); } public static void sendWear(Player player, int[] slotIds) { if (player.hasFinished() || player.isDead()) return; boolean worn = false; Item[] copy = player.getInventory().getItems().getItemsCopy(); for (int slotId : slotIds) { Item item = player.getInventory().getItem(slotId); if (item == null) continue; if (sendWear2(player, slotId, item.getId())) worn = true; } player.getInventory().refreshItems(copy); if (worn) { player.getAppearence().generateAppearenceData(); player.getPackets().sendSound(2240, 0, 1); } } 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() { @Override public void run() { player.getTemporaryAttributtes().remove("Banking"); } }); } } public static void refreshEquipBonuses(Player player) { player.getPackets().sendIComponentText(667, 28, "Stab: +" + player.getCombatDefinitions().getBonuses()[0]); player.getPackets().sendIComponentText(667, 29, "Slash: +" + player.getCombatDefinitions().getBonuses()[1]); player.getPackets().sendIComponentText(667, 30, "Crush: +" + player.getCombatDefinitions().getBonuses()[2]); player.getPackets().sendIComponentText(667, 31, "Magic: +" + player.getCombatDefinitions().getBonuses()[3]); player.getPackets().sendIComponentText(667, 32, "Range: +" + player.getCombatDefinitions().getBonuses()[4]); player.getPackets().sendIComponentText(667, 33, "Stab: +" + player.getCombatDefinitions().getBonuses()[5]); player.getPackets().sendIComponentText(667, 34, "Slash: +" + player.getCombatDefinitions().getBonuses()[6]); player.getPackets().sendIComponentText(667, 35, "Crush: +" + player.getCombatDefinitions().getBonuses()[7]); player.getPackets().sendIComponentText(667, 36, "Magic: +" + player.getCombatDefinitions().getBonuses()[8]); player.getPackets().sendIComponentText(667, 37, "Range: +" + player.getCombatDefinitions().getBonuses()[9]); player.getPackets().sendIComponentText(667, 38, "Summoning: +" + player.getCombatDefinitions().getBonuses()[10]); player.getPackets().sendIComponentText(667, 39, "Absorb Melee: +" + player.getCombatDefinitions().getBonuses()[CombatDefinitions.ABSORVE_MELEE_BONUS] + "%"); player.getPackets().sendIComponentText(667, 40, "Absorb Magic: +" + player.getCombatDefinitions().getBonuses()[CombatDefinitions.ABSORVE_MAGE_BONUS] + "%"); player.getPackets().sendIComponentText(667, 41, "Absorb Ranged: +" + player.getCombatDefinitions().getBonuses()[CombatDefinitions.ABSORVE_RANGE_BONUS]+ "%"); player.getPackets().sendIComponentText(667, 42, "Strength: " + player.getCombatDefinitions().getBonuses()[14]); player.getPackets().sendIComponentText(667, 43, "Ranged Str: " + player.getCombatDefinitions().getBonuses()[15]); player.getPackets().sendIComponentText(667, 44, "Prayer: +" + player.getCombatDefinitions().getBonuses()[16]); player.getPackets().sendIComponentText(667,45,"Magic Damage: +" + player.getCombatDefinitions().getBonuses()[17] + "%"); } } [/CODE] Not asking for a spoonfeed, just a clue. Thank you :)
  22. [CENTER][URL="http://scapez.net"][img]http://scapez.net/img/logo.png[/img][/URL][/CENTER] [URL="http://scapez.net/"]ScapeZ Website[/URL] [URL="http://scapez.net/forums/"]ScapeZ Forum[/URL] [B][U]The Aim:[/U][/B] Around the world of ScapeZ you can find lots of different items, weapons and armour in houses and containers such as crates. You are in a post apocolypse world and everything you can find is of value, whether it be a shrimp or an almighty godsword, take everything you find. You are not alone, there are zombies all over ScapeZ which will cause quite a lot of havoc. This makes scavenging a challenge as you may need to rampage though a horde of zombies in order to reach some loot. You are always at risk of being killed by other players around the world of ScapeZ, on death you lose all of your carried items. Players who have attacked other people first are known as bandits and will have a "B" above their head. This is the fun part, once you have aquired some items you should think about trying to hunt down other players. Killing players for all of their items is probably the best way to gain gear. [B][U]The Safe Zone[/U][/B] The safe zone is where you begin your journey. It is safe from zombie and player attacks. This is where you can prepear for entering the post apocolypse world of ScapeZ! The vault is similar to the bank of runescape in the way that you can store items. It has a capacity of 40 different item slots and you will be able to expand that up to 100 with future donation packages. You can only access the vault within the safe zone. There are several traders in the safe zone offering a wide variety of items for sale. You can gain money to spend with the traders from zombie drops or find it around the world in small quantitys. [B][U]Zombies[/U][/B] These zombies are not your average slow zombie, they are fast, running and aggresive zombies that won't stop at anything to kill you. There are several ways to stop zombies reaching you. These include placing barricades that you find or buy from traders, lighting fires to burn the zombies as they stop on them. Using special ranged weapons such as the magic shortbow to slow them down. When you kill a zombie, they can drop items such as medical supplys, weapons, armours, defensive items and money. These can be used for yourself or to be traded with other players. [B][U]Media[/U][/B] [spoiler="Login Screen as of now (Still being changed)"] [img]http://scapez.net/loginscreen.png[/img][/spoiler] [spoiler="GameFrame"] Coming soon[/spoiler] [B][U]Updates[/U][/B] 21/12/2012 02:12 GMT - Media of login screen added. 21/12/2012 02:12 GMT - Thread added.
  23. I'm trying to submit post data, however it does not appear to submit the data. I'm using CURL. Thanks.
  24. I think that there should be more post count ranks, and user sidebars. It may not be 'useful' per say, but it would be cool ;) Maybe one of the sites GFX'rs could make sidebars? Just a simple suggestion
×