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

Adding an Action Bar to Your Game!


zade_o
 Share

Recommended Posts

Duplicate declaration just means that another part of that sub further up already Dims s as something so just take out that line that gives you the error and it should solve that.

you probably have to do that multiple times depending on what else you have in that sub
Link to comment
Share on other sites

  • Replies 154
  • Created
  • Last Reply

Top Posters In This Topic

I posted an example of what an action bar is in the original post.

Like I said, I can't post an image of the one I'm using because I don't have it saved anymore. Eventually I'll put it back in my new game and then I can post some of my pics. Sorry bout that. I wish I had done screenies back then
Link to comment
Share on other sites

dude all you have to do is add a if statement a few times…....... but yeah I'll go fix that...

EDIT-
Alright, I put the fix up there.
I made it so that if the text box for chatting is visible and you hit the numbers it won't cast your spell. The best way would be to not cast it if picScreen doesn't have focus but idk the command for that and I don't have time to look it up.
Link to comment
Share on other sites

  • 3 months later...
Error in
        Case "loadspell1"
            FileData = ReadINI("SK1", "sid", App.Path & "\Scripts\db\" & GetPlayerName(Index) & ".ini", vbNullString)
            Call SendDataTo(Index, "getspell1" & SEP_CHAR & FileData & END_CHAR)
            Exit Sub

Fix?
Link to comment
Share on other sites

  • 1 month later...
I built-in this script, but it doesnt work how it should to be work.
im sure, that i correctly built-in the script.

So my problem:

When i click any spell in tze spellList, so the spell appears at the next free slot in the ActionBar:
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]              (dblclick Spell1)
[1][ ][ ][ ][ ][ ][ ][ ][ ][ ]

So when i click the next spell for example 2 and 3, the spells appears in the next free slot too:
[1][2][3][ ][ ][ ][ ][ ][ ][ ]              (dblclick Spell 2 and 3)

But any Spell i click in the ActionBar, is the first spell in the Spelllist:
[1][2][3][ ][ ][ ][ ][ ][ ][ ]
1 = Cast spell 1
2 = Cast spell 1
3 = Cast spell 1
but why?

At next, when i want to run fast, i cant stop running. When i release the shift key, i still running and running and cant stop that.

Anybody can help me?
MSN: [email protected]
ICQ: 291-832-589

pls help
Kirby
Link to comment
Share on other sites

@IceCream:

> Correct it?
> Why not give the people here a better reference to do this.

It's not hard at all.

```
Public Hotbar(1 to 10) as long
```
```
isUse = false

Select Case KeyCode
    vbKeyF1
        hotslot = 1
        isUse = true
    vbKeyF2
        hotslot = 2
        isUse = true
    vbKeyF3
        hotslot = 3
        isUse = true
    vbKeyF4
        hotslot = 4
        isUse = true
end select

If isUse = true then
    call SendData("useitem" & SEP_CHAR & hotslot & END_CHAR)
end if
```
It's much easier than people make it out to be.
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...