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

Scripting Question


egoninja
 Share

Recommended Posts

I have already read a couple of scripting tuts and Its still pretty confusing. I use the Total Eclipse flying script and added it into the bottom of my Main.txt, so I wanted to know how to set the script to a hotkey to make the char fly and land…
Im just starting out with no scripting experience at all so help is greatly appreaciated!
Link to comment
Share on other sites

Well I jumped the gun a bit and put in a simple slash command. Not exactly what you wanted but I'm bored. I'll get around to the key bind in a minute…

EDIT: I don't know if this'll work in TE... Where's Baron when you need him... I'll give the key bind thing a shot...

Put this in```
Sub Commands(Index)
```
```
        Case "/flyaway"
                  Call PlayerMsg(Index, "Just a test...", WHITE)
                  'Paste the flying script here.
                  Exit Sub
```
Just paste the flying script in there and replace the '/flyaway' with the command you want. And get rid of (or replace) the PlayerMsg.
Link to comment
Share on other sites

the keybind needs some source edit too.

go to the source and go to frmMirage, then find form_keyUp, add something like this
```
    If KeyCode = vbKeyF Then
        Call SendHotScript(5)
    End If
```
then go to the main.txt
and find sub HotScript and add
```
case 5
    'flying stuff

```at the end of all the other cases
Link to comment
Share on other sites

Sorry I fixed it, it should've been VbKeyF.

anyways, yes.
You'd have to use the mod where you have to press enter to talk.
Then it would be
```
If KeyCode=VbKeyF Then
    If txtMyChat.visible=false Then
            SendHotScript(5)
    End If
End If

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