DanialFX Posted March 14, 2014 Posted March 14, 2014 How to make a AFK point. AFK 5 minute for 1 points. Quote
sandbox Posted March 15, 2014 Posted March 15, 2014 - script AFKpts -1,{ OnPCLoginEvent: CheckAFK: if(checkidle() >= 300) { AFKpts++; dispbottom "You gained 1 AFK point. [Total: "+AFKpts+"]"; } sleep2 300000; goto CheckAFK; end; } 1 Quote
DanialFX Posted March 15, 2014 Author Posted March 15, 2014 (edited) Testing Edited March 15, 2014 by DanialFX Quote
DanialFX Posted March 15, 2014 Author Posted March 15, 2014 (edited) Dosen't work. Here is my script. - script AFKpts -1,{ OnPCLoginEvent: CheckAFK: if(checkidle() >= 300) { #AFKpts++; dispbottom "You gained 1 AFK point. [Total: "+#AFKpts+"]"; } sleep2 300000; goto CheckAFK; end; } For npc check points. prontera,91,101,5 script Sample 757,{ setarray .@CoinID[0],670,671; for( set .@i,0; .@i < getarraysize( .@CoinID ); set .@i,.@i + 1 ) set .@Menu$,.@Menu$ + getitemname( .@CoinID[.@i] )+":"; mes "Each 2 Cash Points."; dispbottom "My vote points = "+#AFKpts; set .@i,( select( .@Menu$ ) - 1 ); if( #AFKpts < 2 ){ mes "Sorry but you didnt have 2 Cash Points."; }else{ mes "How many you want ?"; mes "Amount : 1 ~ "+( #AFKpts / 2 ); input .@Amount,0,( #AFKpts / 2 ); if( .@Amount ){ set #AFKpts,#AFKpts - ( .@Amount * 2 ); getitem .@CoinID[.@i],.@Amount; mes "Done"; } } close; } Edited March 15, 2014 by DanialFX Quote
krisnx Posted March 15, 2014 Posted March 15, 2014 (edited) -[TAB]script[TAB]AFKpts[TAB]-1,{ OnPCLoginEvent: CheckAFK: if(checkidle() >= 300) { #AFKpts++; dispbottom "You gained 1 AFK point. [Total: "+#AFKpts+"]"; } sleep2 300000; goto CheckAFK; end; } has been check the tab in the script ? Edited March 15, 2014 by nostafu Quote
Question
DanialFX
How to make a AFK point. AFK 5 minute for 1 points.
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.