Jump to content
  • 0

MvP Announcer dont announce script base spawn


Ruhn

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  44
  • Reputation:   1
  • Joined:  04/15/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

You should post here your announcer script 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  44
  • Reputation:   1
  • Joined:  04/15/20
  • Last Seen:  

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;
    }
    

}
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  44
  • Reputation:   1
  • Joined:  04/15/20
  • Last Seen:  

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