-
Posts
416 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by xXObanXx
-
[L2J] Bug Report Manager Problem
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
dat shit :P but don't work -_- -
[L2J] Bug Report Manager Problem
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
I have an idea... i was thinking... the call is $report $type $msg but... few days ago i've seen that on tvt the %max% for max players is handling from this line inside the TvTEvent.java npcHtmlMessage.replace("%max%", String.valueOf(Config.TVT_EVENT_MAX_LVL)); so... if we were put a code like this? couldn't work? -
[L2J] Bug Report Manager Problem
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
nah... on html that is not a wrong code... but with " " is more "stable" btw don't work too! -
[L2J] Bug Report Manager Problem
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
i've tried that too, sorry! -
[L2J] Bug Report Manager Problem
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
<html> <title>Bug Report Manager</title> <body> <br><br> <center> <table border="0" height=10 bgcolor="444444" width=240> <tr><td align=center><font color="00FFFF">Hello %player%.</font></td></tr> <tr><td align=center><font color="00FFFF">There are no Gms online</font></td></tr> <tr><td align=center><font color="00FFFF">and you want to report something?</font></td></tr> <tr><td align=center><font color="00FFFF">Now it is possible.</font></td></tr> </table> <br> <img src="L2UI.SquareWhite" width=280 height=1> <br><br> <table width=250> <tr> <td><font color="LEVEL">Select Report Type:</font></td> <td><combobox width=105 var=type list=General;Npc;Event;Balance;Other></td> </tr> </table> <br><br> <multiedit var="msg" width="250" height="50"><br> <button value="Report It" action="bypass -h Quest BugReport $report type message" width="128" height="26" back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> <br> <img src="L2UI.SquareWhite" width=280 height=1> <br> <img src="L2UI.SquareWhite" width=280 height=1> </center> </body></html> pretty sure... i've tried with the following calls: action="bypass -h Quest BugReport report type msg" action="bypass -h Quest BugReport report type message" action="bypass -h Quest BugReport report _type msg" action="bypass -h Quest BugReport report _type message" -
[L2J] Bug Report Manager Problem
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
if not, the text wont open... cause it's reading the html from the code..! hmmm.... i think you are right... i'm gonna test it! edit: the logging commands is from me to check...! the call report instead of $report doesn't work too! -
[L2J] Bug Report Manager Problem
xXObanXx posted a question in Request Server Development Help [L2J]
Hello Maxcheaters..! so i've got a bug report manager from here from -=DoctorNo=- Version 2.3 I have L2J High Five (unstable) the problem is: when i'm pressing the button to create the report file, it doesn't work..! it's like the button saying to close the window... the window is closing and nothing happened... no errors, no logs... just nothing... the code: package custom.BugReport; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.StringTokenizer; import java.util.logging.Logger; import com.l2jserver.gameserver.cache.HtmCache; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.network.L2GameClient; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; /** * @author -=DoctorNo=- Version 2.3 */ public class BugReport extends Quest { private final Logger _log = Logger.getLogger(BugReport.class.getName()); private static final int NpcId = 40000; // npc id here private static String htmlLoc = "data/scripts/custom/BugReport/1.html"; public BugReport(int questId, String name, String descr) { super(questId, name, descr); addFirstTalkId(NpcId); addTalkId(NpcId); addStartNpc(NpcId); _log.warning("Test 1"); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { _log.warning("Test 2"); if (event.startsWith("report")) { sendReport(event, npc, player, event); } return ""; } private void sendReport(String event, L2Npc npc, L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); _log.warning("Test 3"); String message = ""; String _type = null; // General, Fatal, Misuse, Balance, Other L2GameClient info = player.getClient().getConnection().getClient(); try { _log.warning("Test 4"); _type = st.nextToken(); while (st.hasMoreTokens()) { message = message + st.nextToken() + " "; } if (message.equals("")) { player.sendMessage("Message box cannot be empty."); return; } String fname = "data/BugReports/" + player.getName() + ".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if (!exist) { player.sendMessage("You have already sent a bug report, GMs must check it first."); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: " + info + "\r\nBug Type: " + _type + "\r\nMessage: " + message); player.sendMessage("Report sent. GMs will check it soon. Thanks..."); for (L2PcInstance allgms : L2World.getInstance().getAllGMs()) { allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Bug Report Manager", player.getName() + " sent a bug report.")); allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Report Type", _type + ".")); } _log.info("Character: " + player.getName() + " sent a bug report."); out.close(); } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { _log.warning("Test 5"); final int npcId = npc.getId(); if (player.getQuestState(getName()) == null) { newQuestState(player); } if (npcId == NpcId) { String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htmlLoc); html = html.replaceAll("%player%", player.getName()); NpcHtmlMessage npcHtml = new NpcHtmlMessage(0); npcHtml.setHtml(html); player.sendPacket(npcHtml); } return ""; } public static void main(final String[] args) { new BugReport(-1, BugReport.class.getSimpleName(), "custom"); System.out.println("CUSTOM: BugReport Manager loaded"); } } and the action from the button on html: action="bypass -h Quest BugReport $report $type $msg" any Idea?! -
Thanks for vouch Nevermore :)
-
I have one for you.. Its on EU West but has free transfer - Unranked - Level 30 I accept the offer of 5€
- 3 replies
-
- unranked
- league of legends
-
(and 3 more)
Tagged with:
-
Selling my Account on L2Sexi because I don't have time to play lineage ! Site: http://l2sexi.es Online People: 450~ Character: GhostHunter Level 85 Skills All +30 Certification Skills Ready (5 Subclasses) Items: Dual Daggers - Custom GOD Weapon +30 Lv7 Attributes (Passive P.Def Augment) Vorpal Armor +30 Lv7 Attributes ( PvP ) Raid Boss Jewels +30 (Blessed Zaken) Tattoo +30 Belt +30 Custom Talismans Currencies: x217 Golden Apgia (Custom coin, Only from Vote Rewards - You can use it to get Custom GOD weapons/armor/items) x361 Giant's Codex - Mastery (Enchant Books to make your skills +30 - Second char etc.) x90 Blessed Scrolls for Weapon (100% Chance on enchanting - You can trade them for armor blessed scrolls in double so you have x180 armor scrolls) 730k~ Gold Knight (Custom coin on server - You can buy everything with this) 700~ Lifestones LV 84/80 (Augments) 20k~ Knight Epaullete (You can use them on castle for talismans or clocks etc.) 18k Fame (You can use fame for make your items pvp) Price: 10€~
-
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
hmmm... i will check it.... btw... thank you very much for your help..! you can lock this topic now! ;) -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
i don't think this will help... a good way is to put the items that are giving HP to restricted items in oly or just with some way to make while player is in oly and the match didn't start yet, the hp will update automaticall every second until the match beggins! -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
sorry... was my fault... i was have error here: System.out.println(activeChar); now i removed this line and working properly..! problem fixed!!! thank you very much man! now... any idea about my first question? (player cannot drop down HP if is in olympiad and match didn't started) (avoid prefrenzy) -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
Error! Exception in thread "AISTPool-5" java.lang.NullPointerException at com.l2jserver.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5092) at com.l2jserver.gameserver.model.actor.tasks.character.HitTask.run(HitTask.java:60) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:93) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) wait a sec... i'm gonna restart the server and try again..! EDIT: Error after restart on server..! Exception in thread "AISTPool-5" null java.lang.NullPointerException at com.l2jserver.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5092) at com.l2jserver.gameserver.model.actor.tasks.character.HitTask.run(HitTask.java:60) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:93) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) null Exception in thread "AISTPool-1" java.lang.NullPointerException at com.l2jserver.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5092) at com.l2jserver.gameserver.model.actor.tasks.character.HitTask.run(HitTask.java:60) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:93) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) null Exception in thread "AISTPool-3" java.lang.NullPointerException at com.l2jserver.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5092) at com.l2jserver.gameserver.model.actor.tasks.character.HitTask.run(HitTask.java:60) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:93) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
am i doing it right? if ((absorbDamage > 0) && (activeChar != null) && (activeChar.getPvpFlag() > 0) && (activeChar.getTarget() != null) && (activeChar.getTarget() instanceof L2MonsterInstance)) { System.out.println(activeChar); System.out.println(activeChar.getTarget()); absorbDamage = 0; } btw i've tried to delete activeChar != null and activeChar.getTarget() != null and it worked but with error Exception in thread "AISTPool-6" -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
i don't know why... but it doesn't work... with this code: if ((absorbDamage > 0) && (activeChar != null) && (activeChar.getPvpFlag() > 0) && (activeChar.getTarget() != null) && (activeChar.getTarget() instanceof L2MonsterInstance) && (!(activeChar.getTarget() instanceof L2PcInstance) && !(activeChar.getTarget() instanceof L2Summon))) { absorbDamage = 0; } else { setCurrentHp(getCurrentHp() + absorbDamage); } -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
isn't better to put !(activeChar.getTarget() instanceof L2MonsterInstance) where you have !(activeChar.getTarget() instanceof L2Summon) ? -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
just few seconds ago i found a way to stop the drain while have flag.. L2Character.java // Absorb HP from the damage inflicted double absorbPercent = getStat().calcStat(Stats.ABSORB_DAMAGE_PERCENT, 0, null, null); if (absorbPercent > 0) { int maxCanAbsorb = (int) (getMaxRecoverableHp() - getCurrentHp()); int absorbDamage = (int) ((absorbPercent / 100.) * damage); if (absorbDamage > maxCanAbsorb) { absorbDamage = maxCanAbsorb; // Can't absord more than max hp } - if ((absorbDamage > 0) - { - setCurrentHp(getCurrentHp() + absorbDamage); - } + if ((absorbDamage > 0) && (activeChar.getPvpFlag() > 0)) + { + absorbDamage = 0; + } + else + { + setCurrentHp(getCurrentHp() + absorbDamage); + } } working well in game... but on every normal attack i do i got this error: Exception in thread "AISTPool-3" java.lang.NullPointerException at com.l2jserver.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5084) at com.l2jserver.gameserver.model.actor.tasks.character.HitTask.run(HitTask.java:60) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:93) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) any idea how to stop this annoying error?! -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
i have the latest version of L2j H5 and this location doesn't exist anymore... and L2SkillDrain.java too! edit: this location exists..! but the only files that have inside the folder is: L2SkillDefault.java, L2SkillsSiegeFlag.java, L2SkillSummon.java -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
seriusly? i'm so sorry! didn't see that.! but... do you have any solution for my questions?! -
[Help][H5] Questions About 2 Codes (In Olympiad And Skills)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
am i in wrong section? sorry didn't know that... where i have to post it?! -
Hello maxcheaters..! so i have an idea about 2 fixes for my server but i need your usefull help to do it right..! so the first code is about Olympiad... i was thinking how to avoid the prefrenzy, angelic icon and other things like that...! so i was thinking... if i can put a code that when you are in Oly before start the match, the hp will cannot drop down...! i mean... as much as hp you receive (from buffs or armors, weapons etc.) the HP cannot drop down! just to staying full! can we do that?! the second code is something about the drain from mobs while in flag...! i've tried this code on L2PcInstance.java: public void doAttack(L2Character target) { super.doAttack(target); + if ((getPlayer().getPvpFlag() > 0) && target.isMonster()) + { + getPlayer().stopSkillEffects(false, 310); + return; + } // cancel the recent fake-death protection instantly if the player attacks or casts spells getPlayer().setRecentFakeDeath(false); } It's working as i want, but... with the command: getPlayer().stopSkillEffects(false, 310); the skill is getting removed! what method i have to put for the skill to just don't work while player if flaged but doesn't getting removed?! can we fix that too?! (if the "false" in stopSkillEffects means that the buff will not removed and if "true" will removed... i checked it and doesn't work.!)
-
Questions About An L2 Server!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
ok thank you very much for your time and your help... for all my topics! ;) -
Questions About An L2 Server!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
1. Thank's 2. No i don't think to do that cause without those i don't think the server is running... but... what is the diferrence with the other .jars from server's pack? are just the same files or have something "better" on their source?! 3. Thank's! -
Hello Maxcheaters..! I want to explain me some (maybe) "stupid" things about an l2 server that i'm searching for but i can't find something..! so let's start: 1. What is Telnet on Server Configs, what exactly is it and what is it doing on server? is better to Turn it on or off? 2. I found on L2j's SVN on trunk some repositories: a. JavaEngine b. JythonEngine c. MMOCore d. Netcon What exactly are these? their .jar files is and on Server's Project! want more these .jar files have? is better than normal .jars from server pack? and if yes what are helping for? Is it better to use for my server those "custom" .jars or not? and if yes, why?! 3. (the last question) what is gameguard? what exactly is it? what helping for on a server? is better to use gameguard for my server or not? and if yes, why?! Thank you very much everyone that will read this post and answer on my questions! I will appreciate it! :)
