Thread: Button only pressable/reward claim able once every 24hours?

Results 1 to 5 of 5
  1. #1 Button only pressable/reward claim able once every 24hours? 
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Hi there,

    I was wondering if someone could help me - I'd like to add a button, where if you press it it gives you food/potions/ whatever but you can only claim it once a day - is there a simple way to do this for an individual?

    Thanks in advance!

    Baylo
    Reply With Quote  
     

  2. #2  
    anInt69

    Max _'s Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,801
    Thanks given
    426
    Thanks received
    727
    Rep Power
    599
    You'd have to trace the users clicks with System.time, probably adding a boolean to the character file like hasClaimed = true/false.

    Their is probably a better way of doing this but I'm giving you an idea.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Thanks for the reply - it made me think about the veng code actually; I guess as that can count 30seconds after a click maybe I could use something similar... But I suppose it depends how long it can record for and whether it resets on logout. I'll take a look
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2014
    Posts
    813
    Thanks given
    69
    Thanks received
    47
    Rep Power
    9
    Time = system.currenttimemillis

    Process can be done by clicking here
    http://www.rune-server.org/runescape...imemillis.html
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Thanks for that I actually understand why I'm doing what I'm doing now
    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. (pi) make highscores update once every 24 hour
    By garrydowling2011 in forum Help
    Replies: 2
    Last Post: 03-29-2012, 12:10 AM
  2. Replies: 11
    Last Post: 12-23-2011, 02:10 AM
  3. Replies: 8
    Last Post: 10-23-2011, 10:15 PM
  4. Action can be done once every 24 hrs
    By jordan641 in forum Requests
    Replies: 1
    Last Post: 12-29-2010, 03:53 AM
  5. Attack button only in wilderniss
    By Al-kharid in forum Help
    Replies: 9
    Last Post: 08-09-2010, 05:05 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •