Jump to content
  • 0

Hero Diary Problem


Question

Posted

Hi , when period ends and new heroes are formed

 

if a players go on the Monument and click on Hero diary (to check raid boss etc)

 

i get this message in the gameserver:

 

*Note : if i restart the server then it works ok without this errror.

[Character: Test[268479287] - Account: testchar - IP: ] sent bad
 RequestBypassToServer: "_diary?class=88&page=1"
java.lang.IllegalArgumentException: Integer value required, but not specified
        at com.l2j.gameserver.templates.StatsSet.getInteger(StatsSet.java:215)
        at handlers.bypasshandlers.OlyMatch.useBypass(OlyMatch.java:80)
        at com.l2j.gameserver.model.actor.L2Npc.onBypassFeedback(L2Npc.java:890
)
        at com.l2j.gameserver.network.clientpackets.RequestBypassToServer.runIm
pl(RequestBypassToServer.java:82)
        at com.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2Ga
meClientPacket.java:92)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

 

Hi , when period ends and new heroes are formed

 

if a players go on the Monument and click on Hero diary (to check raid boss etc)

 

i get this message in the gameserver:

 

*Note : if i restart the server then it works ok without this errror.

[Character: Test[268479287] - Account: testchar - IP: ] sent bad
 RequestBypassToServer: "_diary?class=88&page=1"
java.lang.IllegalArgumentException: Integer value required, but not specified
        at com.l2j.gameserver.templates.StatsSet.getInteger(StatsSet.java:215)
        at handlers.bypasshandlers.OlyMatch.useBypass(OlyMatch.java:80)
        at com.l2j.gameserver.model.actor.L2Npc.onBypassFeedback(L2Npc.java:890
)
        at com.l2j.gameserver.network.clientpackets.RequestBypassToServer.runIm
pl(RequestBypassToServer.java:82)
        at com.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2Ga
meClientPacket.java:92)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

what pack are you using?

 

paste your _diary requestBypass

Edited by ⏇Melron⏇℠Abs
  • 0
Posted (edited)


        catch (Exception e)

        {

            _log.log(Level.WARNING, getClient()+" sent bad RequestBypassToServer: \""+_command+"\"", e);

            if (activeChar.isGM())

            {

                StringBuilder sb = new StringBuilder(200);

                sb.append("<html><body>");

                sb.append("Bypass error: "+e+"<br1>");

                sb.append("Bypass command: "+_command+"<br1>");

                sb.append("StackTrace:<br1>");

                for (StackTraceElement ste : e.getStackTrace())

                    sb.append(ste.toString()+"<br1>");

                sb.append("</body></html>");

                // item html

                NpcHtmlMessage msg = new NpcHtmlMessage(0,12807);

                msg.setHtml(sb.toString());

                msg.disableValidation();

                activeChar.sendPacket(msg);

            }

       }


        else

        {

            hero = Hero.getInstance().getHeroesDiaries().get(classId);

            html.setFile(activeChar.getHtmlPrefix(), "data/html/olympiad/hero_diary.htm");

            if (hero != null)

            {

                final int numOfEntries = hero.getInteger("bosses");

                for (int i = page*100; i >= (page-1)*100; i--)

                {

                    if (numOfEntries < i)

                        continue;

                    date.setTimeInMillis(hero.getLong("time"+i));

                    entries.append("<br><font color=\"LEVEL\">Year: " + (date.get(Calendar.YEAR)) + " Month: " + (date.get(Calendar.MONTH)+1) + " Day: " + date.get(Calendar.DAY_OF_MONTH) + " Hour: " + date.get(Calendar.HOUR_OF_DAY) + "</font><br1>");

                    final int data = hero.getInteger("boss"+i);

                    if (data > 9)

                        entries.append("&@" + data + "; was defeated.<br>");

 

                    else if (data == 0)

                        entries.append("Gained Hero status.<br>");

                    else

                        entries.append("&%" + data + "; was taken.<br>");

                }

                if (numOfEntries/ 100 > page+1)

                    html.replace("%page%", "<button value = \"Next\" action=\"bypass -h diary ?class=" + classId + "&page=" + (page+1) + "\"  back=\"L2UI_CT1.Button_DF_Small_DOWN\" fore=\"L2UI_CT1.Button_DF_Small\" width=70 height=25 >");

            }

        }

 

Edited by GameBlonD

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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