Thread: Flower Poker

Results 1 to 5 of 5
  1. #1 Flower Poker 
    Registered Member
    Join Date
    May 2016
    Posts
    639
    Thanks given
    260
    Thanks received
    66
    Rep Power
    56
    BEFORE YOU READ * I have searched and found a few tuts but did not work *


    I am looking for a system for flower poker that fully works.


    If you could help me would be great thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by TheAmerican View Post
    BEFORE YOU READ * I have searched and found a few tuts but did not work *


    I am looking for a system for flower poker that fully works.


    If you could help me would be great thanks.
    Could you send me a link to the base you are using, so I can work in that base.
    I'll see if I can create this. I don't have a lot of time, but if I have any then I'll be working on this
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    abyssalps (released) has flower poker if u know how to rip stuff
    None.
    Reply With Quote  
     

  4. #4  
    Forum Moderator


    Join Date
    Dec 2016
    Posts
    312
    Thanks given
    166
    Thanks received
    177
    Rep Power
    1089
    Ripped straight from AbyssalPS.
    Code:
    package rs2.abyssalps.content;
    
    import rs2.Server;
    import rs2.abyssalps.model.Boundary;
    import rs2.abyssalps.model.player.Client;
    import rs2.abyssalps.model.objects.Object;
    import rs2.util.tools.event.CycleEvent;
    import rs2.util.tools.event.CycleEventContainer;
    import rs2.util.tools.event.CycleEventHandler;
    
    public class FlowerPoking {
    
    	private static final int[] FLOWERS = {
    
    	2981, 2983, 2980, 2984, 2985, 2986, 2987, 2988
    
    	};
    
    	/**
    	 * Plant mithril seeds which turns into a flower
    	 * 
    	 * @param player
    	 */
    	public static void plantSeed(Client player, int id, int slot) {
    
    		if (!player.getItems().playerHasItem(id, 1)) {
    			return;
    		}
    
    		if (!player.inGambleZone()) {
    			player.sendMessage("You can't plant a seed here.");
    			player.sendMessage("Please go to @blu@::gamble to plant your seeds.");
    			return;
    		}
    
    		if (System.currentTimeMillis() - player.lastPlant < 2000) {
    			return;
    		}
    
    		if (Server.objectManager.objectExists(player.getX(), player.getY())) {
    			player.sendMessage("A flower is already planted here.");
    			return;
    		}
    
    		player.getItems().deleteItem(id, slot, 1);
    
    		player.startAnimation(827);
    
    		int flower = FLOWERS[(int) (Math.random() * FLOWERS.length)];
    
    		new Object(flower, player.getX(), player.getY(), player.heightLevel, 0,
    				10, -1, 60);
    
    		player.getPA().playerWalk(player.pathX - 1, player.pathY, false);
    
    		player.lastPlant = System.currentTimeMillis();
    
    	}
    }
    Handling the item click, go into ClickItem.java and paste this

    Code:
    if (itemId == 299) {
    			FlowerPoking.plantSeed(c, itemId, itemSlot);
    			return;
    		}
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    This is solved, I made a similar system to the one from abyssalps.
    Attached image
    Reply With Quote  
     


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. Replies: 4
    Last Post: 09-17-2016, 09:29 PM
  2. Flower poker Help PLZ
    By Kjloveday in forum Help
    Replies: 1
    Last Post: 04-17-2016, 01:29 AM
  3. Replies: 10
    Last Post: 11-22-2015, 10:11 PM
  4. Replies: 3
    Last Post: 11-18-2015, 05:49 AM
  5. Interested in flower poker 2tie loss chances
    By AGtester in forum Homework
    Replies: 5
    Last Post: 11-13-2012, 05:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •