LOL @ BOTTOM!
I could write this.
If you wait till Sunday:/
|
|

I want to make it so when you click an object, you have to wait 5 seconds before you can click it again. How would I do this? Here is an example in the clickobject class:
And than make it wait 5 seconds until you can pull it again.case 245:
c.sendMessage("Wait 5 seconds..");
(make it wait 5 seconds here)
c.startAnimation(200); (after the 5 seconds is over)
break;
I'll rep if you can do this. Thanks![]()
inb4ninthcallsmeanoob

Why sunday?but yeah I can wait unless someone else writes it. Thanks
![]()

Oh god, I have no idea how I could replace that![]()

Code:long objectDelay;Code:case 245: if (System.currentTimeMillis() - objectDelay > 5000) { c.startAnimation(200); (after the 5 seconds is over) objectDelay = System.currentTimeMillis(); } else { c.sendMessage("Wait 5 seconds.."); } break;

src\server\model\players\packets\ClickObject.java: 96: variable objectDelay might
not have been initialized
if (System.currentTimeMillis() - objectDelay > 5
000) {
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .

use common sense pls

Java isn't common sense.
| « Is this even possible? | Full Tutorial » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |