Jump to content
Sign in to follow this  
icabit

Self Map Announce

Recommended Posts

i saw this post on rathena http://rathena.org/b...-self-announce/

i wonder why no one every released one

 

I was bored and i was thinking of making something

so i remembered that eamod has this feature

so i made one for us smile.png

i don't know how eamod did it but i just do it via script biggrin.png

 

i know theres like 123123 maps out there

but it was easy to get them all to work once you know a little bit of programming LOL

 

it will announce to yourself where you are currently

this will announce the map listed on mapindex in data folder smile.png

so it wont announce something like iz_dun01

it will announce it as undersea tunnel smile.png

works on every map that is enabled by default in hercules

but the script is quite simple and i suppose it will work with rathena and eathena too

 

note: if you will encounter errors on your map server just simply look for it in the script and comment them or delete them. if you know how to enable those maps then do so. its yours to decide what you do

note 2: i will only support major problems of the script

note 3: you may modify it but don't remove the header

 

check the attached picture for an example smile.png

 

post-51-0-40239500-1378404336_thumb.jpg

mapannounce.txt

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Well ya.. it is also nice in SQL  but if we want to use sql. so sql will have big large mb of that? idk.. i am not experience that. 

 

for my opinion. to use better sql tables.

Share this post


Link to post
Share on other sites

It's not that much of a difference if you got the variables in SQL or in your code. I would even say SQL is way better since you can reuse everything.

 

Though an official map database would be the best option. I read about this being developed on rA but I have no idea if there is something similiar going on in Hercules.

Share this post


Link to post
Share on other sites

@icabit please explain...

 

[Error]: npc_parsesrcfile: Unknown map '-' in file 'npc/syokro/mapannounce.tx
t', line '1'. Skipping line...

Edited by mrlongshen

Share this post


Link to post
Share on other sites

Possibly the script is saved as UTF-8 with BOM. Try to save that same script in ANSI or in UTF-8 without BOM.

 

Befor this, this script are save as UTF-8

After that, I change to ANSI like what you said. and its working !

More power for you sir +1 !! hahaha

:lol: :lol:

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
Reply to this topic...

×   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.