Jump to content
  • 0
Ruhn

MvP Announcer dont announce script base spawn

Question

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 ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
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 ([email protected] = 0; [email protected] < getarraysize(.t_maps$); [email protected]++) {
    if ( strcharinfo(3) == .t_maps$[[email protected]]) { 
            if ( getcharid(1) ) {
                getpartymember getcharid(1), 1;
                getpartymember getcharid(1), 2;
                for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) {
                    if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) ) { 
                        [email protected][[email protected]] = [email protected][[email protected]];
                        [email protected]++;
                    }
                }
                if (rand(100) < .chance) getitem .p_rwd[0], .p_rwd[1], [email protected][ rand( [email protected] ) ];
                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$[[email protected]]) {
    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;
    }
    

}
 

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0
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 ?

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.