I am currently scripting an NPC and decided to add a timer before a player can use
the same NPC. Although gettimetick() works, after testing, I found out that the timer
works IF AND ONLY IF the player stays in-game. If he/she logs out or character selects,
the timer resets and timer ticks back to zero(0).
My Question: Is there other way to make the timer work even if he/she relogs and maybe
resumes when he/she logs back in-game?
Sample Code:
prontera,155,178,4 script Delay 114,{
set @npcname$,"[Delay]";
if(@delay > gettimetick(2)) {
mes @npcname$;
mes "Sorry you have to wait for ^FF0000" +@delay+ "seconds^000000.";
close;
}
mes @npcname$;
mes "Let's see your patience";
set @delay, gettimetick(2)+@delay;
close;
}