WhyHelloThere Posted June 15, 2011 Author Share Posted June 15, 2011 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 modConstantsFind```' Speed moving varsPublic Const WALK_SPEED As Byte = 4Public 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 ProcessMovementFind```' 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 More sharing options...
aaaron Posted June 15, 2011 Share Posted June 15, 2011 Awesome. Good useful code. ;)Good job Link to comment Share on other sites More sharing options...
MrKris Posted June 15, 2011 Share Posted June 15, 2011 Sweet stuff man, keep it up and ill give you a raise ;) ….....nvm you don't get payed. Link to comment Share on other sites More sharing options...
erkro1 Posted June 16, 2011 Share Posted June 16, 2011 Well done, might use this in my game. ;)BTW : 3 Donators posting right after eachother :P Link to comment Share on other sites More sharing options...
BugSICK Posted June 16, 2011 Share Posted June 16, 2011 i think i will you this too. thanks,off topic: is this ur 2nd account? Link to comment Share on other sites More sharing options...
WhyHelloThere Posted June 16, 2011 Author Share Posted June 16, 2011 @BugSICK:> i think i will you this too. thanks,> off topic: is this ur 2nd account?Nope, my first and only account.Enjoy! Link to comment Share on other sites More sharing options...
Fragment Posted June 28, 2011 Share Posted June 28, 2011 I would just like to point out that you can teleport by using shift and right click if you are an admin. I am not saying this isnt useful though :) (particularly if using a version before this update). Link to comment Share on other sites More sharing options...
Greendude120 Posted June 28, 2011 Share Posted June 28, 2011 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. Link to comment Share on other sites More sharing options...
SeeingBlue Posted July 14, 2011 Share Posted July 14, 2011 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? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 14, 2011 Share Posted July 14, 2011 @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 More sharing options...
ShadowScythe Posted July 14, 2011 Share Posted July 14, 2011 @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 More sharing options...
WhyHelloThere Posted July 14, 2011 Author Share Posted July 14, 2011 @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 starsThank you! I'm happy people are finding this useful.Speed buff spell ftw :) Link to comment Share on other sites More sharing options...
Sunku Posted July 16, 2011 Share Posted July 16, 2011 This is awesome i'll use this for my game thank you for the code :P Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now