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

Spell Problem


egemert35
 Share

Recommended Posts

Solved.

If you get same bug then follow this way;

1-Look at the Sub picSpells_MouseMove

```

Private Sub picSpells_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)

Dim spellslot As Long

Dim x2 As Long, y2 As Long

' If debug mode, handle error then exit out

If Options.Debug = 1 Then On Error GoTo errorhandler

SpellX = x

SpellY = y

spellslot = IsPlayerSpell(x, y)

If DragSpell > 0 Then

Call BltDraggedSpell(x + picSpells.Left, y + picSpells.top)

Else

If spellslot <> 0 Then

x2 = x + picSpells.Left - picSpellDesc.width - 1

y2 = y + picSpells.top - picSpellDesc.height - 1

UpdateSpellWindow PlayerSpells(spellslot), x2, y2

LastSpellDesc = PlayerSpells(spellslot)

Exit Sub

End If

End If

picSpellDesc.Visible = False

LastSpellDesc = 0

' Error handler

Exit Sub

errorhandler:

HandleError "picSpells_MouseMove", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext

Err.Clear

Exit Sub

End Sub

```

2-Select "Call BltDraggedSpell(x + picSpells.Left, y + picSpells.top)" and

```

If DragSpell > 0 Then

Call BltDraggedSpell(x + picSpells.Left, y + picSpells.top)

Else

```

3-Replace with this

```

Call BltDraggedSpell(x, y)

```
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...