Jump to content
  • 0

Check Is Monster MVP/Boss OnNpcKillevent:


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

Posted (edited)
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

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