Jump to content
  • 0

AFK point


DanialFX

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  43
  • Reputation:   0
  • Joined:  02/10/14
  • Last Seen:  

How to make a AFK point. AFK 5 minute for 1 points.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  


- script AFKpts -1,{

OnPCLoginEvent:

CheckAFK:

if(checkidle() >= 300) {

            AFKpts++;

            dispbottom "You gained 1 AFK point. [Total: "+AFKpts+"]";   

        }

sleep2 300000;

goto CheckAFK;

end;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  43
  • Reputation:   0
  • Joined:  02/10/14
  • Last Seen:  

Testing  /no1

Edited by DanialFX
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I'd use timers...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  43
  • Reputation:   0
  • Joined:  02/10/14
  • Last Seen:  


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 by DanialFX
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

-[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 by nostafu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...