Phoenix 0 Posted May 27, 2013 i want useful script in GVG Thanks in Advance Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 27, 2013 (edited) - 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 May 27, 2013 by Angelmelody Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 let me try that! Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 [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 ! Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 27, 2013 [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 Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 - 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! Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 27, 2013 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 1 Phoenix reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 27, 2013 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. Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 [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;elsedetachnpctimer;end;}schg_cas06 mapflag loadeventschg_cas07 mapflag loadeventschg_cas08 mapflag loadeventarug_cas06 mapflag loadeventarug_cas07 mapflag loadeventarug_cas08 mapflag loadevent[/cbox] hmmm not Guild castle. this map is set to battleground system! Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 27, 2013 For BG maps, you should check for mf_battleground instead of mf_gvg_castle 1 Phoenix reacted to this Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 okey let me try that sir Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 For BG maps, you should check for mf_battleground instead of mf_gvg_castle nothing happen also Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 27, 2013 For BG maps, you should check for mf_battleground instead of mf_gvg_castle nothing happen also Any erro msg on map console? Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 27, 2013 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 Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 27, 2013 1000=1sec 3mins =180000 ===>OnTimer180000: I have no idea why the script doesn't work for you Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 28, 2013 1000=1sec 3mins =180000 ===>OnTimer180000: I have no idea why the script doesn't work for you i dont know why this script not working on me! Quote Share this post Link to post Share on other sites
0 Enko 9 Posted May 28, 2013 are you using rathena or hercules? Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 28, 2013 i am using rahtena upgrade to hercules Quote Share this post Link to post Share on other sites
0 Phoenix 0 Posted May 28, 2013 please closed this topic thank you boss Angelmelody and jaBote Quote Share this post Link to post Share on other sites
0 Enko 9 Posted May 28, 2013 maybe it is because you arent using a native hercules Quote Share this post Link to post Share on other sites
i want useful script in GVG
Thanks in Advance
Share this post
Link to post
Share on other sites