Jump to content
  • 0

Help this script only work one time


OmarAcero

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   1
  • Joined:  10/13/12
  • Last Seen:  

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

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.

×
×
  • Create New...