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.
' 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)