gnashxalex Posted November 29, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 52 Reputation: 1 Joined: 08/19/18 Last Seen: February 23, 2021 Share Posted November 29, 2019 (edited) it is possible to only announce this on mvp official spawn? not all mvps killed and the map the monster was killed - script MVP_Announce#Balfear -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,MOB_MVPEXP) != 0) if (getcharid(1)) announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' from party '"+ strcharinfo(1) +"'.",bc_yellow|bc_all; else announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"'.",bc_yellow|bc_all; end; } Edited November 29, 2019 by Mael better a code box Quote Link to comment Share on other sites More sharing options...
0 Moooooon-Aisha Posted November 29, 2019 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 116 Reputation: 19 Joined: 09/08/17 Last Seen: April 13, 2023 Share Posted November 29, 2019 announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' from party '"+ strcharinfo(1) +"' in '"+strcharinfo(3)+"'.",bc_yellow|bc_all; announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' in '"+strcharinfo(3)+"'.",bc_yellow|bc_all; Quote Link to comment Share on other sites More sharing options...
0 gnashxalex Posted November 29, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 52 Reputation: 1 Joined: 08/19/18 Last Seen: February 23, 2021 Author Share Posted November 29, 2019 1 minute ago, Moooooon-Aisha said: announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' from party '"+ strcharinfo(1) +"' in '"+strcharinfo(3)+"'.",bc_yellow|bc_all; announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' in '"+strcharinfo(3)+"'.",bc_yellow|bc_all; Thanks, would it be possible to do that only announce when the mvp dies in his official spawn? Quote Link to comment Share on other sites More sharing options...
0 Mael Posted November 29, 2019 Group: Forum Moderator Topic Count: 25 Topics Per Day: 0.01 Content Count: 837 Reputation: 321 Joined: 02/11/19 Last Seen: Yesterday at 01:54 PM Share Posted November 29, 2019 Use this script and specify which mvp and its respawn zone. On 11/30/2019 at 5:05 AM, gnashxalex said: it is possible to only announce this on mvp official spawn? not all mvps killed and the map the monster was killed - script MVP_Announce#Balfear -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,MOB_MVPEXP) != 0) if (getcharid(1)) announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' from party '"+ strcharinfo(1) +"'.",bc_yellow|bc_all; else announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"'.",bc_yellow|bc_all; end; } By the way I just noticed that you are duplicating topics, please avoid doing it. You already got the answer in the previous one. https://rathena.org/board/topic/121680-help-with-script/ Quote Link to comment Share on other sites More sharing options...
0 gnashxalex Posted November 29, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 52 Reputation: 1 Joined: 08/19/18 Last Seen: February 23, 2021 Author Share Posted November 29, 2019 (edited) 10 minutes ago, Mael said: Use this script and specify which mvp and its respawn zone. the announce is char name has killed mob name at map name but i want to announce like this [char name] has killed 'mob name' at 'map name' but each time i try to put [char name] it gives me an error in the mapserver Edited November 29, 2019 by gnashxalex Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted November 30, 2019 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Wednesday at 03:29 PM Share Posted November 30, 2019 8 hours ago, gnashxalex said: the announce is char name has killed mob name at map name but i want to announce like this [char name] has killed 'mob name' at 'map name' but each time i try to put [char name] it gives me an error in the mapserver announce "MVP : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and received an item.", bc_all; More info about strcharinfo Spoiler * strcharinfo <type>; This function will return either the name, party name or guild name for the invoking character. Whatever it returns is determined by type. 0 - Character's name. 1 - The name of the party they're in if any. 2 - The name of the guild they're in if any. If a character is not a member of any party or guild, an empty string will be returned when requesting that information. Quote Link to comment Share on other sites More sharing options...
Question
gnashxalex
- script MVP_Announce#Balfear -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,MOB_MVPEXP) != 0) if (getcharid(1)) announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' from party '"+ strcharinfo(1) +"'.",bc_yellow|bc_all; else announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"'.",bc_yellow|bc_all; end; }
Edited by Maelbetter a code box
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.