Merge pull request #24 from mnikic/TestVer

Added script for clearing Undergroud Passage level 2. 
fixed a .net crash
Nov 2.

D2BotChannel.dbj - added advanced config section, fixed game doesn't exist handling. join delay now applies only for first attempt, the rest is handled by game doesn't exist timeout
OOG.js - changed to a new file function, added some additional checks for datafile and shitlist
Coldcrow.js - removed offsets that would prevent proper teleport to Coldcrow (YGM)
Follower.js - cleanups and additional player mode checks
Paladin.js - tweaked hammer targeting
Misc.js - added useMenu function based on dialog lines (might help with a certain crash)
Pather.js - added death checks to avoid unneeded retry attempts
Pickit.js - added death check
Prototypes.js - added unit.dead prototype, chenged startTrade to use Misc.useMenu instead of the core func useMenu
Town.js - merged poison and curse check into Config.HealStatus
blacklist hotfix
lowgold hotfix
new usemenu for cain and merc
nov 6
updated d2bs to 1758
Misc.js - updated useMenu function, should be compatible with other languages too. Switched to Misc.useMenu in other scripts, stop trying to cast a skill if out of mana, added Skill.getManaCost function
Attack.js - added MFSwitch to Attack.kill. This should work on act bosses mainly, but also on those who are killed using Attack.kill
Added low mana attack skills to class attacks, added lightning fury delay to amazon attacks
nov 9
BattleOrders.js - it's now possible to wait for multiple players for BO. Put the names in the array
Follower.js - arcane exit fix, long distance follow, several loopholes fixed, added "leader charname" option to switch leaders on the fly
UserAddon.js - fixed an error with item names
CollMap.js - hopefully silenced a strict warning
Pather.js - increased search time for units in useUnit function
Town.js - fixed a loophole with getCorpse in case of dying again
packet casting off by default
mfswitch hotfix
CollMap hotfix. The bot can move once again.
BattleOrders bugfix
prevent getting stuck if a player with BO leaves the area too soon
nov 10
AutoMule.js - mule keys unless the profile is a part of torch system
TorchSystem.js - don't trigger if game isn't set (blank game name would trigger in every game)
Town.js - sell ignored item types if lowgold picked them up, cancel trade screen before gambling
mulelog fix
19. nov

D2M.dll - added -ftj command to enable ftj reducer
D2BotChannel.dbj/D2BotMule.dbj/D2BotMuleLog.dbj - added proper LoD key in use message
D2BotFollow.dbj - added proper LoD key in use message, added rejoin delay in case of FTJ, fixed double keyswap if rdblocker is on, block mouse when joining game to prevent user interaction
D2BotLead.dbj - added proper LoD key in use message, update runs on FTJ, block mouse when creating game, fixed double keyswap if rdblocker is on
AutoMule.js - don't drop potions from inventory
Bonesaw.js - added Drifter Cavern
Diablo.js - longer wait time for seal bosses and Diablo
DiabloHelper.js - longer wait time for seal bosses and Diablo, coord tweaks
Follower.js - added "bo" command, "h" command (howl), "flash" (in case followers get stuck), tweaked long distance following (removed party object, followers will search for other followers if leader is too far away)
Attack.js - don't rebuild dodge spots during one kill/clear call
Paladin.js - tweaked hammer positioning, now takes monster size into consideration
Loader.js - script errors can print to manager (for debugging purposes), set 'printToOOG: false' to true
Misc.js - wait when out of mana for attack skills (prevents premature boss kill errors), switched to core useMenu for 'Trade' to reduce crashes
Pather.js - tweaked wp/tp use delays
Pickit.js - don't pick ignored items for Config.LowGold option, better picked item check, added HPBuffer and MPBuffer, tweaked overall potion buffer code
Town.js - added some debug prints to help track down some crashes, go directly to NPC if in range (instead of going to preset townspot), better TP tome check (when sold for ID scrolls)
ToolsThread.js - don't use inventory potions on merc, can pause rushthread now, 'object is not an item' error fix, nearest monster fix (won't print random creatures like mercs or npcs), added ping info to life chicken message

ADDED CHARACTER CONFIG OPTIONS
Config.Bonesaw.ClearDrifterCavern
Config.DiabloHelper.Wait
Config.BaalHelper.Wait
Config.HPBuffer
Config.MPBuffer

