Jump to content
  • 0

Mobs drop by maked DMG


Question

7 answers to this question

Recommended Posts

  • 0
Posted

Hello, as i know mobs drop is by last hit, but how make it by who maked more dmg he gets drop?

Pack aCis last rev

 

go at DB find mob and find -> one party random

  • 0
Posted

I use aCis, he have npcs.xml file, or i dont understand you? Please explain better, thanks!

 

i dont know how it works on acis on frozen is on npc tample

  • 0
Posted

This is a little complicated to do. I'll give you a clue:

 

- You should make a map in L2Attackable/L2Monster(or your monster's instance) that will contain as key a L2PcInstance(the player) and value an Integer(the damage).

- Then every time the npc takes damage, this map should be updated with new damage for the specific player.

- Then when the npc dies, this map is checked and the player with the biggest damage gets the drops.

- NOTE: You need to make a task to update the map if some seconds passes, otherwise it will be buggy.

  • 0
Posted

This is a little complicated to do. I'll give you a clue:

 

- You should make a map in L2Attackable/L2Monster(or your monster's instance) that will contain as key a L2PcInstance(the player) and value an Integer(the damage).

- Then every time the npc takes damage, this map should be updated with new damage for the specific player.

- Then when the npc dies, this map is checked and the player with the biggest damage gets the drops.

- NOTE: You need to make a task to update the map if some seconds passes, otherwise it will be buggy.

 

Thanks, An4rchy!

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock