Jump to content
  • 0
Sign in to follow this  
Barbiroto

[solved] Matar Boss (OnInit)

Question

Fala ae pessoal beleza, estou tentando criar um script para matar todos Chefes quando eu ligar ou der reload no servidor, tenho esse cara abaixo

 

 

-    script    MatarBoss    -1,{    OnInit:        sleep2 5000;        setarray .@map$[0], "abbey02", "abbey03", "abyss_03", "ama_dun03", "anthell02", "ayo_dun02", "beach_dun", "bra_dun02", "dew_dun01", "dic_dun02", "dic_dun03", "ein_dun02", "gef_dun01", "gef_dun02", "gef_fild03", "gef_fild10", "gl_chyard", "gld2_ald", "gld2_gef", "gld2_pay", "gld2_prt", "gld_dun01", "gld_dun01_2", "gld_dun02", "gld_dun02_2", "gld_dun03", "gld_dun03_2", "gld_dun04", "gld_dun04_2", "gon_dun03", "in_sphinx5", "iz_dun05", "jupe_core", "kh_dun02", "lhz_dun02", "lou_dun03", "mjolnir_04", "moc_fild17", "moc_fild22", "moc_pryd04", "moc_pryd06", "moc_prydn2", "mosk_dun03", "odin_tem03", "pay_dun04", "pay_fild10", "prt_maze03", "prt_sewb4", "ra_fild03", "ra_fild04", "ra_san05", "thor_v03", "treasure02", "tur_dun04", "ve_fild01", "ve_fild02", "xmas_dun02", "xmas_fild01", "lhz_dun01", "pay_fild04", "yuno_fild03";        for(set .@i, 0; .@i < getarraysize(.@map$); set .@i, .@i + 1){            killmonsterall .@map$[.@i];            // Linha Abaixo DEBUG Teste (Comentar-Apagar Produção)            announce "Mapa "+.@map$[.@i]+" Morreu",bc_yellow;            sleep2 100;        }    end;}

 

Olhei umas variaveis de comandos usando e fiz algumas buscas aqui e externo, e cheguei mais fácil usando esse tópico: http://herc.ws/board/topic/2883-killmonster2-every-five-hours/page-2

 

O script não funciona, se não tiver ninguém no mapa (ou tem alguma configuração no emulador que renova todos monstros se não tiver ninguém no mapa?)

 

Porque o script está funcionando se eu der reload e estar em um mapa os chefes daquele mapa morre, mais ai dou warp em outro mapa e os chefes estão lá.

 

Se alguém puder ajudar agradeço, valeu!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Obrigado cara, resolvido.

 

 

Fica abaixo para quem precisar.

 

// conf/battle/monster.conf// dynamic_mobs: no-    script    MatarBoss    -1,{    OnInit:        sleep2 1000;        setarray .@map$[0], "abbey02", "abbey03", "abyss_03", "ama_dun03", "anthell02", "ayo_dun02", "beach_dun", "bra_dun02", "dew_dun01", "dic_dun02", "dic_dun03", "ein_dun02", "gef_dun01", "gef_dun02", "gef_fild03", "gef_fild10", "gl_chyard", "gld2_ald", "gld2_gef", "gld2_pay", "gld2_prt", "gld_dun01", "gld_dun01_2", "gld_dun02", "gld_dun02_2", "gld_dun03", "gld_dun03_2", "gld_dun04", "gld_dun04_2", "gon_dun03", "in_sphinx5", "iz_dun05", "jupe_core", "kh_dun02", "lhz_dun02", "lou_dun03", "mjolnir_04", "moc_fild17", "moc_fild22", "moc_pryd04", "moc_pryd06", "moc_prydn2", "mosk_dun03", "odin_tem03", "pay_dun04", "pay_fild10", "prt_maze03", "prt_sewb4", "ra_fild03", "ra_fild04", "ra_san05", "thor_v03", "treasure02", "tur_dun04", "ve_fild01", "ve_fild02", "xmas_dun02", "xmas_fild01", "lhz_dun01", "pay_fild04", "yuno_fild03";        for(set .@i, 0; .@i < getarraysize(.@map$); set .@i, .@i + 1){            killmonsterall .@map$[.@i];            // Linha Abaixo DEBUG Teste (Comentar-Apagar Produção)            // announce "Mapa "+.@map$[.@i]+" Morreu",bc_yellow;            sleep2 100;        }    end;}
Edited by Barbiroto

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.