fixed a typo in classic pickit
test fix for paladin attacks
25. nov

d2bot#
added a delay when killing a profile so it doesn't forcibly disconnect, added missing unique/set item gfx

kolbot
D2BotLead.dbj - changed create game to a script side solution. it will call create delay after inputting gn/pw. create delay is no longer called on retries, use FTJ delay for that.
D2BotMule.dbj - reset json file when account name is changed, go back to char select screen when char creation fails. TODO: rdblocker warning+stop. Do not use D2BotMule with rd blocker
NTItemAlias.dbl - swapped dark yellow and light gold color aliases
NTItemParser.dbl - print line number and pickit filename on unknown keyword errors
OOG.js - go back to char select screen when char creation fails
Attack.js - test fix for potential bug in getIntoPosition that would cause the character to get stuck telepoting in one place (check 3x3 block instead of a single coord before moving to position)
Paladin.js - more tweaks and fixes to paladin attacks
Sorceress.js - slightly randomized blizzard casting
Loader.js - more verbose error messages in manager, added the option to take a screenshot on script errors
Misc.js - added item gfx codes for set and unique items, fix for tiara/diadem
Pather.js - made usePortal more lag-proof, added a small delay in useUnit to prevent failing the first attempt to use the unit, checkSpot accepts more potentially valid collision flags
Prototypes.js - added Color object to getColor function, making it easier to fix wrong item colors
Town.js - added a delay after clearing a potion from inventory - it will now clear all potions at once
ToolsThread.js - bound say "/fps" to keycode "." on numpad
30. nov.

D2M.dll - more reliable way of creating bncache* files (the old code that uses rand() isn't very random, this one uses profile names as a base)

kolbot
D2BotLead.dbj/D2BotFollow.dbj - restart if stuck on connecting... screen if rdblocker is on
D2BotMule.dbj - rewrote a large portion of code to address AutoMule.js changes. added some location handlers in case of lag/realm down
default.dbj - new automule game check
AutoMule.js - Rewrote muling system - it's now possible to mule on different realms/core/gametype. Added the option to stop a profile before starting mule (if running 8 bots without proxies), master char will pick items back up if next mule fails to join game, mule profile is stopped on any error, changed string colors for d2bot# prints.
MuleLogger.js - updated with latest Misc.logItem changes, reliably replace ÿ in every item description line
OOG.js - D2Bot.stop() can now accept profile name as arg, made loginAccount and findCharacter more robust,
AutoBaal.js - added long range support, configurable throne leech spot, get shrine without hot tp message
OrgTorch.js - torch making is now optional
Cubing.js - fixed a bug where rare items would be rolled with 3 pskulls instead of 6
Loader.js - error logs in d2bot# now contain ping info and filename/line
Misc.js - removed id 92 from chest array in openChestsInArea because it's actually a door, removed sell value from item desc, moved ilvl next to item's name, show socketed jewels
Pather.js - usePortal tweaks
Pickit.js - updated automule trigger, added aditional checks to pickitem to address the bug where sometimes kept items aren't logged
Prototypes.js - added flash to npc interact function to prevent getting stuck
Town.js - changed a5 town portalspot, split goToTown into 2 portal checks (make+take) for better error info
AntiHostile.js - added the option to go to town instead of quit on hostile
RushThread.js - safer andariel tp spot
ToolsThread.js - bound mule trigger to numpad 5

Updated character configs!
char config hotfix
pather fix
BaalAssistant.js - Added new script which makes BaalHelper and AutoBaal now defunct.
ClassicChaosAssistant.js - Added a new script to help manual classic players with chaos taxi work.
D2BotMule.dbj - Changed d2bot console print colors.
AutoMule.js - Changed d2bot console print colors.
TorchSystem.js - Changed d2bot console print colors.
Baal.js - Changed to add light sorc pre-casting, better coords for the throne and better compatibility with waits when using BaalAssistant.js
Config.js - Changed case 6, added new variables.
Paladin.js, Sorceress.js, Barbarian.js, Necromancer.js, Amazon.js, Assassin.js, Druid.js - Added new variables, not removed the old now defunct BaalHelper or AutoBaal.