Jump to content
  • 0

Mob drop seems to be random


Yuka

Question


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

I have added my mobs like this:

2501,BAY_LAUREL,Bay Laurel,Bay Laurel,1,50,0,0,0,1,1,2,100,99,0,0,0,0,0,90,7,12,0,3,26,0x60,2000,1,1,1,0,0,0,0,0,0,0,19542,85,19512,5,19539,5,19539,5,19540,1,19541,1,7539,10,0,0,0,0,0,0

and they spawn like this:

-	script	EastBayKill	-1,{

OnThisMobDeath:
	announce strcharinfo(0)+" just killed the eastern Bay Laurel. It will regrow in 2 hours.",0;
	end;

}

-	script	WestBayKill	-1,{

OnThisMobDeath:
	announce strcharinfo(0)+" just killed the western Bay Laurel. It will regrow in 2 hours.",0;
	end;

}

aethra,182,167,0,0	monster	Bay Laurel	2501,1,3600000,0,"EastBayKill::OnThisMobDeath"
aethra,54,195,0,0	monster	Bay Laurel	2501,1,3600000,0,"WestBayKill::OnThisMobDeath"

Now someone did the major damage to Bay Laurel, but still another person got the loot and has been announced as killer. Could it be that the lasthit counts? But when I spawn Bay Laurel with @spawn the person who dealt the major damage gets the loot.

 

Thanks for help! :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

Hmm, I think one way is to disregard the kill event, and tag the monster into an MvP, and then put the drops on MvP rewards so it would be rewarded to the MvP rather than the last hitter.

 

But the MvP will one receive one item, right?

Is there a way I can have the announce plus normal drop behaviour?

 

Removed the name out of the announce and it works.

Edited by Greyford
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

The monster event is attached to the player who hit it last, same goes with OnNPCKillEvent..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

The monster event is attached to the player who hit it last, same goes with OnNPCKillEvent..

 

So you mean because of this Announce Event the drop is also given to the person who deals the final blow?..

How can I change it?

 

It doesn't need to announce the name of the player who killed it. :/

Edited by Greyford
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Hmm, I think one way is to disregard the kill event, and tag the monster into an MvP, and then put the drops on MvP rewards so it would be rewarded to the MvP rather than the last hitter.

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