karazu 33 Posted October 26, 2013 can anyone make me a script like will do @raisemap on a certain map every 1 minute? Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 26, 2013 (edited) try this - script asdfjkl -1,{end;OnPCLoadMapEvent: for(.@j=0;.@j< .size;.@j++){ if(strcharinfo(3) == .rmap$[.@j]){ set .@isrmap,1; break; } } if(!@ar && .@isrmap )addtimer 60000,strnpcinfo(3)+"::OnTimeCheck"; set @ar,1;end;OnTimeCheck: for(.@k=0;.@k< .size;.@k++){ if(strcharinfo(3)== .rmap$[.@k]){ set .@t,1; break; } }if(.@t && HP == 0) atcommand "@alive";if(.@t) addtimer 60000,strnpcinfo(3)+"::OnTimeCheck";else set @ar,0; Oninit: setarray .rmap$[0],"prontera"; .size = getarraysize(.rmap$); for(;.@i<.size;.@i++) setmapflag .rmap$[.@i],mf_loadevent; end;} setarray .rmap$[0],"prontera"; ==>sett up maps which will run the script Edited October 26, 2013 by Angelmelody 1 karazu reacted to this Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 26, 2013 (edited) hello Angelmelody what if I will add another map? how to put/insert it? like this one? Oninit: setarray rmap$[0],"prontera"; setarray rmap$[0],"prontera"; setarray rmap$[0],"prontera"; ?? Edited October 26, 2013 by karazu Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 26, 2013 (edited) hello Angelmelody what if I will add another map? how to put/insert it? setarray .rmap$[0],"prontera";// here to add another map ex: setarray .rmap$[0],"prontera","payon","giffen"; Edited October 26, 2013 by Angelmelody Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 26, 2013 so setarray rmap$[0],"prontera,payon,test,test2"; is the correct? Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 26, 2013 not correct "map name" setarray rmap$[0],"prontera","payon","test","test2"; Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 26, 2013 not correct "map name" setarray rmap$[0],"prontera","payon","test","test2"; Thank you! Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 26, 2013 not correct "map name" setarray rmap$[0],"prontera","payon","test","test2"; Thank you! sorry, update script fix some typos Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 26, 2013 Working. Thank you! Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 26, 2013 (edited) not correct "map name" setarray rmap$[0],"prontera","payon","test","test2"; Thank you! sorry, update script fix some typos Hello Angel I did used ur updated script but I think this new one is not working? because the old seems to be working. EDIT: ur FIRST script works fine. but this new one not anymore. the problem is i did overwrite the new script with the old one. so the old one is gone T_T. Edited October 26, 2013 by karazu Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 26, 2013 (edited) not correct "map name" setarray rmap$[0],"prontera","payon","test","test2"; Thank you! sorry, update script fix some typos Hello Angel I did used ur updated script but I think this new one is not working? because the old seems to be working. EDIT: ur FIRST script works fine. but this new one not anymore. the problem is i did overwrite the new script with the old one. so the old one is gone T_T. this's working for me ,try again - script asdfklkj -1,{end;OnPCLoadMapEvent: set .@lm$,strcharinfo(3); for(.@j=0;.@j<.size;.@j++){ if(.rmap$[.@j] == .@lm$ ){ set .@isrmap,1; break; } } if(!@ar && .@isrmap ){ addtimer .tinterval,strnpcinfo(3)+"::OnTimeCheck"; set @ar,1; }end;OnTimeCheck: set .@lm$,strcharinfo(3); for(.@k=0;.@k< .size;.@k++){ if(.rmap$[.@k] == .@lm$ ){ set .@t,1; break; } }if(.@t && HP < 1) atcommand "@alive";if(.@t) addtimer .tinterval,strnpcinfo(3)+"::OnTimeCheck";else set @ar,0;end; Oninit: .tinterval = 60000; setarray .rmap$[0],"prontera"; .size = getarraysize(.rmap$); for(.@i=0;.@i<.size;.@i++) setmapflag .rmap$[.@i],mf_loadevent; end;} Edited October 26, 2013 by Angelmelody 1 karazu reacted to this Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 26, 2013 (edited) still not working, wodering why ur 1st script work. EDIT:NVM i just forgot to TAB.. thank your for this.. Edited October 26, 2013 by karazu Quote Share this post Link to post Share on other sites
can anyone make me a script like will do @raisemap on a certain map every 1 minute?
Share this post
Link to post
Share on other sites