- script #mvp_drop -1,{
OnNPCKillEvent:
if (getmonsterinfo(killedrid,22)) // If mob has MOB_MVPEXP, it's an MVP.
if (rand(100) < 50) //chnage % as your needs
getitem 512,1; // your item id here
announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; }
end;
}
So, I wanted that MVPs that are in their respected spawn maps will give the reward. Example, If I summon Baphomet at prontera, the reward wont be given.
Second, if possible, I can list out some mobs which will drop some items - I will make some custom mobs in the future with somewhat the same function as this.
Thanks in advance.
Credit goes to the owner of this script. I don't own this.
Question
pajodex
Hi,
Can someone modify this script a little?
- script #mvp_drop -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,22)) // If mob has MOB_MVPEXP, it's an MVP. if (rand(100) < 50) //chnage % as your needs getitem 512,1; // your item id here announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got Apple at "+ strcharinfo(3),0,0x00FF00; } end; }
So, I wanted that MVPs that are in their respected spawn maps will give the reward. Example, If I summon Baphomet at prontera, the reward wont be given.
Second, if possible, I can list out some mobs which will drop some items - I will make some custom mobs in the future with somewhat the same function as this.
Thanks in advance.
Credit goes to the owner of this script. I don't own this.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.