Jump to content

Question

Posted

Hello to all! I found good menu panel  http://www.maxcheaters.com/topic/181066-menu-command/ but have one problem, after restart all settings in menu change to default "on". Me need help for modify this, i mean save this settings from menu panel to mysql database. I understand that it is necessary to change code of this menu panel, but don't have skill for do it alone. HELP PLS :)  Sry for bad english! ^_^

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

you have to create a new table for navicat..

after you have to make one update every where... 

example: trade- on/off || gain xp- on/off

 

when some one from this will be 0 than mean disable

when 1 that mean enabled

                    +        {
                    +            if (activeChar.isBuffProtected())
                    +            {
                    +                +activeChar.setIsBuffProtected(false);
                    +                +activeChar.sendMessage("Buff protection is disabled.");
                    +                +Menu.mainHtml(activeChar);
                  +                    st = con.prepareStatement("UPDATE custom_menu SET xp_off=0 WHERE trade_off=?");
                   +                   st.setInt(0, objectId);
                   +                   st.executeUpdate();
                    +            }
                    +            else
                    +            {
                    +                activeChar.setIsBuffProtected(true);
                    +                activeChar.sendMessage("Buff protection is enabled.");
                    +                Menu.mainHtml(activeChar);
                  +                    st = con.prepareStatement("UPDATE custom_menu SET xp_off=1 WHERE trade_off=?");
                   +                   st.setInt(1, objectId);
                   +                   st.executeUpdate();
                    +            }

something like this ...after you have to make a check at enter world...

and for bypass  and datatable i think so you have to check it per char and i dont know how to make it :/

Edited by Thug!!
  • 0
Posted (edited)

RequestBypassToServer.java here is the part wich i show you :)

 

and yes..this is from .menu

 

check this java i said up ..and you will understand what i said

Edited by Thug!!
  • 0
Posted (edited)

I tried to do what you said, have so mush errors... Can u cut part of java code which refers to .menu command from l2jLink source's? Would be very grateful to you!!!

http://www.mediafire.com/download/hhxwkvu63anf0w7/L2jLink_1.4.0_Source_.rar

Edited by HellsoN

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