Skip to content

.menu Command

Featured Replies

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! ^_^

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

  • Author

Okay. Thanks for help, now i knew what to do!

"Thug!!" its part of code from l2jLink .menu command? Right?

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

  • Author

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

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.