Jump to content

xXObanXx

Members
  • Posts

    416
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by xXObanXx

  1. It's the only thing I can see that could be causing it hm....

     

    U could try to change this but I don't think it can affect.

    <td><combobox width=105 var=type list=General;Npc;Event;Balance;Other></td>
    
    to

    <td><combobox width="105" var="type" list="General;Npc;Event;Balance;Other"></td>
    

    nah... on html that is not a wrong code... but with " " is more "stable"

     

    btw don't work too!

  2. True soz, my newbie question filter didn't work properly... let me figure out what's wrong...

    Post full html pls :P

    U sure that what Tryskell said isn't working?

    <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"
  3. Are you adding the proper line inside scripts.cfg?

    if not, the text wont open... cause it's reading the html from the code..!

     

    Instead of logging "test" stuff, log the way the command is cutted. If nothing happens, it probably means the bypass isn't correctly cutted.

     

    Probably "report" instead of "$report" in your bypass should make it work.

     

    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!

  4. 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?!

  5. 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€~





     

  6. If I'm not wrong the only way to prefrenzy is with Conversion weapon so you could just go to .xml of Converstion type weapons and add isolyrestricted="true"

    and if you don't want angelic icon I think if u put npc no-attackables it blocks heal too, not sure u should test

    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!

  7. This thing is pissing me off xDDD i forgot null checks but... however..

     

     

    						if (absorbDamage > 0)
     						{
    +							if (this != null && (this instanceof L2PcInstance) && (target instanceof L2MonsterInstance) && (((L2PcInstance) this).getPvpFlag() > 0))
    +							{
    +								absorbDamage = 0;
    +							}
     							setCurrentHp(getCurrentHp() + absorbDamage);
     						}
     					}
    
    It's just the wrong way, SkillDrain.java was the correct way :3

     

    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)

  8. I just checked the code where are you acting and I don't really get why u used "activeChar", wait a second I post you another try

     

    						if (absorbDamage > 0)
     						{
    +							if ((this instanceof L2PcInstance) && (target instanceof L2MonsterInstance) && (((L2PcInstance) this).getPvpFlag() > 0))
    +							{
    +								absorbDamage = 0;
    +							}
     							setCurrentHp(getCurrentHp() + absorbDamage);
     						}
     					}
    
    try it

     

    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)
    
    
  9. well it's not which I posted but should work too... messing up in L2Character is not the best option btw

    u could try to System.out.println(activeChar); System.out.println(activeChar.getTarget()); to see if some of them is null when that method is called

    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"

  10. No because like I posted, we are avoiding playerVsplayer and playerVsSummon

    well u could put if target instanceof L2MonsterInstance without the "!", yep do it

     

     

    if (absorbDamage > 0 && activeChar != null && activeChar.getPvpFlag() > 0 && activeChar.getTarget() != null && (activeChar.getTarget() instanceof L2MonsterInstance))
    {
    absorbDamage = 0;
    }
    

    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);
    					}
    
  11. Take care coz you won't get hp if you are hitting players.

    You must create a check like..

     

    if (absorbDamage > 0 && activeChar != null && activeChar.getPvpFlag() > 0 && activeChar.getTarget() != null && !(activeChar.getTarget() instanceof L2PcInstance) && !(activeChar.getTarget() instanceof L2Summon))
    {
    absorbDamage = 0;
    }
    

    isn't better to put 

    !(activeChar.getTarget() instanceof L2MonsterInstance)

    where you have 

    !(activeChar.getTarget() instanceof L2Summon)

    ?

  12. latest h5:

     

    5ed3cb03ea.png

     

    If you're using unstable... just move to stable if you don't wanna be here 24/7 requesting help coz of strange bugs.

     

    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?!

  13. about skill drain... which pack are u using?

    because here it is com.l2jserver.gameserver.model.skills.l2skills.L2SkillDrain, you could simply add a check there, i'll check the rest after eating ;D

    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

  14. 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.!)

  15.  

    2)These are not "custom" jar files, you just need it to compile correctly and get your server working, don't even think about removing it.

     

    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!

  16. 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! :)

×
×
  • Create New...