695 Changelog (the speedup update)
Posted: Thu Feb 02, 2012 1:19 pm
Summary
-- player.lua --
Completely changed the way moveTo detects arrival at waypoint. It is now super accurate even when mounted.
Improved camera angling in CCamera:setRotation.
Speeded up eggpet checks so it doesn't interfere with waypoint accuracy.
Updated autosell to use all memory values. Now very fast.
Changed warden pet are now commanded to attack just before you attack so you attack together.Says it all.
-- skills.xml --
Fixed PRIEST_EXPLOSION_OF_FIGHTING_SPIRIT, PRIEST_FIGHTING_SPIRIT_COMBINATION, PRIEST_ASCENDING_DRAGON_STRIKE and WARDEN_FRANTIC_BRIAR.
Fixed RoMScript now immediately returns if screen loading.
Removed support for spanish language file. No spanish language file was ever added.
- The main focus for this update is improved speed and accuracy. There have been many changes to that effect. Improved speed to player:findEnemy, autosell, CheckEggPets, changes to eval function redesign for better speed and removal of old obsolete slow code. The result of this better speed (and other changes) is better accuracy at stopping and turning on waypoints.
Also, the long overdue addition of the QuestByName functions from JackBlonder and my ChoiceOptionByName function. A few other minor changes and fixes have been thrown in as well.
-- player.lua --
Completely changed the way moveTo detects arrival at waypoint. It is now super accurate even when mounted.
- It can now easily handle narrow paths with sharp corners easily, even mounted and accuratly stops on waypoints within 10 distance usually. Many of the changes below were made to make this possible.
- evalTargetDefault was the main reason for the inaccuracy in find enemy by taking too long. The reason is because it created a pawn and updated it for every address. It can now accept the actual pawn as a second argument saving the need for the eval function to create it. I've made it a standard now that evalfunctions include this optional pawn or object for faster processing. As always, it has been designed to be backward compatible.
- This was needed in the time before memory info gethering. Now it's just obsolete and uses a lot of cpu power.
- Just added a small pause.
- I doubt this affects anyone else. I use "setStartKey("VK_HOME")" in my profiles to change the resume button from <Delete> to <Home> so I can pause a bot and type something and use delete. But player:sleep() still needed delete pressed to wake which annoyed me. This change fixes that.
- It uses the same second argument to it's eval function so it doesn't have to create the objects for each address.
- Using 15m and 2h mounts when mounted didn't dismount. now it does.
Improved camera angling in CCamera:setRotation.
- The camera angle now stays at 20 degrees from horizontal. But it also angles down when going to a waypoint below you and angles up when going to one above you. This helps to allow you to see where you're going (it will stay at 20 degrees with older waypoint files that don't have 'y' values)
- This was simply caused by outdated player coordinates. Easily fixed.
Speeded up eggpet checks so it doesn't interfere with waypoint accuracy.
- Checking the assist and craft pets was taking too long and affecting bot accuracy. Had to create custom inventory search to speed it up as itemTotalCount was taking too long.
- Just stopped forward movement before summoning.
Updated autosell to use all memory values. Now very fast.
- This has been a long time coming. Autosell was still getting maxdura and stats from ingame tooltips even though they are now gotten from memory. Lisa said that where it took like 90 seconds to sell all bags, now it takes 8-15 seconds.
Changed warden pet are now commanded to attack just before you attack so you attack together.Says it all.
-- skills.xml --
Fixed PRIEST_EXPLOSION_OF_FIGHTING_SPIRIT, PRIEST_FIGHTING_SPIRIT_COMBINATION, PRIEST_ASCENDING_DRAGON_STRIKE and WARDEN_FRANTIC_BRIAR.
- Added some missing values.
Fixed RoMScript now immediately returns if screen loading.
- This is mainly for when you teleport and check for staticpopup but there is a autopay addon installed.
- You should remove the questbyname userfunction if you have it installed. I modified it mainly to tidy it up and remove repetition. Otherwise it works the same as JackBlonders userfunctions.
- I'm happy to say I got it working nicely with npcs where ChoiceOption doesn't work and where you would have to use that other command. So you don't have to worry about which type of command to use.
- These are from JackBlonders QuestByName userfunction but can be used for other purposes. NormaliseString simply replaces characters, that interfere with string.find or string.match functions, with . which means any character and converts all characters to lower case. FindNormalisedString functions like "string.find(string1,string2)" but normalises the strings.
Removed support for spanish language file. No spanish language file was ever added.
- Don't remember who it was but when they added spanish support they must have forgotten to add the language file.