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.
|
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
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.
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
Time = system.currenttimemillis
Process can be done by clicking here
http://www.rune-server.org/runescape...imemillis.html
Thanks for that I actually understand why I'm doing what I'm doing now
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |