Jump to content

Search the Community

Showing results for tags 'spoon'.



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 2 results

  1. Classes Modified: ActionHandler.java PlayerAssistant.java ClickItem.java Step1: Find all the other cases and put this under any other case located in [B][I][U]ActionHandler.java[/U][/I][/B] [CODE] case 405: if (c.getItems().freeSlots() >= 1) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); } break;[/CODE] Contents Of This Code: Case 405: = Item ID Of Casket if (c.getItems().freeSlots() >= 1) { = Making Sure Players Have 1 Space Free To Open A Casket c.getItems().deleteItem(405, 1); = Deletes The Item From The Inventory So Players Don't Have Unlimited Caskets c.getItems().addItem(c.getPA().randomCasket(), 1); = Basically Tells PlayerAssistant To Generate A Random Item In Which You'll Be Able To Edit Soon. [B][I][U]Next Open PlayerAssistant.java[/U][/I][/B] Now for those who have this it shouldn't be hard at all you should see static ints such as for example: [CODE] public static int Barrows[] = {4708,[/code] And so on. This is where you can add the random items you receive from the casket. So along with the other static int's put the following: [CODE]public static int Casket[] = {4151,14484,11694,11724};[/CODE] 4151 = Whip which is a random drop from the casket now you may change this and make the list longer by doing: 14484,11694, And so on. Once you have the drops you wish to have: Put this public int in: [CODE] public int randomCasket() { return Casket[(int)(Math.random()*Casket.length)]; }[/CODE] This makes sure the item you receive is also random Were Done With PlayerAssistant.java Open [B][I][U]ClickItem.java[/U][/I][/B] Basically here find all the other items like for example: [CODE] if(itemId == 8012) { c.getItems().deleteItem(8012,c.getItems().getItemSlot(8012),1); c.getPA().teleTabTeleport(2546, 3112, 0, "teleTab"); }[/CODE] Under these items put in the following: [CODE] if(itemId == 405) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); c.sendMessage("You Received A Random Item!"); }[/code] 405 = Item ID Which Is The Casket c.getItems().addItem(c.getPA().randomCasket(), 1); = Is The Random Item You Receive From The Casket Why add this in ClickItem? Because without it you can't open the Casket. Hope you guys enjoyed this fun little snippet if you want thanks and rep and w/e <3
  2. Does spoon feeding teach? Does it show people how to do things? Or are people just wanting to get free stuff done? You chose you discuss? No crap talk or flaming.
×