but why OnTimeChange when we can use a timer? I guess doing same thing with a timer is same unless you hate "newtimer" word
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
Quote from: UncleRus on May 26, 2020, 07:44 AMWho can give the base to this viceland_db.db on this forum? I found the script itself for this, but I need this file, whoever has a discardWho gave you viceland script?
if(stats[player.ID].warning = 1)https://developer.electricimp.com/squirrel/squirrel-guide/operators
Quote from: MEGAMIND on May 04, 2020, 06:31 PMIf working on blank script then something is wrong with your script or you are doing something wrong.Quote from: habi on May 04, 2020, 05:06 PMon TDCS server, blank would obviously make no issues but what if people adapt this method on there server so there server will get crashed in an hour/after an hourQuote from: MEGAMIND on May 04, 2020, 04:20 PM.....but the thing is at alomost 3-4 npcs the server gets crashed after each bot has done its task, why does it happenon blank server?



public void heal(Player player) throws InterruptedException{
TimeUnit.SECONDS.sleep(5);
player.setHealth(100);
}its better to use proper timer than using .sleep as timerpublic void heal(Player player) {
timerRegistry.register(false, 5000, new Runnable() {
@Override
public void run() {
player.setHealth(100);
}
});
}