DarkEdge Posted August 15, 2009 Author Share Posted August 15, 2009 ``` 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 More sharing options...
DarkEdge Posted August 15, 2009 Author Share Posted August 15, 2009 I got it working. I should be allowed to delete my own post if no one else replied. =/ Mod delete this please, ty. 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