werlex Posted October 28, 2009 Posted October 28, 2009 http://www.maxcheaters.com/forum/index.php?topic=91947.0 this is the topic and no1 is answered to it, when killed last target you dont get reward maybe some1 can say how to do this? ... http://www.maxcheaters.com/forum/index.php?topic=78348.0 from same ip code removed where i can find it? Quote
0 Intrepid Posted October 28, 2009 Posted October 28, 2009 just do a little search its not hard http://www.l2jserver.com/forum/viewtopic.php?f=73&t=12087 for the last killed target stuff save the last killed players name to an array and if it matches with the current killed one just dont add reward Quote
0 Horus Posted October 28, 2009 Posted October 28, 2009 just do a little search its not hard http://www.l2jserver.com/forum/viewtopic.php?f=73&t=12087 for the last killed target stuff save the last killed players name to an array and if it matches with the current killed one just dont add reward Jeez don't make an array. Either make a String or an Int (String saves the name, int the objectId). Quote
0 werlex Posted October 28, 2009 Author Posted October 28, 2009 but how to do if he kills in 2 minutes same person he dont get item , after 2 minutes only gets ... Quote
0 Horus Posted October 29, 2009 Posted October 29, 2009 Store a Millis time or just use Calendars. If the difference between times is X then he wont get rewards. Quote
0 WickedPwn Posted October 29, 2009 Posted October 29, 2009 can you explain more (for newbie) ? i need it too but dont understand what diff need to put in l2pcinstance.java ... Quote
0 werlex Posted October 31, 2009 Author Posted October 31, 2009 if((getobjectID() > 0 && target.getObjectid() > 0 && getobjectid() == target.getobjectid())) { this.sendMessage("Farm is punishable with Ban! Gm informed."); _log.warning("PVP POINT FARM ATTEMPT: " + this.getName() + " and" + target.getName() +". same target"); return; } this code will works? Quote
0 Intrepid Posted October 31, 2009 Posted October 31, 2009 if((getobjectID() > 0 && target.getObjectid() > 0 && getobjectid() == target.getobjectid())) { this.sendMessage("Farm is punishable with Ban! Gm informed."); _log.warning("PVP POINT FARM ATTEMPT: " + this.getName() + " and" + target.getName() +". same target"); return; } this code will works? no Quote
0 werlex Posted October 31, 2009 Author Posted October 31, 2009 L2Characters private long _timeFirstKilled = 0; public boolean getFirstTimeKilled(L2PcInstance target) { long _curTime = System.currentTimeMillis(); if ((_timeFirstKilled + 240000) > _curTime) return true; else if ((_timeFirstKilled + 240000) < _curTime) _curTime = System.currentTimeMillis(); return false; } i did this in l2characters , this code is cant target last target yea? but need to not increase pvp kills count string pvp1=get.... string pvp2=get... if (pvp1.equals(pvp2)) { this.sendMessage("Farm is punishable with Ban! Gm informed."); _log.warning("PVP POINT FARM ATTEMPT: " + this.getName() + " and " + target.getName() +". SAME Target."); return; } but this wouldnot help me yea? maybe could help coz iam just learning java ... Quote
Question
werlex
http://www.maxcheaters.com/forum/index.php?topic=91947.0 this is the topic and no1 is answered to it, when killed last target you dont get reward maybe some1 can say how to do this? ...
http://www.maxcheaters.com/forum/index.php?topic=78348.0 from same ip code removed where i can find it?
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.