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

Adding an Action Bar to Your Game!


zade_o
 Share

Recommended Posts

  • Replies 154
  • Created
  • Last Reply

Top Posters In This Topic

Hello,

Ok, I am having a few problems when I try to make the .exe file with this code.

In frmMirage in **Private Sub Image5_Click()**, I get an error in line
```
Image5.Picture = Image16.Picture

```of Image16 that 'Variable no defined'.

Also, for modHandleData in service source in **Sub HandleData**, I get an error in case
```
Case "loadspell1"
    FileData = ReadINI("SK1", "sid", App.Path & "\Scripts\db\" & GetPlayerName(Index) & ".ini", vbNullString)
    Call SendDataTo(Index, "getspell1" & SEP_CHAR & FileData & END_CHAR)
Exit Sub

```of FileData that 'Variable no defined'.

Please help me on this.
-Thanks in advance
Link to comment
Share on other sites

@Rose:

> Well thanks for the 1-4 for Items Robin xP

It's the basic code. In my hotbar, it's built upon a custom type.

It has SlotType and ObjectNumber. I can then read the SlotType byte to determine whether to send an item use packet, or a spell cast packet.
Link to comment
Share on other sites

@Robin:

> It's not hard at all.
>
> ```
> Public Hotbar(1 to 10) as long
> ```
> ```
> isUse = false
>
> Select Case KeyCode
>     vbKeyF1
>         hotslot = 1
>         isUse = true
>     vbKeyF2
>         hotslot = 2
>         isUse = true
>     vbKeyF3
>         hotslot = 3
>         isUse = true
>     vbKeyF4
>         hotslot = 4
>         isUse = true
> end select
>
> If isUse = true then
>     call SendData("useitem" & SEP_CHAR & hotslot & END_CHAR)
> end if
> ```
> It's much easier than people make it out to be.

Im so sorry for asking about this but, could someone tell me were this would be placed and what would i have to do to make that work?  Im just a bit confused, Sorry.
Thanks.
Link to comment
Share on other sites

@Zamin:

> Hello,
>
> Ok, I am having a few problems when I try to make the .exe file with this code.
>
> In frmMirage in **Private Sub Image5_Click()**, I get an error in line
> ```
> Image5.Picture = Image16.Picture
>
> ```of Image16 that 'Variable no defined'.
>
> Also, for modHandleData in service source in **Sub HandleData**, I get an error in case
> ```
> Case "loadspell1"
>     FileData = ReadINI("SK1", "sid", App.Path & "\Scripts\db\" & GetPlayerName(Index) & ".ini", vbNullString)
>     Call SendDataTo(Index, "getspell1" & SEP_CHAR & FileData & END_CHAR)
> Exit Sub
>
> ```of FileData that 'Variable no defined'.
>
> Please help me on this.
>
> -Thanks in advance

some errors for me.please help us.why we are getting this errors?
Link to comment
Share on other sites

i am double clicking 2\. spell and it going in action bars.and i am clicking 3\. spell in spells box and it going in actions bars.but when i click images on action bars it hitting 1\. spell in my spell box.it dont hit 2\. spell or 3\. spell.it is hitting only 1\. spell.

sorry for bad english :)
Link to comment
Share on other sites

  • 1 month later...
Sweet jesus you're a douche bag Robin.

Of course that code can be revised, I could make it better myself if I went through and redid it, I just cranked this out as a rough draft. And the majority of this code is to handle displaying the icons and whatnot so your simple hotbar thing wouldn't cover it all.

I know you think you're the most amazing programmer, but try not to be a dick about other peoples source unless you plan on rewriting it completely in a better fashion and releasing it to the public domain for free.
Link to comment
Share on other sites

@Ghost:

> Sweet jesus you're a douche bag Robin.
>
> Of course that code can be revised, I could make it better myself if I went through and redid it, I just cranked this out as a rough draft. And the majority of this code is to handle displaying the icons and whatnot so your simple hotbar thing wouldn't cover it all.
>
> I know you think you're the most amazing programmer, but try not to be a dick about other peoples source unless you plan on rewriting it completely in a better fashion and releasing it to the public domain for free.

Here here
Link to comment
Share on other sites

hope you don't mind i post the fix for

> - typing a number when talking in chat attempts to cast a spell

Just go to frmMirage

add this just at the begining of    Private Sub Form_KeyUp 

```
'check cast

    Dim Check

Check = txtMyTextBox.Text Like "[0-9]"

If Check = True Then

txtMyTextBox.Locked = True
txtMyTextBox.Text = ""

Else

    txtMyTextBox.Locked = False

End If

'end check
```

and replace
```
If KeyCode = vbKey0 And frmMirage.txtMyTextBox.visible=false Then
        Dim ssp As String

    Dim j
    ssp = Label14(10).Caption
    i = 0
    j = 0
    Dim p As String
    Dim r As String

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image5.Picture = Image16.Picture
        Call SendData("setspell10" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image5.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey1 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(1).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image7.Picture = Image16.Picture
        Call SendData("setspell1" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image7.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey2 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(2).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image8.Picture = Image16.Picture
        Call SendData("setspell2" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image8.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey3 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(3).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image9.Picture = Image16.Picture
        Call SendData("setspell3" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image9.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If

    End If
    If KeyCode = vbKey4 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(4).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image10.Picture = Image16.Picture
        Call SendData("setspell4" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image10.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey5 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(5).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image11.Picture = Image16.Picture
        Call SendData("setspell5" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image11.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

```

