Jump to content
  • 0

Help this script only work one time


Question

Posted (edited)

Pls help my script only works the first time. How I can make it work for the entire time of woe? 

-    script    afkwoe    -1,{

OnInit:
    .timetocheck = 30;        //Seconds after which idle is checked.
    .idle_time = 30;        //Idle time in seconds, from which one can be warped.
end;

OnPCLoginEvent:
    addtimer .timetocheck*1000,strnpcinfo(3)+"::OnCheckAFK";
    end;
                                                               
OnCheckAFK:
    if(checkidle() >= .idle_time && getmapflag(strcharinfo (3), mf_gvg)) {
        dispbottom "The Police, has detected him as bot because you were in afk a long time during woe";
        warp "SavePoint",0,0;
        end;
    }
    addtimer .timetocheck*1000,strnpcinfo(3)+"::OnCheckAFK";
}
 

I solved ty :D

Edited by OmarAcero

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...