PDA

View Full Version : Move character using arrows instead of map clicks!



ziemniaq
02-22-2012, 02:04 PM
Hello!
Today I've been trapped for a while inside firebomb. The opponent was beholder, who was attacking me. I wasted about 50 mps~, because the character didn't want to move, because of using mouse instead of keyboard to move forward.

This is how it looked:
http://s5.ifotos.pl/img/kisaripng_rxxhxss.png


Can You please add in next update function that will move character using arrows? After I killed beholder he didn't want to move AGAIN, because on the way to wpt, there were firebombs too, so he was stuck in this cave.

Y2Quake
02-22-2012, 09:20 PM
In the next update you will be able to walk over furniture, fields, etc.

Luls
02-22-2012, 11:21 PM
Here's my current changelog for the next update, which we will see soon. Just want you guys to know I'm actually doing something.


v2.2.2
Added the default "io" and "os" classes to the Lua scripter
Added some safeguards to the scripter which could lead to bans with poorly made scripts (very rare yet possible).
These safeguards should also fix the bug which caused the bot to skip looting a body if it did an action right before trying to open the body.
Lastly, with these safeguards I have added meaningful return values to the scripter. Any function which sends data (Say, Use, MoveItem) will return 0 if it fails ("Fail" being defined as having malformed parameters or being sent to soon).
Modified the behavior or the "Node" waypoint type. A node will now have a completed state once you are within 3SQM of it instead of adjacent to it.
Fixed a bug with the pathfinder causing it to try and walk on "floating" border tiles (EG The dark-colored stone borders on floor 6 at yalahar minos)
Implemented my own "global" pathfinding using the minimap and changed the way I send steps. This brings about many changes, with the Cavebot:
Overall changes:
XenoBot will NEVER mapclick now. It will always use "arrow-key" steps
The bot is able to walk on fire and boxes, as well as tell when it can't reach a waypoint
Bugs fixed:
"Flux" that happens when the bot essentially fights with itself over its destination (E.G. Corpse or Waypoint)
Random mid-mapclick stops
"Snapbacks" that happen when trying to override the Cavebots walking
Caveats:
Any path which expands more than 1000 nodes will be deemed as "unreachable." This keeps the client from freezing while it, essentially, searches the entire Tibian map
The bot may act weird when walking sometimes. If you notice it walking oddly, place your waypoints closer together (See Below)
1-ways: Have a stand at first tile before the 1-way and the first tile after it (same for doors)
Advanced Obstacles: Have a stand at every corner of the obstacle
Changed the Injector's login system to be much more specific and user-friendly. Some of the new features follow:
Instead of always getting the "Wrong account or password!" error, you will now get one of the following:
"This accounts subscription expired X days ago."
"This accounts subscription expired X hours ago."
"You have infinite time left on your XenoBot subscription."
"This accounts subscription is not active."
"Wrong username or password."
"This account doesn't have a subscription."
"Invalid Verification String!"
Additionally, once you are logged in, you will see how much time is left on your subscription (Represented in Days or Hours).
Lastly, I have also added a button which will allow you to change which account you're using at any time.


Furthermore, here are some of the things I'm looking into for this update:

Completing walk on fire/furniture
Fixing the onWalkerSelectLabel event
Distance Runner preferring to move closer to the previous waypoint
Multiple looting types
All Dead - Current system.
One Dead - Loots a monster as soon as it dies.
Adjacent Dead - Treats corpses beside you with the "One Dead" rule. Treats all other corpses with the "All Dead" rule.
Fixing injection crashes (So sorry about these, I only get them like 1 out of 200 tries so fixing them is killing me. The frequency is apparently inversely proportional to computer speed)
Fixing problems with settings




Closed.