numl0ckas Posted August 26, 2013 Share 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 Link to comment Share on other sites More sharing options...
0 GsL Posted August 26, 2013 Share 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 Link to comment Share on other sites More sharing options...
0 numl0ckas Posted August 26, 2013 Author Share Posted August 26, 2013 I use aCis, he have npcs.xml file, or i dont understand you? Please explain better, thanks! Link to comment Share on other sites More sharing options...
0 GsL Posted August 26, 2013 Share 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 Link to comment Share on other sites More sharing options...
0 An4rchy Posted August 26, 2013 Share 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. Link to comment Share on other sites More sharing options...
0 numl0ckas Posted August 26, 2013 Author Share 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! Link to comment Share on other sites More sharing options...
0 An4rchy Posted August 26, 2013 Share 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. Link to comment Share on other sites More sharing options...
0 numl0ckas Posted August 26, 2013 Author Share Posted August 26, 2013 Lock it Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
7 answers to this question
Recommended Posts