Thread: [PI] More rotten potato commands!

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 [PI] More rotten potato commands! 
    Registered Member
    Anfernio's Avatar
    Join Date
    Jul 2008
    Age
    23
    Posts
    414
    Thanks given
    23
    Thanks received
    39
    Rep Power
    221
    Please check out my other thread here: [Only registered and activated users can see links. ]



    Known bugs: QP cape deletes your other cape if you have one on. Read why it kicks you out. If you know how to fix, please post the fix here and I'll update my thread. Other than that, none are known.


    Wipe bank method has been added in thanks to Pea2nuts. Was too lazy to do it myself.



    In class PlayerAssistant:

    Code:
    	public void handleRSHD(int gloryId) {
    		c.getDH().sendOption5("Nex kills, Task System, Fishing Comp, T Trek, Debug, Evil Tree", "Capes, Smelting, Cutscences, Headgear, Statue", "Frem Sagas, NPC info, Photo, LFM, PVP victim", "Macro Events", "Normal");
    		c.usingGlory = true;
    		c.usingROD = false;
    		c.usingGamesNeck = false;
    	}
    	
    	public void handleCommands(int gloryId) {
    		c.getDH().sendOption5("Keep me logged in.", "Kick me out.", "Never mind logging, just wipe my bank.", "QP cape please!", "QP hood please!");
    		c.usingGlory = true;
    		c.usingROD = false;
    		c.usingGamesNeck = false;
    	}
    
    	public void handleExtra(int gloryId) {
    		c.getDH().sendOption2("Open stuff", "Star stuff");
    		c.usingGlory = true;
    		c.usingROD = false;
    		c.usingGamesNeck = false;
    	}

    Add those three methods.

    In ItemClick3, under:
    Code:
    		switch (itemId) {
    add...

    Code:
    		case 5733:
    			if(c.playerRights == 3) {
    			c.getPA().handleCommands(itemId);
    			}
    			break;

    In ItemClick2, under
    Code:
    		switch (itemId) {
    Add..

    Code:
    			case 5733:
    				if(c.playerRights == 3) {
    				c.getPA().handleExtra(itemId);
    				}
    			break;


    Now, they will open interfaces. For the good stuff!

    In class ClickingButtons

    Code:
    			/*
    			 * Rotten potato shit
    			*/
    			
    			case 9190: //Commands -> Keep me logged in
    				if(c.playerRights <= 1) {
    				c.sendMessage("You do not have sufficient permissions to do that.");
    				c.sendMessage("Please send a message to Anfernio telling how you received this.");
    				return;
    				} else {
    				c.sendMessage("Your account has not been kicked.");
    				c.getPA().removeAllWindows();
    				}
    			break;
    
    			case 9191: // Commands -> Kick me out
    				if(c.playerRights <= 1) {
    				c.sendMessage("You do not have sufficient permissions to do that.");
    				c.sendMessage("Please send a message to Anfernio telling how you received this.");
    				return;
    				} else {
    				if(c.playerRights > 1 && !c.inWild()) {
    				c.logout();
    				}
    				}
    			break;
    
    			case 9192: //Commands -> Never mind logging, just wipe my bank.
    				if(c.playerRights <= 1) {
    				c.sendMessage("You do not have sufficient permissions to do that.");
    				c.sendMessage("Please send a message to Anfernio telling how you received this.");
    				return;
    				} else {
    				if(c.playerRights > 1 && !c.inWild()) {
    				for (int i = 0; i < c.bankItems.length; i++) { // Setting bank items
    				c.bankItems[i] = 0;
    				c.bankItemsN[i] = 0;
    				}
    				c.getItems().resetBank();
    				c.getItems().resetItems(5064);
    				c.sendMessage("Your bank has been wiped!");
    				c.getPA().removeAllWindows();
    				}
    				}
    			break;
    
    			case 9193: //QP cape please!
    				c.sendMessage("Putting QP cape in your cape slot...");
    				c.getPA().removeAllWindows();
    				c.playerEquipment[c.playerCape] = 9813;
    				c.getPA().requestUpdates();
    				c.logout(); //If this isn't done, cape is bugged (cannot be dropped/banked/worn)
    			break;
    			
    			case 9194: //Qp hood please!
    				c.sendMessage("Putting QP hood in your hood slot...");
    			break;
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    25
    Posts
    4,432
    Thanks given
    892
    Thanks received
    1,525
    Rep Power
    3228
    Looks nice, thanks for this.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #3  
    Registered Member
    Tamatea's Avatar
    Join Date
    Aug 2010
    Posts
    1,283
    Thanks given
    379
    Thanks received
    334
    Rep Power
    2318
    looks pretty cool.

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  5. #4  
    Registered Member
    Wale's Avatar
    Join Date
    Jul 2011
    Posts
    921
    Thanks given
    279
    Thanks received
    149
    Rep Power
    238
    nice
    Edit:Where u put the last code at?
    Reply With Quote  
     

  6. #5  
    Banned
    Join Date
    Apr 2011
    Posts
    801
    Thanks given
    66
    Thanks received
    84
    Rep Power
    0
    Thanks I guess :/
    Reply With Quote  
     

  7. #6  
    Registered Member
    Anfernio's Avatar
    Join Date
    Jul 2008
    Age
    23
    Posts
    414
    Thanks given
    23
    Thanks received
    39
    Rep Power
    221
    Quote Originally Posted by starz View Post
    nice
    Edit:Where u put the last code at?
    class ClickingButtons
    Reply With Quote  
     

  8. #7  
    q.q


    Join Date
    Dec 2010
    Posts
    6,535
    Thanks given
    1,072
    Thanks received
    3,534
    Rep Power
    4752
    are these the actual dialogues from the potato?
    Reply With Quote  
     

  9. #8  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    19
    Posts
    16,489
    Thanks given
    3,387
    Thanks received
    7,726
    Rep Power
    5000
    Oh lord lol thanks for the snippet wish that video was never released now

    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  10. #9  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    19
    Posts
    16,489
    Thanks given
    3,387
    Thanks received
    7,726
    Rep Power
    5000
    Quote Originally Posted by Pea2nuts View Post
    dropitem.java


    Code:
    		if(itemId == 5733){
    		c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);
    		c.sendMessage("Too late - it's gone!");
    }

    Config.java Untradeable items add the id is easier?

    Undroppable item etc.

    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  11. #10  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    lol still amuses me how they use such a shit item. thanks for the release though

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Rotten potato 'Heal' option snippet.
    By Anfernio in forum Snippets
    Replies: 15
    Last Post: 11-25-2011, 05:02 AM
  2. [JMod Item]Rotten Potato
    By K4rn4ge in forum Models
    Replies: 19
    Last Post: 08-10-2011, 01:27 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •