Lord Ganja
New member
I'm currently using 'addtimer' attach to a character that reduces a permanent account variable every minute.
I was just wondering if the timer automatically resets and stop when the player logged out? or do I have to use 'deltimer' attach on OnPCLogoutEvent?
Here's the script that im using:
I was just wondering if the timer automatically resets and stop when the player logged out? or do I have to use 'deltimer' attach on OnPCLogoutEvent?
Here's the script that im using:
Code:
- script pk_karma_system -1,{OnPCLoginEvent: if( #pk_karmasystem_pts < 1 )end; addtimer 60000,"pk_karma_system::OnPointReduce"; end; OnPointReduce: if( #pk_karmasystem_pts < 1 ) deltimer "pk_karma_system::OnPointReduce"; else { #pk_karmasystem_pts -= 1; addtimer 60000,"pk_karma_system::OnPointReduce"; } end;}