numl0ckas Posted August 26, 2013 Posted August 26, 2013 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
0 GsL Posted August 26, 2013 Posted August 26, 2013 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 numl0ckas Posted August 26, 2013 Author Posted August 26, 2013 I use aCis, he have npcs.xml file, or i dont understand you? Please explain better, thanks!
0 GsL Posted August 26, 2013 Posted August 26, 2013 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 An4rchy Posted August 26, 2013 Posted August 26, 2013 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 numl0ckas Posted August 26, 2013 Author Posted August 26, 2013 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!
0 An4rchy Posted August 26, 2013 Posted August 26, 2013 Thanks, An4rchy! Np :) If you want me to lock it tell me. I leave it open in case you have problems doing it.
Question
numl0ckas
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
7 answers to this question
Recommended Posts