XPiXel Posted May 22, 2011 Author Share Posted May 22, 2011 **This guide 100% supports Version 2.0,but some parts may not work on outdated versions.**________________________________________________________________________________I would like to give credit to **Grimmnak**, who taught me how to do this, but I decided to share this to the community, because there seems to be no tutorial about this.By the end of the tutorial,you will have more/less animated buttons in-game. Everything is client-side,and of course,you need **Visual Basic 6(Enterprise/Professional)**.1.Open up your **"client.vbp"**.2.Open up **ModConstants** and search for:```' animated buttonsPublic Const MAX_MENUBUTTONS As Long = 4Public Const MAX_MAINBUTTONS As Long = 6Public Const MENUBUTTON_PATH As String = "\Data Files\graphics\gui\menu\buttons\"Public Const MAINBUTTON_PATH As String = "\Data Files\graphics\gui\main\buttons\"```3.Change this to the number of animated buttons you want:```Public Const MAX_MAINBUTTONS As Long = 6```4.Open up **ModGeneral** and search for:``` ' main - party With MainButton(6) .fileName = "party" .state = 0 ' normal End With```5.**(You can obviously change "changeme" and you can change "MainButton(7)" to another number)**Add this below it:``` ' main - changeme With MainButton(7) .fileName = "changeme" .state = 0 ' normal End With```6.Open up **frmMain** and make a picturebox with these properties:>! **(These properties are requirements for the 7th button.)**Name:imgButtonIndex:7(These properties are recommendations for the 7th button.)Height:29Width:69Top:168Left:603 7.Make a new picture in:```data files\graphics\gui\main\buttons``` And name it:(Once again,changeme could obviously be changed. It follows the one here:``` .fileName = "changeme"```"changeme_norm" - This will be the normal status of the button."changeme_hover" - This will be the hovered status of the button."changeme_click" - This will be the clicked status of the button.8.Test it, it should work now! If it doesn't appear,hover a little over the skills button! (If you followed the recommendations for the picturebox, it will appear.) (The unappearing button when logged in can be fixed easily by adding a picture of the button on your main.jpg.)________________________________________________________________________________Glad to help out,if you get any issues on this,leave me a PM.Once again,I will say,I give alot of credit to **Grimmnak**. Link to comment Share on other sites More sharing options...
Piteq Posted May 22, 2011 Share Posted May 22, 2011 Sorry, my english is bad and i don't understand… What this tutorial do? Link to comment Share on other sites More sharing options...
Yxxe Posted May 22, 2011 Share Posted May 22, 2011 @Piteq:> Sorry, my english is bad and i don't understand… What this tutorial do?It allows you to change the amount of buttons (with hover effects etc.) that are allowed on the main game screen or main menu. Link to comment Share on other sites More sharing options...
Link Posted May 22, 2011 Share Posted May 22, 2011 Nice release, great tut- keep em comin.Smile_ :cheesy: Link to comment Share on other sites More sharing options...
Grimnnak Posted May 22, 2011 Share Posted May 22, 2011 Thanks for adding me in credits Apple :D Link to comment Share on other sites More sharing options...
benedek11 Posted December 27, 2011 Share Posted December 27, 2011 Wow great tut. But where can i put my script? It opens calc.exe when clicking on itDim ret As Variantret = Shell("c:\WINDOWS\system32\calc.exe", vbNormalFocus) Link to comment Share on other sites More sharing options...
kahnival Posted March 28, 2012 Share Posted March 28, 2012 I'm probably doing something stupid here but I keep getting this error…I'm trying to fix the white ox that Aaltars quest system gives you. Link to comment Share on other sites More sharing options...
Zopto Posted March 28, 2012 Share Posted March 28, 2012 you trying to chage look of that white button??? xD just copy and paste any other buttons and paste code of that white button(if you dont understude some 1 here hu better spek englesh will help you)Nice tutorial just what i need tyy!! Link to comment Share on other sites More sharing options...
kahnival Posted March 28, 2012 Share Posted March 28, 2012 Oh ok cool that makes sense :) ThanksI'll try it in the morning! Link to comment Share on other sites More sharing options...
Kemerd Posted March 28, 2012 Share Posted March 28, 2012 Thanks, this will help with adding future systems, such as if you need a button for pet, or quest, or farming. ETC. Link to comment Share on other sites More sharing options...
whittenator Posted April 3, 2012 Share Posted April 3, 2012 Alright so say I made a button check box button at the Menu for a Full Screen option. How do I get the button when clicked on to load the game into a Full Screen for whoever clicks on it? I also want this to buffer in size according to the monitor size of the person playing the game…where do I need to add code...im just unsure of where to add Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now