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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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