Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Options that affect server?


Guest
 Share

Recommended Posts

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_ButtonClick
If combatcheck.Value = 0 Then
combat_show = True
Else
combat_show = False
End If

and 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 then
Call 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 clsBuffer
Set Buffer = New clsBuffer
Buffer.WriteLong Ccombatcheck
Buffer.WriteString text
SendData Buffer.ToArray()
Set Buffer = Nothing
End 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

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
 Share

×
×
  • Create New...