hardcorex9 Posted August 31, 2012 Author Share Posted August 31, 2012 Could someone please tell me a Script that can make the Bank as a button like on the char button and the inv button. if you can please tell me if there is a script for it because i cant find one about changing something like that into a button.regardsHardcorex9 Link to comment Share on other sites More sharing options...
PD Posted August 31, 2012 Share Posted August 31, 2012 First open up the client.vbp and open up modEnumeration and find:```' Make sure CMSG_COUNT is below everything elseCMSG_COUNT```Above that add:```COpenBank```Open up modClientTCP and at the bottom add this in:```Sub SendOpenBank()Dim Buffer As clsBuffer' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo errorhandlerSet Buffer = New clsBufferBuffer.WriteLong COpenBankSendData Buffer.ToArray()Set Buffer = Nothing' Error handlerExit Suberrorhandler:HandleError "SendOpenBank", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit SubEnd Sub```Open up frmMain and add in a button. Double click the button and add this code in:```Call SendOpenBank```Open up the server.vbp and open up modEnumeration. Find:```' Make sure CMSG_COUNT is below everything elseCMSG_COUNT```Above that add:```COpenBank```Open up modHandleData. At the bottom of Public Sub InitMessages() add in:```HandleDataSub(COpenBank) = GetAddress(AddressOf HandleOpenBank)```At the bottom of modHandleData add in this:```Sub HandleOpenBank(ByVal index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)SendBank indexEnd Sub```Once you done that, just run both the client and server, login and click on the button. Link to comment Share on other sites More sharing options...
hardcorex9 Posted August 31, 2012 Author Share Posted August 31, 2012 thank you works fine 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