with that:
```
    If KeyCode = vbKey0 And frmMirage.txtMyTextBox.Locked <> False Then
        Dim ssp As String

    Dim j
    ssp = Label14(10).Caption
    i = 0
    j = 0
    Dim p As String
    Dim r As String

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image5.Picture = Image16.Picture
        Call SendData("setspell10" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image5.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey1 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(1).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image7.Picture = Image16.Picture
        Call SendData("setspell1" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image7.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey2 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(2).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image8.Picture = Image16.Picture
        Call SendData("setspell2" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image8.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey3 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(3).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image9.Picture = Image16.Picture
        Call SendData("setspell3" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image9.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If

    End If
    If KeyCode = vbKey4 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(4).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image10.Picture = Image16.Picture
        Call SendData("setspell4" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image10.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey5 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(5).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image11.Picture = Image16.Picture
        Call SendData("setspell5" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image11.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

  If KeyCode = vbKey6 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(6).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image12.Picture = Image16.Picture
        Call SendData("setspell6" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image12.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey7 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(7).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image13.Picture = Image16.Picture
        Call SendData("setspell7" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image13.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey8 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(8).Caption
    i = 0
    j = 0
    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image14.Picture = Image16.Picture
        Call SendData("setspell8" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image14.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey9 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(9).Caption
    i = 0
    j = 0
    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image15.Picture = Image16.Picture
        Call SendData("setspell9" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image15.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

```
Link to comment
Share on other sites

hope you don't mind i post the fix for

> - typing a number when talking in chat attempts to cast a spell

Just go to frmMirage

add this just at the begining of    Private Sub Form_KeyUp 

```
'check cast

    Dim Check

Check = txtMyTextBox.Text Like "[0-9]"

If Check = True Then

txtMyTextBox.Locked = True
txtMyTextBox.Text = ""

Else

    txtMyTextBox.Locked = False

End If

'end check
```

and replace
```
If KeyCode = vbKey0 And frmMirage.txtMyTextBox.visible=false Then
        Dim ssp As String

    Dim j
    ssp = Label14(10).Caption
    i = 0
    j = 0
    Dim p As String
    Dim r As String

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image5.Picture = Image16.Picture
        Call SendData("setspell10" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image5.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey1 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(1).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image7.Picture = Image16.Picture
        Call SendData("setspell1" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image7.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey2 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(2).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image8.Picture = Image16.Picture
        Call SendData("setspell2" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image8.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey3 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(3).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image9.Picture = Image16.Picture
        Call SendData("setspell3" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image9.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If

    End If
    If KeyCode = vbKey4 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(4).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image10.Picture = Image16.Picture
        Call SendData("setspell4" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image10.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey5 And frmMirage.txtMyTextBox.visible=false Then

    ssp = Label14(5).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image11.Picture = Image16.Picture
        Call SendData("setspell5" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image11.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

```

with that:
```
    If KeyCode = vbKey0 And frmMirage.txtMyTextBox.Locked <> False Then
        Dim ssp As String

    Dim j
    ssp = Label14(10).Caption
    i = 0
    j = 0
    Dim p As String
    Dim r As String

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image5.Picture = Image16.Picture
        Call SendData("setspell10" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image5.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey1 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(1).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image7.Picture = Image16.Picture
        Call SendData("setspell1" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image7.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey2 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(2).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image8.Picture = Image16.Picture
        Call SendData("setspell2" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image8.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

    If KeyCode = vbKey3 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(3).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image9.Picture = Image16.Picture
        Call SendData("setspell3" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image9.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If

    End If
    If KeyCode = vbKey4 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(4).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image10.Picture = Image16.Picture
        Call SendData("setspell4" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image10.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey5 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(5).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image11.Picture = Image16.Picture
        Call SendData("setspell5" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image11.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

  If KeyCode = vbKey6 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(6).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image12.Picture = Image16.Picture
        Call SendData("setspell6" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image12.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey7 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(7).Caption
    i = 0
    j = 0

    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image13.Picture = Image16.Picture
        Call SendData("setspell7" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image13.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey8 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(8).Caption
    i = 0
    j = 0
    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image14.Picture = Image16.Picture
        Call SendData("setspell8" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image14.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If
    If KeyCode = vbKey9 And frmMirage.txtMyTextBox.Locked <> False Then

    ssp = Label14(9).Caption
    i = 0
    j = 0
    While i < lstSpells.ListCount
        p = lstSpells.List(i)
        r = Right(p, Len(p) - 3)
        If StrComp(r, ssp) = 0 Then
            j = i
        End If
        i = i + 1
    Wend
    If GetAsyncKeyState(2) <> 0 Then
        Image15.Picture = Image16.Picture
        Call SendData("setspell9" & SEP_CHAR & Null & END_CHAR)
    Else
        If Image15.Picture <> Image16.Picture Then
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            SpellMemorized = Val#(lstSpells.List(j))
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
            If Player(MyIndex).Spell(lstSpells.ListIndex + 1) > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                        Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)
                        Player(MyIndex).Attacking = 1
                        Player(MyIndex).AttackTimer = GetTickCount
                        Player(MyIndex).CastedSpell = YES
                End If
            Else
                Call AddText("No spell in this slot.", BRIGHTRED)
            End If
        End If
    End If
    End If

```
Link to comment
Share on other sites

  • 2 weeks later...
can somone help me?
i finished put evrything in there places and when im trying to run the server its Complie clearly
no errors no bugs
but when im trying to open the client when the server (with the AB scripts on) its go to the VB6 (with the server) and mark this:
"FileData =" 
In case:

```
        Case "loadspell1"
            FileData = ReadINI("SK1", "sid", App.Path & "\Scripts\db\" & GetPlayerName(Index) & ".ini", vbNullString)
            Call SendDataTo(Index, "getspell1" & SEP_CHAR & FileData & END_CHAR)
            Exit Sub
```
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...