You can view the original thread Here
I haven't programmed in about 2 months because of work so I decided to pick this back up and continue on with it. Hasn't been tested but theoretically it should work.
V1.4 is my final release for this, I am going to be moving on to other things. Hopefully somebody can appreciate this and possibly make use of it or continue on and release for others.
Old versions
[SPOIL]
Originally Posted by
Arithium
Rewrote a bunch of stuff with this, maybe somebody might find it useful. It utilizes the python scripting that was originally implemented to handle npc interaction, object interaction and button clicking. You can view the image on the last page to see what its capable of.
Bugs:
Upon closing the bot, it doesn't seem to disconnect all of the players so it still displays at 1999 players online, not sure if this applies to when a normal player closes the client
Features:
Code:
v1.0
Walkable tasks to handle walking to interactions.
More of an object oriented approach.
255 region fix.
A few more fixes to the netty networking.
Start of an entity base.
Client.java no longer extends player, instead both player and client have instances of each other to prevent creating instances in the client class.
Outgoing packets have been rewritten a little bit.
Player updating has been updated some.
Lots of other stuff has been rewritten to be more efficient.
Code:
v1.1
Added region clipping system for both players and npcs
Some network updating bugs have been fixed
Walkable interfaces are now only updated when the player walks instead of in process
Ground items now have height support, they will not load for the player if they are on a different height level
Added a shutdown hook to save players when updating the server
Fixed a bug with gathering the height level
Now sets the players combat level (forgot to re-add it)
Credits to graham for his Update flags
Credit to Mikey'
v1.0 bug fix
Small fix, PlayerHandler.java find plr.destruct(); and change it to plr.getClient().destruct();
V1.2
Code:
Combat has been disected and seperated into multiple different classes for much easier editing.
Cleaned up Client.java little bit more
All player movement now has its own class and is no longer crowding the Player class.
Download v1.2: Download Project.Revised.rar @ UppIT
v1.3
Code:
NPCHandler has been cleaned and seperated better.
Npc attack styles are now an enum vs using an integer.
Wrote a better way to handle npc animations through an enum, currently only added support for blocking but very easy to add the others.
Fixed the blocking animation from appearing at the wrong time when you swing at an npc.
Cleaned up the player class and seperated the equipment methods/variables from player class for easier editing.
Added a basic woodcutting base that can be worked with.
Added a food class for consumables loading data through an enum.
Including a basic client to use.
Fixed a stream error in the ClickItem class.
Download v1.3 Download Project.Revised.rar @ UppIT[/SPOIL]
V1.4
Code:
Started cleaning up ItemAssistant, removed banking and converted the banking integer array into an item array.
Updated the way item slots are selected.
Fixed sending the players combat level.
Fixed a major bug with the walkable tasks.
Added a walkable type to tasks so they can be stopped upon walking.
Added back project insanitys dialogue system but made it MUCH MUCH easier to use and more organized. The ability to add expressions has been added.
Added clipping to attacks so you cannot attack through walls and it will find a route.
Added emotes loading data through an enum.
Fixed woodcutting replacing the tree with a stump.
Download V1.4: Download Project.Revised.rar @ UppIT
Media
[SPOIL]
[/SPOIL]