Jump to content

down

Members
  • Posts

    448
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by down

  1. Hey, does any1 know where i can find some effects? Like in this topic, http://www.maxcheaters.com/forum/index.php?topic=100529.0 I wonder where did he found those effects, since i wanna change them to another effects :D
  2. dunno, mb cuz of this <target class_id_restriction="93, 101, 108"/>
  3. Can some1 explain me why this god damn Tokenizer doesnt work with this: public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("countppl")) { StringTokenizer st = new StringTokenizer(target); String char1 = ""; String char2 = ""; String char3 = ""; String char4 = ""; if (st.hasMoreTokens()) char1 = st.nextToken(); if (st.hasMoreTokens()) char2 = st.nextToken(); if (st.hasMoreTokens()) char3 = st.nextToken(); if (st.hasMoreTokens()) char4 = st.nextToken(); activeChar.sendMessage("Selected: 1:"+char1+", 2:"+char2+", 3:"+char3+", 4:"+char4); } Same goes for: StringTokenizer st = new StringTokenizer(command, " "); st.nextToken(); and StringTokenizer st = new StringTokenizer(command); st.nextToken();
  4. remove this from L2PcInstance/onKillUpdatePvPKarma // If in Arena, do nothing if (ZoneManager.getInstance().checkIfInZonePvP(this)) return; and || // or ( getInPvpZone() && // Player is inside pvp zone and targetPlayer.getInPvpZone() // Target player is inside pvp zone )
  5. Ok, lets see. Firstly add imports import java.io.FileWriter; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.io.LineNumberReader; import java.util.StringTokenizer; import java.io.FileInputStream; import java.io.InputStreamReader; than find something like private byte _siegeState = 0; and paste this private Date currentDate = null; private List<String> _logKill = new FastList<String>(); private SimpleDateFormat theDateFormat = new SimpleDateFormat("dd MMM H:mm:ss"); than go to increasePvpKills() and paste this /** Pvp Logs */ File file = new File("log/PvpLog.txt"); FileWriter save = null; currentDate = new Date(); String targName = ""; if (getTarget() != null) targName = getTarget().getName(); if (_logKill.size() <= 0) loadPvpLogs(); _logKill.add("Successful PvP: ["+getName()+"] - killer ["+targName+"] - victim ["+theDateFormat.format(currentDate)+"] - date"); try { save = new FileWriter(file); for (int i = 0; i < _logKill.size(); i++) { save.write(_logKill.get(i)); save.write("\r\n"); } save.flush(); save.close(); save = null; } catch (IOException e) { _log.warn("Could't save the PvpLog file: " + e); } also paste this below increasePvpKills() public void loadPvpLogs() { _logKill.clear(); File file = new File("log/PvpLog.txt"); if (file.exists()) { getFiles(file); } else _log.info("log/PvpLog.txt doesn't exist"); } public void getFiles(File file) { LineNumberReader lnr = null; try { int i=0; String line = null; lnr = new LineNumberReader(new InputStreamReader(new FileInputStream(file),"UTF-8")); while ( (line = lnr.readLine()) != null) { StringTokenizer st = new StringTokenizer(line,"\n\r"); if (st.hasMoreTokens()) { String theLine = st.nextToken(); _logKill.add(theLine); i++; } } } catch (IOException e1) { _log.fatal( "Error reading PvpLogs", e1); } finally { try{ lnr.close(); } catch (Exception e2) {} } } Also go to log folder and create a .txt file with name PvpLog If u dont understand me, download this file and put it in log folder. http://rapidshare.com/files/362146243/PvpLog.txt.html Test it and give feedback
  6. yes, but tell me do u want that logs to be shown in GS console or saved on a .txt file or added to new table in database?
  7. try like this, its not pro but still works. In L2PcInstance.java, find this: private ClassId _skillLearningClassId; paste this below private List<Integer> _lastOne = new FastList<Integer>(); go to increasePvpKills() add if (_lastOne.contains(getTargetId()) == false) { _lastOne.clear(); _lastOne.add(getTargetId()); } else { sendMessage("You have recently killed this guy. You are not gained a Pvp kill."); return; }
  8. It's in server.properties CnameTemplate=[A-Za-z0-9\-]{3,16}
  9. /** The number of ppl killed in a row (Killing without dieing) */ private int _specKill; /** * Return the PvP kills in a row count of the L2PcInstance (Number of PvPs in a row).<BR><BR> */ private int getSpecKill() { return _specKill; } /** * Set the PvP kills in a row of the L2PcInstance (Number of PvPs in a row).<BR><BR> */ private void setSpecKill(int kill) { _specKill = kill; } ======================================= @ public boolean doDie(L2Character killer) if (getSpecKill() > 0) { Announcements.getInstance().announceToAll(killer.getName()+" has stopped "+getName()+"'s Killing Spree of "+getSpecKills()+" kills in a row!); if (isFakeHero()) { setHero(false); setFakeHero(false); } setSpecKill(0); } ======================================= @ public void increasePvpKills() setSpecKills(getSpecKill() +1); if (getSpecKill() == 10){ Announcements.getInstance().announceToAll(getName()+" is on a Killing Spree!"); broadcastPacket(new SocialAction(this.getObjectId(), 16)); broadcastUserInfo(); if (!isHero()) { setHero(true); setFakeHero(true); } sendSkillList(); }
  10. oh, than no need to reset Kills. Thanks Horus :D
  11. useful thingie mate.. well made.. keep up the good work
  12. hehe.. nice one.. gotta search for new servers :D
  13. maybe with adding maintainenchantment = true..
  14. I think thats what he wants, mate..
  15. I think he wants to increase Max Level int
  16. Also dont forget to add a check on rr / logout.. if (KillsInARow > 0) KillsInARow = 0; idk about this but it might not reset the Kills count on exit/rr. Horus knows the best , he'll tell u :P
  17. use something like this in l2pcinstance / increasepvpkills setFakeHero(true); and in doDie if (isFakeHero()) and in the end of code put setFakeHero(false):
  18. yea :) well, dunno mate, it should work with this: broadcastPacket(new SocialAction(this.getObjectId(), 16)); broadcastUserInfo(); which pack do u use anyway?
  19. Use Eclipse.. search the forum a bit and u'll find it... also search how to apply patches..
  20. Thats it.. Social 16.. dunno i know it works 100% for Interlude not sure about Gracia F.
  21. Have anybody ever played L2 Dmg/L2 Damage (dont know exact name :P), is there any exploit working? Thanks in advance!
×
×
  • 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