-
Posts
448 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by down
-
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
-
dunno, mb cuz of this <target class_id_restriction="93, 101, 108"/>
-
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();
-
[help] or its possible in combat zone make +1pvp?
down replied to werlex's question in Request Server Development Help [L2J]
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 ) -
Log the PvP Points & Anti-PvP Farming System
down replied to Statique's question in Request Server Development Help [L2J]
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 -
Log the PvP Points & Anti-PvP Farming System
down replied to Statique's question in Request Server Development Help [L2J]
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? -
Log the PvP Points & Anti-PvP Farming System
down replied to Statique's question in Request Server Development Help [L2J]
what kind of logs? Logs in gs console? -
Log the PvP Points & Anti-PvP Farming System
down replied to Statique's question in Request Server Development Help [L2J]
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; } -
[Help]Character name template
down replied to Statique's question in Request Server Development Help [L2J]
It's in server.properties CnameTemplate=[A-Za-z0-9\-]{3,16} -
[help]how to make hero until restart
down replied to jossoo's question in Request Server Development Help [L2J]
/** 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(); } -
[help]how to make hero until restart
down replied to jossoo's question in Request Server Development Help [L2J]
oh, than no need to reset Kills. Thanks Horus :D -
This is an awesome guide mate!
-
useful thingie mate.. well made.. keep up the good work
-
WTS [WTS] Items on L2Pride (Gracia Final)
down replied to down's topic in Marketplace [Items & Chars]
bump -
hehe.. nice one.. gotta search for new servers :D
-
maybe with adding maintainenchantment = true..
-
I think thats what he wants, mate..
-
[Help]Hacker in server.
down replied to Thelasthero's question in Request Server Development Help [L2J]
The noobish error? -
I think he wants to increase Max Level int
-
[help]how to make hero until restart
down replied to jossoo's question in Request Server Development Help [L2J]
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 -
[Help][Semi-Fixed]Adding Heroic Skills
down replied to Statique's question in Request Server Development Help [L2J]
use something like this in l2pcinstance / increasepvpkills setFakeHero(true); and in doDie if (isFakeHero()) and in the end of code put setFakeHero(false): -
[Help][Semi-Fixed]Adding Heroic Skills
down replied to Statique's question in Request Server Development Help [L2J]
yea :) well, dunno mate, it should work with this: broadcastPacket(new SocialAction(this.getObjectId(), 16)); broadcastUserInfo(); which pack do u use anyway? -
[Share] PvP/PK Color system 10 color lvls
down replied to l2redkiller's topic in Server Shares & Files [L2J]
Use Eclipse.. search the forum a bit and u'll find it... also search how to apply patches.. -
[Help][Semi-Fixed]Adding Heroic Skills
down replied to Statique's question in Request Server Development Help [L2J]
Thats it.. Social 16.. dunno i know it works 100% for Interlude not sure about Gracia F. -
Have anybody ever played L2 Dmg/L2 Damage (dont know exact name :P), is there any exploit working? Thanks in advance!
