Jump to content
News Ticker
  • RUNESUITE NEWS!
  • Toplist & Leakathon out now!

 Sadboys

 Donator
  • Content Count

    27
  • Joined

  • Last visited

  • Days Won

    1
  • Points

    5,720

Sadboys last won the day on September 14 2018

Sadboys had the most liked content!

Community Reputation

5

About Sadboys

  • Rank
    Mithril Warrior

Recent Profile Visitors

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

  1. I like this! Will check it out.
  2. Good luck with this guys, if any hosting is needed I'll give you super flat rates. And Jesus Christ Gangsta I haven't seen you in a while
  3. Over a year later and he was never to be seen again 😎
  4. Bit of a half-assed thread and you spelt your domain name wrong, however it's nice to see more sites using G2A pay, PayPal is ancient history now for most of us (especially with how they fuck you with conversions and disputes). Good luck with this! Will leave you a vouch if I ever try.
  5. I dig bluetech, it's a serious toe tapper hahaha.
  6. This is hardly an introduction and you're advertising your server in the advertisement section already. But nonetheless, welcome!
  7. I can imagine that I'd really be feeling this after a smoke.
  8. Sadboys

    Hello

    Welcome, lots of new content coming, I'll sure you'll be able to touch up on your coding and learn a lot here!
  9. Nice addition, needs moving to [Hidden Content] though.
  10. Hello everyone, I'd like to introduce my business and also present you guys with a 10% recurring discount with every product that you buy with us. Use code RUNESUITE10 ALL WEB HOSTING PACKAGES FEATURE: - Pure SSD Space, No Hard Drives Used - - Free SSL Certificates for Everyone - - Dual Octocore Intel Xeon CPUs with Hyper Threading - - Litespeed Servers with Lighting Fast Page Loading Times - - Unlimited Bandwidth with Every Plan - - Free Website Builder - - Brand New StackCP (It's like cPanel on Cocaine) - - Business Class Email Hosting (No cPanel Relays) - - DDoS Protection - - Physical Protection - - Free Migration - View plans at [Hidden Content]
  11. Hey all, A lot of people don't like PI and I can understand why (for more experienced developers) but I personally think that it is great for beginners and is very simple to use and learn from. Here is a completely clean PI base, very slightly cleaned further by myself. Minimal, hardly any files and is only a 27.56MB package, with the client and cache included. I'm not going to post media as it is literally a stripped down package all the essential functionality login, logout, save, load, walking, running, consumables, basic skilling, clipping, a command base etc. All credits to Sanity for this base. Full Package: [Hidden Content] Enjoy!
  12. Hey all, This is a really simple tutorial for adding shift drop into your stock Project Insanity (PI) client. It's a cool feature, loved by all RuneScape players. In your Client.java (inside src, under models.players) Add the following code public static boolean shiftPressed = false; What are we doing here? (For newcomers) Here, we are creating a boolean that we can refer back to later to check if the shift key is currently pressed. This variable will be changed by key event listeners as seen later on in this tutorial. Then use CTRL+F or your IDE search tool to find the following condition: if (j == 1 && menuActionRow > 0) { And you should see something like this (although it may vary if you are not using a fresh/stock PI): if(j == 1 && menuActionRow > 0) { int i1 = menuActionID[menuActionRow - 1]; if(i1 == 632 || i1 == 78 || i1 == 867 || i1 == 431 || i1 == 53 || i1 == 74 || i1 == 454 || i1 == 539 || i1 == 493 || i1 == 847 || i1 == 447 || i1 == 1125) { int l1 = menuActionCmd2[menuActionRow - 1]; int j2 = menuActionCmd3[menuActionRow - 1]; RSInterface class9 = RSInterface.interfaceCache[j2]; Underneath RSInterface class9 = RSInterface.interfaceCache[j2]; add: if (shiftPressed){ boolean hasDrop = false; int dropId = 0; for (int i = 0; i < menuActionName.length; i++){ if (menuActionName[i] == null) { continue; } // To check for destroyable items too if (menuActionName[i].contains("Drop") || menuActionName[i].contains("Destroy") || menuActionName[i].contains("Release")) { hasDrop = true; dropId = i; } } if (hasDrop) { doAction(dropId); return; } } What are we doing here? (For newcomers) Here, we are using the boolean shiftPressed to: firstly, check if the shift key has been pressed (which is set by the below event listeners) and we are then executing code based on the answer. If the shift key is pressed, then we are checking that the item has a drop, destroy or release option and dropping it. Now close your client.java, as we are done with this class and are moving onto another. Open RSApplet.java and search for: public final void keyPressed(KeyEvent keyevent) { And you should see: public final void keyPressed(KeyEvent keyevent) { idleTime = 0; int i = keyevent.getKeyCode(); int j = keyevent.getKeyChar(); Under this, add: if(keyevent.isShiftDown()){ client.shiftPressed = true; } Please note, if your client.java file has a capital c (Client.java), you will need to change this to Client.shiftPressed = true; What are we doing here? (For newcomers) Here we are inside the keyPressed method which deals with keys that are pressed, we are identifying the character that has been pressed and in this case, int i represents the key code of the character. So we are comparing it to KeyEvent.VK_SHIFT (the shift key), and if their codes match and we are telling the client that the shift key has been pressed and storing the answer into a boolean that we can refer back to and check on. Now search for: public final void keyReleased(KeyEvent keyevent) { You should see: public final void keyReleased(KeyEvent keyevent) { idleTime = 0; int i = keyevent.getKeyCode(); char c = keyevent.getKeyChar(); Under the last line of the above, add: if (i == KeyEvent.VK_SHIFT) { client.shiftPressed = false; } Again, please note, if your client.java file has a capital c (Client.java), you will need to change this to Client.shiftPressed = true; What are we doing here? (For newcomers) Here we are inside the keyReleased method which deals with keys that are released (unpressed), we are identifying the character that has been released and in this case, int i represents the key code of the character. So we are comparing it to KeyEvent.VK_SHIFT (the shift key), and if their codes match and we are telling the client that the shift key is no longer pressed and storing the answer into a boolean that we can refer back to and check on. _______________________________________ Now save and build your source and you will be good to go. Any questions, feel free to ask!
  13. Sadboys

    OSRS ::bank Message

    Usually it's in your command class, if the player executing the command's rights are lower than the required rights it will force that chat. It's a pretty stupid "feature" especially if it's been put into a random file. The hard code as seen above is a horrible way of doing things because then you're allowing anyone to bank regardless of their rights and it's just going to clunk up your chat packet class.
×
×
  • Create New...