Jump to content
  • 0

Script to announce


Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...