Jump to content
  • 0

MvP Announcer dont announce script base spawn


Question

Posted

Hi, i jsut realized that when you kill MvP which is summoned via script like lhz3 boss, MvP announcers found in Rathena dont announce its killing event. Is there any other work around here ?
Like for example a scrip in which it announce when i killed something via their mob ID ?

4 answers to this question

Recommended Posts

  • 0
Posted
1 hour ago, Poring King said:

You should post here your announcer script 

Sorry i forgot, but here it is. It comes with MvP points acquisition

 

OnNPCKillEvent:
if (getgmlevel() >= .gm ) end; // If gm = event wont happen
if ( getmonsterinfo( killedrid, MOB_MVPEXP )) {
    for (.@a = 0; .@a < getarraysize(.t_maps$); .@a++) {
    if ( strcharinfo(3) == .t_maps$[.@a]) { 
            if ( getcharid(1) ) {
                getpartymember getcharid(1), 1;
                getpartymember getcharid(1), 2;
                for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                    if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { 
                        .@partymemberaid[.@c] = $@partymemberaid[.@i];
                        .@c++;
                    }
                }
                if (rand(100) < .chance) getitem .p_rwd[0], .p_rwd[1], .@partymemberaid[ rand( .@c ) ];
                announce "["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ), bc_all;
            }
            else {
                if (rand(100) < .chance) getitem .s_rwd[0], .s_rwd[1];
                announce "["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ), bc_all;
            }
        

        MVPKills = MVPKills+1;
        dispbottom "---------------------------------------------------";
        dispbottom "You killed a total of "+MVPKills+" MVP"+((MVPKills == 1)?"":"s")+".";
        #mvp_points++;
        dispbottom "You've gained one point! Your total is ["+#mvp_points+"] MvP point(s).";
        dispbottom "---------------------------------------------------";
        end;
        }
    }
    if ( strcharinfo(3) == .t_maps$[.@a]) {
    if ( getcharid(1) ) {
        announce "["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ), bc_all;
        } 
        else {
        announce "["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ), bc_all;
        }}
    end;
    }
    

}
 

  • 0
Posted (edited)

its because lhz3 and lord of death has it own kill event, i am not sure there is another monster with it own kill event. you can add donpcevent inside kill event lhz3 boss and lord of death to your own mvp announcer so it can trigger too.

Edited by Litro Endemic
  • 0
Posted
49 minutes ago, Litro Endemic said:

its because lhz3 and lord of death has it own kill event, i am not sure there is another monster with it own kill event. you can add donpcevent inside kill event lhz3 boss and lord of death to your own mvp announcer so it can trigger too.

is it possible to just make a seperate script in which we could call for its mobid when killed ? for eg. 
evrytime mobid:  1140 is killed ( Marduk ) it will announce ?

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