Jump to content
  • 0

Script to announce


brunoshp

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

Have other solution to do this?

-	script	AnunciadorTown	-1,{

OnInit:

setarray .Map$, // <mapname>,<Map Nick>,
"payon"," Uma cidade na floresta ..LOL",
"hugel"," Onde fica isso ?",
"izlude"," Cidade dos Guerreiros ?",
"prontera", "Capital de Rune Midgard",
"geffen"," Cidade Mágica ?";

for( set .i,0; .i < getarraysize( .Map$ ) - 1; set .i,.i + 2 )
setmapflag .Map$[.i],mf_loadevent;
end;

OnPCLoadMapEvent:
for( set .i,0; .i < getarraysize( .Map$ ) - 1; set .i,.i + 2 )
if( strcharinfo(3) == .Map$[.i] )
announce "Bem Vindo a "+.Map$[.i+1]+" .",bc_self,0x1affff;
end;
}

i dont want to set maps in loadevents, have other solution? 

in other emulator exist region_db, but is very very very old emulator kkkkk

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   0
  • Joined:  06/19/18
  • Last Seen:  

There is an announcer that toggles all maps.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

On 2/23/2019 at 12:36 PM, brunoshp said:

Have other solution to do this?


-	script	AnunciadorTown	-1,{

OnInit:

setarray .Map$, // <mapname>,<Map Nick>,
"payon"," Uma cidade na floresta ..LOL",
"hugel"," Onde fica isso ?",
"izlude"," Cidade dos Guerreiros ?",
"prontera", "Capital de Rune Midgard",
"geffen"," Cidade Mágica ?";

for( set .i,0; .i < getarraysize( .Map$ ) - 1; set .i,.i + 2 )
setmapflag .Map$[.i],mf_loadevent;
end;

OnPCLoadMapEvent:
for( set .i,0; .i < getarraysize( .Map$ ) - 1; set .i,.i + 2 )
if( strcharinfo(3) == .Map$[.i] )
announce "Bem Vindo a "+.Map$[.i+1]+" .",bc_self,0x1affff;
end;
}

 

iawe manolo, fiz a ideia que você queria apenas manipulando a entrada dos comandos @go e @war, ta na mão, qualquer coisa fala awe xD
https://pastebin.com/raw/WkUJbpp7

Edited by Hyroshima
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

Koe meu parça, fiz o sistema do Region do Eamod, fiz ele na src e funcionou! mas tms jnts man!!!

  • Upvote 1
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...