Jump to content
  • 0
Sign in to follow this  
karazu

Auto @raisemap on a certain map

Question

11 answers to this question

Recommended Posts

  • 0

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 by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

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 by karazu

Share this post


Link to post
Share on other sites
  • 0

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 by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

 

not correct

 

"map name"

 

setarray rmap$[0],"prontera","payon","test","test2";

Thank you!

 

sorry, update script  fix some typos

Share this post


Link to post
Share on other sites
  • 0

 

 

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 by karazu

Share this post


Link to post
Share on other sites
  • 0

 

 

 

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 by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

still not working, wodering why ur 1st script work.

 

 

 

EDIT:



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

Edited by karazu

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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