Guest Posted August 31, 2011 Share Posted August 31, 2011 so i made it to were when you attack and a monster attacks it shows combat text in the chat box. everything i added was in the modcombat on server side.ive gone ahead and made a checkbox and named it combatcheck. ive got the rest of my option form work all taken care of. client side in frmmain```Private Sub combatcheck_Click()PlaySound Sound_ButtonClickIf combatcheck.Value = 0 Thencombat_show = TrueElsecombat_show = FalseEnd Ifand in mod constants client side.[code]public combat_show as boolean[/code]End Sub```so my problem is in the server side how to read the checkboxs value to use a``` if combat_show = false true thenCall PlayerMsg(index, "You hit for " & Damage, Yellow) End If```should i do something like?```publicsub sendcombatcheck(ByVal combat_show as long)```or```publicsub sendcombatcheck(ByVal combatcheck as byte)```with innerds of```Dim Buffer As clsBufferSet Buffer = New clsBufferBuffer.WriteLong CcombatcheckBuffer.WriteString textSendData Buffer.ToArray()Set Buffer = NothingEnd Sub```and place Ccombatcheck in mod enumerations.add```dim combat_show as long ```to the correct sub server side?cause thats what ive been trying and failing at. help please anybody. Link to comment Share on other sites More sharing options...
Beanie93 Posted September 2, 2011 Share Posted September 2, 2011 Send a packet to the server, and then make a boolean in the server. When the packet arrives the server, that boolean turns true, or false, and then make it so, depending the value, your battle messages will show or not. 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