gnashxalex Posted November 29, 2019 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
0 Moooooon-Aisha Posted November 29, 2019 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
0 gnashxalex Posted November 29, 2019 Author 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
0 Mael Posted November 29, 2019 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
0 gnashxalex Posted November 29, 2019 Author 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
0 Bringer Posted November 30, 2019 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
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
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.