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

[EO 2.0] Admin Speed


WhyHelloThere
 Share

Recommended Posts

Hello all,

I am a new developer to Eclipse, found it recently and have been slowly modifying my copy. Figured I would share something I have done since so many tutorials have already helped me.

**This is a tutorial to make Admin and administrative staff move faster than normal users.**

Client:

In modConstants

Find
```
' Speed moving vars
Public Const WALK_SPEED As Byte = 4
Public Const RUN_SPEED As Byte = 6
```
Add underneath it: (The value can be whatever you like)
```
Public Const ADMIN_SPEED As Byte = 18
```
In modGameLogic - Sub ProcessMovement

Find
```
' Check if player is walking, and if so process moving them over
    Select Case Player(Index).Moving
        Case MOVING_WALKING: MovementSpeed = ((ElapsedTime / 1000) * (RUN_SPEED * SIZE_X))
        Case MOVING_RUNNING: MovementSpeed = ((ElapsedTime / 1000) * (WALK_SPEED * SIZE_X))
        Case Else: Exit Sub
    End Select
```
Add underneath it:

```
If GetPlayerAccess(MyIndex) >= 2 Then
    MovementSpeed = ((ElapsedTime / 1000) * (ADMIN_SPEED * SIZE_X))
    End If
```
That should be it, let me know if I was a blockhead and forgot something or it doesn't work. :)

Enjoy! Sharing is caring.
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
@SeeingBlue:

> Just a thought here. If this is all client side, then a user who knew the value of walking speed could find & change the address's value, right?

That's too much trouble. Many memory editors have speed hacks anyways. I've described a workaround [in this topic](http://www.touchofdeathforums.com/smf/index.php/topic,72537.msg778775.html#msg778775) which may help you implant a device to catch speed hackers.
Link to comment
Share on other sites

@Greendude120:

> Doesnt matter. This is also good if someone wants to learn about modifying player speeds. This can be used to make a custom use of agility or to make players run/walk differently.
>
> Its always useful.

ya like you m ight use it for a buff spell like Ex: RUN :cheesy:
Ex; Speed Buff Spell :cheesy:
ya great stuff man i give you :star: :star: :star: :star: :star: out of 5 stars
Link to comment
Share on other sites

@ShadowScythe:

> ya like you m ight use it for a buff spell like Ex: RUN :cheesy:
> Ex; Speed Buff Spell :cheesy:
> ya great stuff man i give you :star: :star: :star: :star: :star: out of 5 stars

Thank you! I'm happy people are finding this useful.

Speed buff spell ftw :)
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...