Auto @raisemap on a certain map

karazu

New member
Messages
1,115
Points
0
can anyone make me a script like will do @raisemap on a certain map every 1 minute?

 
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

 
Last edited by a moderator:
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"; 
??

 
Last edited by a moderator:
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.

 
Last edited by a moderator:
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

Code:
-    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;}
 
Last edited by a moderator:
still not working, wodering why ur 1st script work.

EDIT:



NVM i just forgot to TAB.. thank your for this..

 
Last edited by a moderator:
Back
Top