Jump to content
  • 0

Check Is Monster MVP/Boss OnNpcKillevent:


gekigengar

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

How do I check if the NPC triggered by OnNPCKillevent: is an MVP or not?.

 

The main Idea is this

 

 

If (Npc isMVP/Boss()) {
@score += 100; // A score variable that is recorded in the MVP Arena initiated from another label.
give item mithril coin // an item that I created to identify how much MVP player has killed, and can be exchanged for certain items.
}
 

or does an OnBossKillevent exist? (Or an OnMVPKillevent)?

Edited by gekigengar
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


OnNPCKillEvent:

if( getmonsterinfo( killedrid,MOB_MVPEXP ) ){

@score += 100;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

OnNPCKillEvent:
if( getmonsterinfo( killedrid,MOB_MVPEXP ) ){
   @score += 100;
}

Why is there no OnMVPKillevent on rAthena? I remember one in eAthena o.o

 

This means it will run and check on every mob kill, a waste of processing ;_;.

Edited by gekigengar
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

For all boss monster (like ghostring) :

if ( getmonsterinfo( killedrid,MOB_MODE ) & 0x0020 ) {
  • Upvote 1
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...