Refer to script.js for examples
- Code: Select all
properties:
name Your name or object/mob name
lastErrorMsg Last error message. However it is not cleared after error.
wowClassName class config name, for example, if you are using bindings_afwarlock.cfg, it will return afwarlock
curState current state, could be afterFight, normal etc.
lureName Fisher only.
level
playerRace a number identify player race
playerClass a number identify player class
wowId id of mob/object
mobSpell current spell mob is doing
x mob/obj/your cordinates
y
z
heading
corpseX location of player corpse
corpseY location of player corpse
corpseZ location of player corpse
waypointNoteHeading heading recorded in waypoint note
waypointNoteComment comment recorded in waypoint note
health mob/your health
maxhealth
happiness pet happiness (on pet obj only)
maxhappiness
mana
maxmana
itemDurability
itemMaxDurability
rage warrior only
energy rogue only
catForm durid only
bearForm durid only
target your/mob current target
itemCount if object is bag,
toonCount total number of npc/mobs
underCursor id of obj under your cursor
valid if object is valid
numMsgs number of messages
myCombatReach return combat reach
followZ set to true if bot need to follow Z coord (for flying, under water etc)
jsParams parameters. Used to extend the bot
jsApproachCheck a call back, if not "" will be called during bot approach (so it won't attack tagged mobs)
itemLootDist
bobber fisher only
curTime time in seconds.
timeLeft time in seconds before timeout
runTimeOutMinutes
containerSize if object is bag, the size of it.
itemStackCount if object is a bag item, the stack count (1, 5, 10, 20 etc)
xp current experience
maxXp xp to level
gold coin count (100 = 1g)
wayPointPos current postion in waypoints
wayPointCount total number of waypoints
profileRunMode current running mode (normal, circle etc)
isAttackAbleFaction check if mob is in your attackable faction list.
wowFaction get mob faction
isSaleRepairNpc if npc is marked as a sales npc.
saleRepairNpcCount total number of waypoints in sales waypoint
isPlayer check if object is player
inCombat if you are in combat
wowBotRun true if we are running, false if you click on "stop" button
wowAbortCurFight set to true to abort current fight or loot
doSkin variable reflect the skin check box on fighter
lootable check if corpse is lootable (not accurate)
skinable
wowScreenX x position of upper left corner of WOW
wowScreenY y poistion of upper left corner of WOW
wowScreenW wow screen width
wowScreenH wow screen height
fighterMode fighter mode, can be Raid, BG, fishing etc.
bgExit set to true to abort current actions and waypoints
curRunPointBreak set to true to abort current run (will not run to next waypoint, will break and adjust to next waypoint)
nearstMobInFactionDist return distance to nearst mob in faction. Only valid after a call to wowGetNearstMobInFaction() method
npcJobTitle npc's title
runic DeathKnight runic power
lastFightTarget last target
botSelectedTarget current target bot trying to select
wowKeyUp the key for up arrow
wowKeyDown default to down arrow
wowKeyLeft default to left arrow
wowKeyRight default to right arrow
wowKeyEscape
wowKeyEnter bot use this to talk
wowKeyShift
wowKeyCtrl
wowKeyAlt
wowKeySpace bot use this to jump
wowKeySit bot use this to sit
engageDist
curtimeMs current mill seconds
curtimeStr current time in yyyymmdd hh:mm:ss format
curAction current action's name
lootLevel
salesWaypointCount
orbiterMainWaypointCount
isMobToAvoid on mob, if mob is a mob to be avoided
saleRepairNpcs array of sales/repair npcs. the objects in array has x,y,z,type,name properties
wowWaypointNotes get waypoint notes in array. objects in array has x,y,z,heading,desc properties
wowNearstWaypoint return nearest waypoint
herbCorpse if we should herb corpses (checkbox on UI)
mineCorpse if we should mine corpses (checkbox on UI)
shutdownAtEnd if we should shutdown at end (checkbox on UI)
checkZPos if we should check Z positions (checkbox on UI)
isRunning true if toon is running.
isSwimming true if toon is swiming
isBoxLocked on boxes only. true if box is locked.
isWanding true if toon is using wand.
wowRunThreshold run to node's threashold
wowGhostRunThreshold threashold used on ghost waypoints
jsWaypointCurFrom the previous waypoint
jsWaypointCurTo the next waypoint
wowPassiveFight set to 1 to not start fights. Used for sales/repair waypoints to avoid fight when we need go repair.
Methods:
wowLog 1 parameter, string to log ==>me.wowLog("test")
wowUnsafeRefresh 0 parameter. returns true if wow is loaded and your toon structure is available. Need to refres me variable.
wowGetKeyCode 1 parameter, a char. returns char's keycode.
wowRunSaleWaypoint 0 parameter, try to run sales waypoint
wowResetCurWaypoint 0 parameter,
wowCheckDistToSaleWaypoint 0 parameter, check current distance to sales waypoint
wowLoadProfile 1 parameter, string of profile to be loaded (Don't use)
wowRunProfile 3 parameter, profile name, running mode, running time. Last parameter optional.
wowProfileDist 1 parameter, profile name. check dist to that profile
wowOneFight no parameter.
wowDoFishing no parameter
wowTerminate no parameter, kill wow process
wowDoFightAction 1 parameter, action name
wowSendString 1 parameter, a string to be typed on WOW screen
wowTalkViaClipboard 1 parameter, will press enter, past text and press enter again.
wowSendKey 2 parameter, key to be sent (in key code) and up or down (too complex, just use wowSendString instead)
wowSendKeys 1 parameter, array of keys to send
wowPlaySound 1 parameter, sound file name.
wowMoveMouse 2 parameter, x and y
wowMouseClick 1 parameter, 0/1 for right and left (maybe)
wowWait no parameter, will wait for channel spell
wowSleep 1 parameter, sleep for xms
wowApproach need doc
wowGetAttackingMob no parameter, returns attacking mob
wowTurnTo 2 parameter, x,y to turn to
wowTurnToRad 1 parameter, turn to angle in radious
wowRunTo x parameter(s). pass in either mob, (x,y)
wowDoLoot 1 parameter, mob to loot. Will try to loot that mob
wowGetToon 1 parameter, number between 0 and max npcs
wowGetBotSetting 1 parameter, return the setting value
wowGetPlayerByName 1 parameter, returns the player object give his/her name
wowGetContainerItem 2 parameter, bag and slot number
wowGetContainerItemByName 1 parameter, name of item (You can use it to get your main hand weapon and check for duriablity for warrior/hunter)
wowGetContainer need doc
wowGetContainerFreeSlots 1 parameter, provide bag number, return free slots in bag
wowGetAllContainerItemCount 1 parameter, privide a item name, return total count for that item (hunter can check bullet/arrow)
wowGetMyItems no parameter, return array of all items
wowGetAttackingMobs no parameter, return all mobs that are taging you
wowGetTagingPlayers no parameter, return array of players that have selected you
wowGetNearstMobInFaction no parameter, return nears mob in faction
wowGetWaypointAt 1 parameter, return array of position
wowGetPlayers no parameter, return all players near you
wowGetLootables no parameter, return all lootables near you
wowGetBuff 1 parameter, return true if passed buff exists
wowGetBuffs no parameter, return array of buffs
wowGetSummon no parameter, return your pet
wowAquireTarget no parameter, aquire a target
wowGetItem 1 parameter, retrive an item from item list
wowGetMsg 1 parameter, return msg in msg list
wowGetMessages no parameter, return array of new messges
wowGetRemoteSockets no parameter, return array of sockets
wowGetRemoteMsg 1 parameter, socket. return 1 remote command if available on that socket
wowSendRemoteMsg 1 parameter, socket. send a message to remote app (i.e telnet)
wowCloseRemoteSocket 1 parameter, socket. Close it
wowReadFile 1 parameter, file name, return file content as string
wowExec 1 parameter, executable name
wowExecReadOutput need doc
wowExecRetVal no parameter, return executable exit code
wowClearMsgs no parameter, clears wow messages collected
wowIsSameObj 1 parameter, provide id, check if it is the same obj
wowBotStop no parameter, stops bot
wowStopRun no parameter, stops your toon (but bot is still running)
initOrbiterEngine no parameter, init orbiter engine (danger, use with caution, always abort current waypoint before do this)
wowClearProfile clear all profiles.
wowGetProfileWaypoints 1 parameter. Give profile name, return array of profile waypoints (each object is an array, with 3 floats)
wowOrbiterGetPath 6 parameters, fromx,fromy,fromz, tox,toy,toz. Returns array of waypoints (each object has x,y,z, dist properties)
wowClearWatchedMobLocations future
wowAddWatchedMobLocation future
wowMobAvoidRoute future
wowGetMobEnterCoord future
wowReleaseSpirit no parameter. tries to release spirit.
wowPastViaClipboard 1 string parameter. will press enter and paste the string into wow.
wowRunOrbit no parameter. Runs orbiter.
wowOrbitRunTo 4 parameters, x,y,[z],[level]. last 2 parameter optional. run to x,y via orbiter. if level > 0, bot tries to avoid mobs
wowRunToNC 4 parameters, x,y,[timeout],[threshold]. timeout in seconds (default 15), threshold default to 5.
wowGetOrbiterWaypointAt 1 parameter. the index of waypoint. returns the current waypoint's node (x,y,z)
wowGetOrbiterNodeAt 1 parameter. the index of waypoint. returns the node (x,y,z)
wowJsGetOwner 0 parameter. get the owner of current object.
wowGetCollectableItemNames 0 parameter. return array of names (string) of items you want to collect (set via UI)
wowClearGlobalActs 0 parameter. Clear all global action timers (used after death to reset global actions)
wowAlert 1 parameter. Show an alert box.
wowCompareScreenToFile 5 parameters. filename, x,y w,h, [debugoutput]. compare screen x,y ->(w,h) area with filename, and if debugoutput is not empty, output captured screen to file debugoutput.
wowSendScreenJpeg 6 parameters, socketId,[ratio],[x,y,w,h]. capture screen (default ratio 1, default x,y,w,h entire wow window), save to screentmp.jpg and send it over to tcp/ip (4 byte length in intel order, follow by content of file)
wowIsCollectableItem 1 parameter. input name of item, return true if item is in your collectable item list.
wowCheckAndRest 0 parameter. try to rest.
StartWOW 0 parameter. start wow.
KillWOW 0 parameter, kill wow.
wowAddWaypointNote 4 parameters. x,y,z,heading,[note]. dynamicly add a waypoint note.
wowFileLog 2 parameter. filename,string. if string is not specified, truncate the file. else append string to file.
wowMain no parameter, main method, only call once.
0.8.5.9
wowAddMobToExcludeList add mob (object or guid) to exclude list
wowGetExcludeGUIDList get list of guid->timeInSecond hash
wowRemoveMobFromExcludeList(guid)
