Hints are examples hence they are not patches, they were not made through eclipse (hence methods may not exist), like the name says, they are just to guide you.
Hint:
private int _lastKilled = null;
public lala(L2PcInstance killer, int killedId)
{
if(_lastKilled == killedId)
return;
else
{
_lastKilled = killedId;
increasePvPCount();
}
}
Hint:
private int _lastKilled = null;
private final DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
private Date date = null;
public lala(L2PcInstance killer, L2PcInstance target)
{
if(_lastKilled == targetgetObjectId())
return;
else
{
_lastKilled = killedId;
increasePvPCount();
write(killer.getName(), target.getName());
}
}
private static void write(String killer, String killed) throws IOException{
try{
date = new Date();
FileWriter fwriter = new FileWriter("killerLog.txt",true);
BufferedWriter out = new BufferedWriter(fwriter);
out.write("[PvP] (" + dateFormat.format(date) + ") :" killed + " killed " + killed);
out.close();
}catch (Exception e){
System.err.println("Error: " + e.getMessage());
}
}