Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive

    Adding Christmas Crackers to PI




    Go to server/model/players/packets and open up ItemOnPlayer.java

    You should see something like this:
    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    import server.model.players.PlayerHandler;
    
    public class ItemOnPlayer implements PacketType {
    
    	@override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int fromInterface = c.getInStream().readUnsignedWordA();
    		int otherPlayerId = c.getInStream().readUnsignedWord();
    		int useItemId = c.getInStream().readUnsignedWord();
    		int useItemSlot = c.getInStream().readSignedWordBigEndian();
    		if(c.playerRights > 2) {
    			System.out.println("Player: "+c.playerId+" used  item: "+useItemId+" Slot: "+useItemSlot+" Interface: "+fromInterface);
    		}
    		if((c.playerItems[useItemSlot]-1) != useItemId) {
    			return;
    		}
    		switch(useItemId) {
    		}
    
    	}
    
    }
    Under
    Code:
    switch(useItemId) {
    add this:
    Code:
    			case 962:
    				c.gfx0(176);
    				c.startAnimation(451);
    				c.sendMessage("You pull the Christmas Cracker...");
    				o.sendMessage("You pull the Christmas Cracker...");
    				c.getItems().deleteItem(useItemId, 1);
    				if(Misc.random(1) == 1) {
    					o.forcedText = "Yay I got the Cracker!";
    					o.forcedChatUpdateRequired = true;
    					o.getItems().addItem((1038 + Misc.random(5)*2), 1);
    				} else {
    					c.forcedText = "Yay I got the Cracker!";
    					c.forcedChatUpdateRequired = true;	
    					c.getItems().addItem((1038 + Misc.random(5)*2), 1);			
    				}
    				c.turnPlayerTo(o.absX, o.absY);
    				break;
    Voila, you are done.
    Last edited by Shakugan no Shana; 03-20-2011 at 01:07 PM.

  2. #2
    kickface2's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    20
    My Mood
    Aggressive
    What is PI?

  3. #3
    Superpunt's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    2,396
    Reputation
    31
    Thanks
    115
    My Mood
    Mellow
    Player inventory, right?


  4. #4
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Project Insanity, a server base.

  5. #5
    Versa's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    🍃🔥💨
    Posts
    9,006
    Reputation
    1708
    Thanks
    1,576
    My Mood
    Busy
    Nice guide maybe Post it in runescape general next time this is for more of hacks amd there more rsps stuff thanks!

  6. #6
    Superpunt's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    2,396
    Reputation
    31
    Thanks
    115
    My Mood
    Mellow
    Actually, there was a RSPS section. But it was inactive. Newest thread was like 4 months old when the forum got deleted.

    Runescape main is meant for bots and PS's now. General is meant for game-related bullshit, game-related questions and bragging.
    Last edited by Superpunt; 03-20-2011 at 01:27 PM.


  7. #7
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Quote Originally Posted by Versa View Post
    Nice guide maybe Post it in runescape general next time this is for more of hacks amd there more rsps stuff thanks!
    You can't hack runescape

    kthxbai

  8. #8
    Versa's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    🍃🔥💨
    Posts
    9,006
    Reputation
    1708
    Thanks
    1,576
    My Mood
    Busy
    Oh sorry i mean bots

  9. #9
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Quote Originally Posted by Versa View Post
    Oh sorry i mean bots
    If anything RSPS closer to hacking than Bots because you at least write your own content with RSPS.

  10. #10
    Superpunt's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    2,396
    Reputation
    31
    Thanks
    115
    My Mood
    Mellow
    Quote Originally Posted by Sokka View Post


    If anything RSPS closer to hacking than Bots because you at least write your own content with RSPS.
    With scripts you do actually put in effort by coding


  11. #11
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Quote Originally Posted by Superpunt View Post
    With scripts you do actually put in effort by coding
    But how many people write their own scripts

  12. #12
    Superpunt's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    2,396
    Reputation
    31
    Thanks
    115
    My Mood
    Mellow
    Quote Originally Posted by Sokka View Post


    But how many people write their own scripts
    There have been coders in the section. But they left for obvious reasons. No1 used their scripts.


  13. #13
    Versa's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    🍃🔥💨
    Posts
    9,006
    Reputation
    1708
    Thanks
    1,576
    My Mood
    Busy
    Yeah agreed but i think it would be better to have. Rsps section it has been brought up before but dave wont make it... So i thought it would be better in general post the rsps stuff and here bots and stuff lime that

  14. #14
    Shakugan no Shana's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    5,213
    Reputation
    176
    Thanks
    830
    My Mood
    Pensive
    Quote Originally Posted by Versa View Post
    Yeah agreed but i think it would be better to have. Rsps section it has been brought up before but dave wont make it... So i thought it would be better in general post the rsps stuff and here bots and stuff lime that
    We had one but it died a year or so back.

  15. #15
    Superpunt's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    2,396
    Reputation
    31
    Thanks
    115
    My Mood
    Mellow
    Quote Originally Posted by Sokka View Post


    We had one but it died a year or so back.
    Somewhere in november 2010 Dave killed it.


Page 1 of 2 12 LastLast