Jump to content
  • 0

MVP Drop mod


pajodex

Question


  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

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

There have been no answers to this question yet

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