Thread: Farming skill timer? PI source

Results 1 to 3 of 3
  1. #1 Farming skill timer? PI source 
    Registered Member
    Join Date
    Jul 2012
    Posts
    42
    Thanks given
    3
    Thanks received
    2
    Rep Power
    11
    So im adding farming to my server but people can fast spawn click the herb to get fast inventorys of them so how do i add a timer?
    So they only can pick one herb every second? thanks
    Reply With Quote  
     

  2. #2  
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    707
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    add in Player.java
    "public long FarmDelay;"
    then in your farmin click code
    add this
    Code:
    if (System.currentTimeMillis() - c.FarmDelay > 1000){
    Your click code here
    c.FarmDelay = System.currentTimeMillis();
    }
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Jul 2012
    Posts
    42
    Thanks given
    3
    Thanks received
    2
    Rep Power
    11
    This works thanks for the fast help ,fixed.
    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. REQ PI source with skillcapes added
    By mage bow v2 in forum Requests
    Replies: 12
    Last Post: 08-14-2010, 06:52 AM
  2. Pi source with another client, rep ++
    By R4nger 0wnz in forum Help
    Replies: 0
    Last Post: 06-21-2010, 02:55 PM
  3. Down-Fall | Great New PI Source | Edited
    By Haulin' in forum Advertise
    Replies: 15
    Last Post: 06-13-2010, 05:42 AM
  4. Admins dropping on PI Source - 3$ Fix
    By HiImRusty in forum Help
    Replies: 4
    Last Post: 05-21-2010, 02:46 AM
  5. RPG Skill Upgrade Gui Source :D
    By CTucker in forum Application Development
    Replies: 7
    Last Post: 04-12-2010, 06:03 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
  •