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

[CS:DE] Hotbar does not use the skills when I press a key.


gallighanmaker
 Share

Recommended Posts

Hello guys, I'm using the crystalshire and I think this engine does not have the function to use the skills to press a key, it only works if I click on the icon of the skill that is in the hotbar.

Ex:

```
' hotbar
Public Sub Hotbar_DoubleClick()

Dim slotNum As Long

slotNum = IsHotbarSlot(GlobalX, GlobalY)
If slotNum > 0 Then
SendHotbarUse slotNum
End If
End Sub

```
but this way works properly, but I would like to use shortcuts to get the skills when you press the button according to the hotbar.

I think I could use the: **Public Sub CheckKeys() **that contains the keys to move the character etc, but as would be to detect the key correctly?

Would look like this?:

```
' hotbar
For slotNum = 1 To MAX_HOTBAR
If GetAsyncKeyState(vbKey0) + slotNum Then
SendHotbarUse slotNum
End If

If GetAsyncKeyState(111) + slotNum Then
SendHotbarUse slotNum
End If

Next

```

I left as the method above but are trying to use the skill in the first slot repeatedly ;x

And how i get skill name used? to use em SendActionMsg Ex:

SendActionMsg mapNum, "Skill Name", BrightGreen, 1, (GetPlayerX(index) * 32), (GetPlayerY(index) * 32)
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...