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

Adding a click in.


DarkEdge
 Share

Recommended Posts

```
    If Button = vbKeyRButton Then
        If SpellMemorized > 0 Then
            If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then
                If Player(MyIndex).Moving = 0 Then
                    Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR)

                    Player(MyIndex).Attacking = 1
                    Player(MyIndex).AttackTimer = GetTickCount
                    Player(MyIndex).CastedSpell = YES
                Else
                    Call AddText("Cannot cast while walking!", BRIGHTRED)
                End If
            End If
        Else
            Call AddText("No spell here memorized.", BRIGHTRED)
        End If
    End If
```
I get error : Compile Error: Variable not defined

(I don't code, second day messing around with VB6)

I just want it so that you memorize the spell then you can right click anywhere and it will cast the spell you have memorized and on the npc/player your clicked on.

Thanks for the help in advance.
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...