Jump to content
  • 0
Sign in to follow this  
Phoenix

R> auto-kick when idle in 3mins

Question

19 answers to this question

Recommended Posts

  • 0
-    script    test    -1,{end;OnPCLoadMapEvent:    if(getmapflag(strcharinfo(3),mf_gvg)){        attachnpctimer ""+strcharinfo(0);        initnpctimer;    }    end;OnTimer181000:    if(checkidle()>=180 && getmapflag(strcharinfo(3),mf_gvg)){        atcommand "@kick "+strcharinfo(0);        end;    }    if(getmapflag(strcharinfo(3),mf_gvg))        initnpctimer;    else        detachnpctimer;    end;}gvgmap    mapflag    loadevent
Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

[cbox]- script noafk -1,{

OnPCLoadMapEvent:
if(getmapflag(strcharinfo(3),mf_gvg))initnpctimer;

end;
OnTimer181000:
if(checkidle()>180 && getmapflag(strcharinfo(3),mf_gvg))
atcommand "@kick "+strcharinfo(0);


if(getmapflag(strcharinfo(3),mf_gvg))initnpctimer;

end;

}

schg_cas06 mapflag loadevent[/cbox]

 

nothing happen! but thanks !

Share this post


Link to post
Share on other sites
  • 0

[cbox]- script noafk -1,{

 

OnPCLoadMapEvent:

if(getmapflag(strcharinfo(3),mf_gvg))initnpctimer;

 

end;

OnTimer181000:

if(checkidle()>180 && getmapflag(strcharinfo(3),mf_gvg))

atcommand "@kick "+strcharinfo(0);

 

 

if(getmapflag(strcharinfo(3),mf_gvg))initnpctimer;

 

end;

 

}

 

schg_cas06 mapflag loadevent[/cbox]

 

nothing happen! but thanks !

 

 

srry, I forgot attachnpctimer  try it again

Share this post


Link to post
Share on other sites
  • 0

 

-    script    test    -1,{end;OnPCLoadMapEvent:    if(getmapflag(strcharinfo(3),mf_gvg)){        attachnpctimer ""+strcharinfo(0);        initnpctimer;    }    end;OnTimer181000:    if(checkidle()>=180 && getmapflag(strcharinfo(3),mf_gvg)){        atcommand "@kick "+strcharinfo(0);        end;    }    if(getmapflag(strcharinfo(3),mf_gvg))        initnpctimer;    else        detachnpctimer;    end;}gvgmap    mapflag    loadevent

same nothing happen!

Share this post


Link to post
Share on other sites
  • 0

I change mf_gvg  to mf_gvg_castle and test in map prtg_cas03

 

the script  is working for me now

 

 

-    script    test    -1,{end;OnPCLoadMapEvent:    if(getmapflag(strcharinfo(3),mf_gvg_castle)){	    attachnpctimer ""+strcharinfo(0);	    initnpctimer;    }    end;OnTimer181000:   	 if(checkidle()>=180 && getmapflag(strcharinfo(3),mf_gvg_castle)){	    atcommand "@kick "+strcharinfo(0);	    end;    }    if(getmapflag(strcharinfo(3),mf_gvg_castle))	    initnpctimer;    else	    detachnpctimer;    end;}prtg_cas03    mapflag    loadevent

Share this post


Link to post
Share on other sites
  • 0

Have you set the corresponding mapflags?

 

You have to set mapflag loadevent to each map you want this script trigger on. Example:

gvgmap	mapflag	loadeventgvgmap2	mapflag	loadeventgvgmap3	mapflag	loadevent

If you don't set this mapflag on the maps you want this script to trigger, nothing will happen.

Share this post


Link to post
Share on other sites
  • 0

[cbox]- script test -1,{
end;

OnPCLoadMapEvent:
if(getmapflag(strcharinfo(3),mf_gvg_castle)){
attachnpctimer ""+strcharinfo(0);
initnpctimer;
}
end;


OnTimer181000:

if(checkidle()>=180 && getmapflag(strcharinfo(3),mf_gvg_castle)){
atcommand "@kick "+strcharinfo(0);
end;
}
if(getmapflag(strcharinfo(3),mf_gvg_castle))
initnpctimer;
else
detachnpctimer;

end;

}

schg_cas06 mapflag loadevent
schg_cas07 mapflag loadevent
schg_cas08 mapflag loadevent
arug_cas06 mapflag loadevent
arug_cas07 mapflag loadevent
arug_cas08 mapflag loadevent[/cbox]

 

hmmm not Guild castle.

this map is set to battleground system!

Share this post


Link to post
Share on other sites
  • 0

 

 

For BG maps, you should check for mf_battleground instead of mf_gvg_castle

 

nothing happen also

Any erro msg on map console?

no error in console!!

OnTimer181000: = 3mins??? i'll try to afk or idle in my battleground map but nothing happen

Share this post


Link to post
Share on other sites
  • 0

1000=1sec

 

3mins =180000  ===>OnTimer180000:

 

 

I have no idea why the script doesn't work for you :wacko:

i dont know why this script not working on me!

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.