Jump to content

Taras

Member
  • Content count

    26
  • Joined

  • Last visited

About Taras

  • Rank
    Bronze Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Taras

    562 Null shield

    Hello, I'm trying to make the dragon breath from dragons hurt users who don't have a anti-dragon fire shield. This code below works funky. If a player has the shield equipment, the breath will not hit hard and if a player uses a different shield, you will get damaged a lot. However, if a player has NO shield at all, the attack will not hit at all. Any idea why? if (player.getEquipment().get(Equipment.SLOT_SHIELD).getId() == 1540 || player.getEquipment().get(Equipment.SLOT_SHIELD).getId() == 11283) { player.fireHit(Misc.random(15)); player.getActionSender().sendMessage("Your shield absorbs most of the fire."); } else { player.fireHit(35 + Misc.random(30)); player.getActionSender().sendMessage("You are horribly burned by the dragons fire breath."); }
  2. Taras

    [562] NPC clip

    Do you by any chance have a download link?
  3. Taras

    [562] NPC clip

    My source currently has like a half assed no clip system. Basically, it reads objects X and Y coords from a file. Does anyone know of a way to make it read objects from the cache, or has a full file of objects and their coords? This is the cloudIn source, which as the Nocliphandler.java if anyone is familiar with it. I don't think I've seen anyone with full NPC clipping on at 562 except like Dragonkk, but I don't think he ever released it. Any help would be appreciated!
  4. Thank you sir. Works like a charm now.
  5. I'm trying to make a lootable chest that gives random items etc... This is my code at the moment. final static java.util.Random RANDOM = new java.util.Random(); static int[][] medium = {{2677, 1}, {2678, 1}, {2679, 1}, {2680, 1}, {987, 1}, {985, 1}, {4153, 1}, {11256, 1}, {1305, 1}, {1377, 1}, {4587, 1}}; static int[] mediums = medium[RANDOM.nextInt(medium.length)]; player.getInventory().addItem(mediums[0], mediums[1]); When I loot the chest, it gives me a random item from the array. My problem is that if I loot the chest again, it gives me the same item over and over. I'll get a different item if I restart the server. But it will stick to that item. How do I make it give me random item every time?
  6. Taras

    562 Hit Icons

    So I have a 562 loading 668 server. There is a problem with the hit icons though. I go to armadyl boss, which has the minions added, and all of them use different attack styles: range, mage, melee. If I get hit at the same time by all 3, my client crashes. I did some troubleshooting removed 1 of the different attack styles and my client didnt crash. Is there a way to get it to not crash when you get hit by 3 different attack styles? I dont think my client/source support 3 different hit icons on a player at once.
  7. Taras

    Help with C#

    I did this and it worked static void Main(string[] args) { bool quitApplication = false; double gradePointAverage; double creditHours; do { Console.WriteLine("Hit 'ctrl c' to exit application!"); Console.WriteLine(); Console.Write("Please enter the grade point average: "); gradePointAverage = Convert.ToDouble(Console.ReadLine()); Console.Write("Please enter total credit hours: "); creditHours = Convert.ToDouble(Console.ReadLine()); if (creditHours > 72 && gradePointAverage > 2.5) { Console.WriteLine("Congratulations, you are eligible to graduate!"); Console.WriteLine(); } else if (gradePointAverage < 2.5) { Console.WriteLine("You need to work on your grade point average before you can graduate!"); Console.WriteLine(); } else { Console.WriteLine("You do not have enough hours to graduate."); Console.WriteLine(); } } while (!quitApplication); } Is this the right way to do it?
  8. Taras

    Help with C#

    So I have a homework assignment to write a basic code. I did the easy part, but the second question is asking this: Modify problem 1. Use a loop to allow the user to check graduation eligibility for as many users as they would. Explain the type of loop that used. Explain why you chose that type of loop? No pseudocode required This is problem 1: static void Main(string[] args) { double gradePointAverage; double creditHours; Console.Write("Please enter the grade point average: "); gradePointAverage = Convert.ToDouble(Console.ReadLine()); Console.Write("Please enter total credit hours: "); creditHours = Convert.ToDouble(Console.ReadLine()); if (creditHours > 72 && gradePointAverage > 2.5) { Console.WriteLine("Congratulations, you are eligible to graduate!"); } else if (gradePointAverage < 2.5) { Console.WriteLine("You need to work on your grade point average before you can graduate!"); } else { Console.WriteLine("You do not have enough hours to graduate."); } } [/code]I don't understand how the user can input over and over for as many times as I want. Don't loops stop once the condition is false? Anyone help me out?
  9. Taras

    Cache/Sprite editors

    So I got my hands on Dragonkk's cache editor and Steve's sprite editor. I had these tools like a year ago and they worked fine. Today, I ran the cache editor to change some item colors, but the editor doesn't show me the items in the GUI. Image below, click the super small white square thing... idk why its like that lol Also, steve's sprite editor, when I go to pack the cache, I get the error, corrupt gzip trailer. Does anyone know what exactly this means and how to fix it?
  10. Taras

    562 Client Jar

    Where do I go to get to that screen? EDIT: I found it and did everything you said but it still won't work. Edit 2: Tried it again and it worked, thanks a lot!
  11. Taras

    562 Java 8

    So I compiled my source and client with jdk/jre 1.8.0_60. I can log in fine, but once I log out and try to log back in, I get the message "error loading your profile.." I created a new account to see if it was just my older account, but it happens with every account. Anyone know why? Does it have anything to do with the way 562's load character profiles, if so, is there a fix? Edit: Does this have anything to do with the .dll files in the cache folder? Like jagmisc64, jagmisc, jaggl, and sw3d? Is there anyway to get updated versions of those?
  12. Taras

    562 Client Jar

    So, I have recently jarred my 562 loading 663 client and everything works fine besides HD. I always get the "unable to enter that mode" whenever I try. If I run the .bat on the client, HD works fine. I have all the .jars in my lib folder: clientlibs, com, gluegen-rt, and jogl. Anyone know a solution to this small problem?
  13. Taras

    Help with random item

    I always get error js5io in my client when I run it with the newest java. I compile with the newest java too.
  14. Taras

    Help with random item

    My server won't run with the newest Java version. If you know how to make a 562 RS2HD run with the newest version, please do tell
×