Thread: [content] Rotten Potato

Results 1 to 9 of 9
  1. #1 [content] Rotten Potato 
    A good beginning makes a good end.
    Elon Musk's Avatar
    Join Date
    Mar 2013
    Posts
    663
    Thanks given
    86
    Thanks received
    72
    Rep Power
    87
    Removed, figured people would want it.
    Attached image
    Attached image
    Attached image
     

  2. #2  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Attached image
     

  3. #3  
    A good beginning makes a good end.
    Elon Musk's Avatar
    Join Date
    Mar 2013
    Posts
    663
    Thanks given
    86
    Thanks received
    72
    Rep Power
    87
    Quote Originally Posted by ipkmills View Post
    Attached image
    bit of spam eh?
    Attached image
    Attached image
    Attached image
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Dave Chappelle View Post
    bit of spam eh?
    Sorry mate got fed up by All those idiotic threads.
     

  5. #5  
    A good beginning makes a good end.
    Elon Musk's Avatar
    Join Date
    Mar 2013
    Posts
    663
    Thanks given
    86
    Thanks received
    72
    Rep Power
    87
    Quote Originally Posted by ipkmills View Post
    Sorry mate got fed up by All those idiotic threads.
    Contributing to the community is idiotic?
    Attached image
    Attached image
    Attached image
     

  6. #6  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    This was in Avalon lol

    Avalons rotten potato

    Spoiler for Directly from Avalon:
    Code:
    package com.rs.game.player.content;
    
    import com.rs.cache.loaders.NPCDefinitions;
    import com.rs.game.Hit;
    import com.rs.game.Hit.HitLook;
    import com.rs.game.World;
    import com.rs.game.item.Item;
    import com.rs.game.player.Player;
    import com.rs.game.player.actions.ClearBank;
    
    
    public class RottenPotato {
    
    
        public static final int EAT = 14, HEAL = 67, CM_TOOL = 5, USE = -1, COMMANDS = 90,
                DROP = 6, EXAMINE = 32;
        
        public static void handlePotato(Player player, Item item, int packetId) {
            System.out.println("Item: " + item.getId() + " Packet: " + packetId);
            
            switch (packetId) {
            case EAT:
                player.getDialogueManager().startDialogue("Potato_Op1", item);
                System.out.println("Dialogue sent.");
                break;
            case HEAL:
                heal(player);
                break;
            case CM_TOOL: //Configurations Management
                CM_Tool(player);
                break;
            case USE:
                //something here
                break;
            case COMMANDS:
                //
                break;
            case DROP:
                player.getInventory().deleteItem(item);
                player.getPackets().sendGameMessage("Too late! It's already gone.", true);
                break;
            case EXAMINE:
                player.getPackets().sendGameMessage("Yuk!", true);
                break;
            }
        }
        
        public static void eat(Player player, int option) {
            player.sm("Option: " + option);
            
            if (option == 11) {
                player.getPackets().sendGameMessage("You have set the AFK timer to false.", false);
            
            } else if (option == 13) {
                player.forceLogout();
            
            } else if (option == 14) {
                ClearBank.clearBank(player);
                player.getPackets().sendGameMessage("Your bank has been emptied.", true);
            
            } else if (option == 15) {
                player.applyHit(new Hit(player, player.getHitpoints(), HitLook.POISON_DAMAGE));
            
            } else if (option == 16) {
                int id = 1471;
                String name = NPCDefinitions.getNPCDefinitions(id).getName();
                World.spawnNPC(id, player, -1, true, true);
                player.getPackets().sendGameMessage("Spawned aggressive NPC: " + name + ".", true);
            }
        }
        
        public static void heal(Player player) {
            player.getPrayer().calcRestorePrayer();
            if (player.getPoison().isPoisoned()) {
                player.getPoison().makePoisoned(0);
                player.getPackets().sendGameMessage("Your poison has been cured.", true);
            }
            player.setRunEnergy(100);
            player.getCombatDefinitions().resetSpecialAttack();
            player.getAppearence().generateAppearenceData();
            player.heal(player.getMaxHitpoints());
            player.getPackets().sendGameMessage("You have been healed.", true);
        }
        
        public static void CM_Tool(Player player) {
            //display configs of different stuff..
        }
        
        public static void Commands(Player player) {
            //nothing yet
        }
        
        public static void useOnPlayer(Player player, Player target) {
            
        }
    }

    Potato_op1

    Code:
    package com.rs.game.player.dialogues;
    
    import com.rs.game.player.content.RottenPotato;
    
    
    public class Potato_Op1 extends Dialogue {
    
    
        @Override
        public void start() {
            sendOptionsDialogue("Option 1", "Keep me logged in.", "Kick me out.", "Wipe my bank.", "Kill me.", "Spawn agressive NPC.");
        }
    
    
        @Override
        public void run(int interfaceId, int componentId) {
            if (stage == -1) {
                RottenPotato.eat(player, componentId);
                end();
            }
        }
    
    
        @Override
        public void finish() {
        }
    }

    Give credit to the right people instead of claiming it is your work.
     

  7. #7  
    Banned [content] Rotten Potato Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by Tristam View Post
    This was in Avalon lol

    Avalons rotten potato

    Spoiler for Directly from Avalon:
    Code:
    package com.rs.game.player.content;
    
    import com.rs.cache.loaders.NPCDefinitions;
    import com.rs.game.Hit;
    import com.rs.game.Hit.HitLook;
    import com.rs.game.World;
    import com.rs.game.item.Item;
    import com.rs.game.player.Player;
    import com.rs.game.player.actions.ClearBank;
    
    
    public class RottenPotato {
    
    
        public static final int EAT = 14, HEAL = 67, CM_TOOL = 5, USE = -1, COMMANDS = 90,
                DROP = 6, EXAMINE = 32;
        
        public static void handlePotato(Player player, Item item, int packetId) {
            System.out.println("Item: " + item.getId() + " Packet: " + packetId);
            
            switch (packetId) {
            case EAT:
                player.getDialogueManager().startDialogue("Potato_Op1", item);
                System.out.println("Dialogue sent.");
                break;
            case HEAL:
                heal(player);
                break;
            case CM_TOOL: //Configurations Management
                CM_Tool(player);
                break;
            case USE:
                //something here
                break;
            case COMMANDS:
                //
                break;
            case DROP:
                player.getInventory().deleteItem(item);
                player.getPackets().sendGameMessage("Too late! It's already gone.", true);
                break;
            case EXAMINE:
                player.getPackets().sendGameMessage("Yuk!", true);
                break;
            }
        }
        
        public static void eat(Player player, int option) {
            player.sm("Option: " + option);
            
            if (option == 11) {
                player.getPackets().sendGameMessage("You have set the AFK timer to false.", false);
            
            } else if (option == 13) {
                player.forceLogout();
            
            } else if (option == 14) {
                ClearBank.clearBank(player);
                player.getPackets().sendGameMessage("Your bank has been emptied.", true);
            
            } else if (option == 15) {
                player.applyHit(new Hit(player, player.getHitpoints(), HitLook.POISON_DAMAGE));
            
            } else if (option == 16) {
                int id = 1471;
                String name = NPCDefinitions.getNPCDefinitions(id).getName();
                World.spawnNPC(id, player, -1, true, true);
                player.getPackets().sendGameMessage("Spawned aggressive NPC: " + name + ".", true);
            }
        }
        
        public static void heal(Player player) {
            player.getPrayer().calcRestorePrayer();
            if (player.getPoison().isPoisoned()) {
                player.getPoison().makePoisoned(0);
                player.getPackets().sendGameMessage("Your poison has been cured.", true);
            }
            player.setRunEnergy(100);
            player.getCombatDefinitions().resetSpecialAttack();
            player.getAppearence().generateAppearenceData();
            player.heal(player.getMaxHitpoints());
            player.getPackets().sendGameMessage("You have been healed.", true);
        }
        
        public static void CM_Tool(Player player) {
            //display configs of different stuff..
        }
        
        public static void Commands(Player player) {
            //nothing yet
        }
        
        public static void useOnPlayer(Player player, Player target) {
            
        }
    }

    Potato_op1

    Code:
    package com.rs.game.player.dialogues;
    
    import com.rs.game.player.content.RottenPotato;
    
    
    public class Potato_Op1 extends Dialogue {
    
    
        @Override
        public void start() {
            sendOptionsDialogue("Option 1", "Keep me logged in.", "Kick me out.", "Wipe my bank.", "Kill me.", "Spawn agressive NPC.");
        }
    
    
        @Override
        public void run(int interfaceId, int componentId) {
            if (stage == -1) {
                RottenPotato.eat(player, componentId);
                end();
            }
        }
    
    
        @Override
        public void finish() {
        }
    }

    Give credit to the right people instead of claiming it is your work.
    In his defense he never claimed it was his, but I am against releasing things that don't belong to you.
     

  8. #8  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    Quote Originally Posted by -3clipse- View Post
    In his defense he never claimed it was his, but I am against releasing things that don't belong to you.
    well you're right but

    /* * @author Chad S. ---- Dave Chappelle R.S * 2/05/2016 */
    made me use the word "claim" haha =p
     

  9. Thankful user:


  10. #9  
    Banned [content] Rotten Potato Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by Tristam View Post
    well you're right but



    made me use the word "claim" haha =p
    Ah didn't even notice
     


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. [PI] More rotten potato commands!
    By Anfernio in forum Snippets
    Replies: 20
    Last Post: 04-04-2012, 06:01 AM
  2. Rotten potato 'Heal' option snippet.
    By Anfernio in forum Snippets
    Replies: 15
    Last Post: 11-25-2011, 05:02 AM
  3. The Rotten Potato - Being Jagex Mod For A Minute
    By Unwatchable in forum Media
    Replies: 9
    Last Post: 08-24-2011, 11:02 PM
  4. [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
  •