Jump to content

Question

5 answers to this question

Recommended Posts

Posted


- script AFKpts -1,{

OnPCLoginEvent:

CheckAFK:

if(checkidle() >= 300) {

            AFKpts++;

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

        }

sleep2 300000;

goto CheckAFK;

end;

}

  • Upvote 1
Posted (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 by DanialFX
Posted (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 by nostafu

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...