Jump to content
  • 0

[Request] Mapname Self Announce


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

can anybody share or make me a script like this, when i warp in a map, it will automatically self broadcast the name of the map on my character. thanks..

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

something like this ?

[ Pastebin ] Map Nickname Announcing

edit at here

setarray .Map$, // <mapname>,<Map Nick>,
  "payon","A City in Forest ..LOL",
  "hugel","Where is this ?",
  "izlude","Swordman City ",
  "prontera","Rune Midgaard ",
  "geffen","Magician Town ?";

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

- script Sample -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == "mapname" )
announce "[ "+strcharinfo(0)+" ] entered this "+strcharinfo(3)+".",bc_self;
end;
}
mapname mapflag loadevent


edit some mistake

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

can anybody share or make me a script like this, when i warp in a map, it will automatically self broadcast the name of the map on my character. thanks..

Use <flag> bc_self

So just change the 0 in Emistry's example to bc_self. (0 is bc_all)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

thanks emistry and brian, the script is working :(

how can i add more maps?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

-	script	map_self_announce	-1,{
OnPCLoadMapEvent:
if (compare("prontera,geffen,payon", strcharinfo(3)))
	announce "You have entered the map: " + strcharinfo(3), bc_self;
end;
}

prontera	mapflag	loadevent
geffen	mapflag	loadevent
payon	mapflag	loadevent

1. add the mapname in 'compare' in the 1st string

2. add the 'loadevent' mapflag to that map

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

example:

map.gat ( in map name super city)

can i ask? can make it's annouce mapname not map.gat name?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

yaya... nice... because i can give my custom map name =) thank you emistry.

Edited by manabeast
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...