Some Bindings questions / documentation

Support for zoloFighter

Some Bindings questions / documentation

Postby Pillow Pants » Fri Nov 30, 2007 2:29 pm

I have been doing a lot of reading through the bindings given with the public release and am starting to collect what I have learned / have questions about and am posting here. Questions and comments are in bold.

~~~ Settings and Other such variables ~~~

reach= # max reach of spells / abilities
maxreach= # Max range you want your chara to engage enemy at
engage_dist= # distance to start combat seq
shiftloot= y/n Should this be included? as it is a function in the main program as well... it is unclear what one will override the other
lootitemdist= # Assumtion: distance where you loot... this does not seem needed at this time because the distance is taken care of in the lootseq's.

manaRestToPrecent=.# where you stop resting
healthRestToPrecent=.# where you stop resting
foodprecent=.# eat when your health is below this percent How does it know what to eat?
drinkprecent=.# drink when your mana is below this percent How does it know what to drink?

manarestprecent=0.# if mana/health drop below ##%, sit down.
healthRestPrecent=0.# if mana/health drop below ##%, sit down.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~ Basic Buttons ~~~

define action (defact)
this is used to define an action for the bot to use. this lets the program know what button to hit,
how long to wait after hitting it

defact= act:(input01) slot:(input02) key:(input03) cooldown:(input04)

input01 = Name of the attack or action. This will be how you call the attack in the combat sequence.
input02 = Where the attack or action is located on the users UI or setup. Action bar 1,2,..,6, pet
action bar (ctrl), keyboard (key)
accetable inputs: 1, 2, 3, 4, 5, 6, ctrl, key
input03 = What slot it is on the action bar or key from keyboard (1,2...9,0, t)
input04 = the cooldown. This is not what most users would consider is the cooldown. This is how long the bot pauses after each cast / ability use. Most I have seen are set to 1s, this should be changed to 1.5 at least for the global cooldown on most things is 1.5
~~~~~~~~~~~~~~~~~~~~~~~

~~~ Advance features ~~~

distle:(# in game meters) = if Distance less then equal to do command
distge:(# in game meters) = if Distance greater then equal to do command
dist:(# in game meters) = do until dist is ##
predefined:(name of predefined function) = sets a predefinded function
js:(functioncall()) = will use a user defined java script when called
prevacttime:(# in seconds) = specifies how long the buff needs to be re-applied.
lifele:(#) = will do if life is less than or equal to... do now know if this is percent or an value of life
channeled:y/n = I believe this is if it has a cast time... but not sure wait until cast done for next command?~~~~~~~~~~~~~~~~~~~~~~~~

~~~ Predefined ~~~

defact= act:approach predefined:approach distge:4 dist:4
defact= act:lootapproach predefined:lootapproach distle:25 distge:5 dist:5
defact= act:loot predefined:loot distle:5

defact= act:wait1s cooldown:1 distle:5
# not a predefined but is a very common function. perhaps it should be a predefined

Are there anymore predefined that are not listed here?


~~~~~~~~~~~~~~~~~~


precombat= act:(name of action) will do this before combat loop

combatseq= act:(name of action) will use this command in combat loop
repeat:# will do this command # times

lootseq= act:(name of action) will do this after combat


globalact= act:(name of act):##m = will do action ever ##min

<script>

Functions definitons for js:
functionCall(){
< code goes here >
}

</script>

Edited:
Cooldown confirmed
Pillow Pants
Lieutenant Colonel
 
Posts: 175
Joined: Thu Nov 29, 2007 6:46 pm
Location: A place only known as the Twilight Zone!

Postby wowpanda » Fri Nov 30, 2007 6:08 pm

Pillow Pants, Thanks a lot!! I have added some modifications but this post is magnificent!
I will make the latter edits on this post to keep your great post untouched on top :-)

I have been doing a lot of reading through the bindings given with the public release and am starting to collect what I have learned / have questions about and am posting here. Questions and comments are in bold.

~~~ Settings and Other such variables ~~~

reach= # max reach of spells / abilities
maxreach= # Max range you want your chara to engage enemy at
engage_dist= # distance to start combat seq
shiftloot= y/n deprecated
lootitemdist= # distance to herbs/mines/quest items that you want to collect. any item in your Collect Items list will be collected in that distance (added by "Add Collect Items" button on waypont tab

manaRestToPrecent=.# where you stop resting
healthRestToPrecent=.# where you stop resting
foodprecent=.# eat when your health is below this percent How does it know what to eat?
drinkprecent=.# drink when your mana is below this percent How does it know what to drink?

==> The the bot will invoke 'drink' and 'food' action, as long as they are defined, that action will be used
manarestprecent=0.# if mana/health drop below ##%, sit down.
healthRestPrecent=0.# if mana/health drop below ##%, sit down.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~ Basic Buttons ~~~

define action (defact)
this is used to define an action for the bot to use. this lets the program know what button to hit,
how long to wait after hitting it

defact= act:(input01) slot:(input02) key:(input03) cooldown:(input04)

input01 = Name of the attack or action. This will be how you call the attack in the combat sequence.
input02 = Where the attack or action is located on the users UI or setup. Action bar 1,2,..,6, pet
action bar (ctrl), keyboard (key)
accetable inputs: 1, 2, 3, 4, 5, 6, ctrl, key
input03 = What slot it is on the action bar or key from keyboard (1,2...9,0, t)
input04 = the cooldown. This is not what most users would consider is the cooldown. This is how long the bot pauses after each cast / ability use. Most I have seen are set to 1s, this should be changed to 1.5 at least for the global cooldown on most things is 1.5
~~~~~~~~~~~~~~~~~~~~~~~

~~~ Advance features ~~~

distle:(# in game meters) = if Distance less then equal to do command
distge:(# in game meters) = if Distance greater then equal to do command
dist:(# in game meters) = do until dist is ##
predefined:(name of predefined function) = sets a predefinded function
js:(functioncall()) = will use a user defined java script when called
prevacttime:(# in seconds) = specifies how long the buff needs to be re-applied.
lifele:(#) = will do if life is less than or equal to... do now know if this is percent or an value of life
channeled:y/n ==>no longer used, if action is channeled, bot will pause till channel is finished~~~~~~~~~~~~~~~~~~~~~~~~

~~~ Predefined ~~~

defact= act:approach predefined:approach distge:4 dist:4
defact= act:lootapproach predefined:lootapproach distle:25 distge:5 dist:5
defact= act:loot predefined:loot distle:5

defact= act:wait1s cooldown:1 distle:5
# not a predefined but is a very common function. perhaps it should be a predefined

==> that is all the predefined values. I am trying to limit those to make the bot generic.


~~~~~~~~~~~~~~~~~~


precombat= act:(name of action) will do this before combat loop

combatseq= act:(name of action) will use this command in combat loop
repeat:# will do this command # times

lootseq= act:(name of action) will do this after combat


globalact= act:(name of act):##m = will do action ever ##min

<script>

Functions definitons for js:
functionCall(){
< code goes here >
}

</script>

Edited:
Cooldown confirmed
lootitemdist= is not deprecated, it is distance to herbs/mines/quest items that you want to collect. any item in your Collect Items list will be collected in that distance (added by "Add Collect Items" button on waypont tab
wowpanda
Site Admin
 
Posts: 1585
Joined: Mon Jan 15, 2007 7:50 pm

Re: Some Bindings questions / documentation

Postby def » Tue Aug 26, 2008 3:46 am

foodprecent=.# eat when your health is below this percent How does it know what to eat?
drinkprecent=.# drink when your mana is below this percent How does it know what to drink?


Just a quick misspelling. You're looking for: percent
def
newbie
 
Posts: 2
Joined: Tue Aug 26, 2008 2:09 am

Re: Some Bindings questions / documentation

Postby def » Tue Aug 26, 2008 4:19 am

Can you pass arguments to functions in an action definition?

Here's the example javascript:
Code: Select all
function requireRage(requirement){
   /* returns true if the player has rage equal to or higher than the argument specified */
   if(me.rage != null && me.rage >= requirement) return true;
   return false;
}


Here's the defact line:
Code: Select all
defact= act:bloodthirst slot:1 key:4 cooldown:6.5 js:requireRage(30)
def
newbie
 
Posts: 2
Joined: Tue Aug 26, 2008 2:09 am

Re: Some Bindings questions / documentation

Postby wowpanda » Tue Aug 26, 2008 11:18 am

Yes you can. But only very simple parameters (no spaces allowed) because the parser is dumb.
wowpanda
Site Admin
 
Posts: 1585
Joined: Mon Jan 15, 2007 7:50 pm

Re: Some Bindings questions / documentation

Postby surfer999 » Wed Apr 08, 2009 9:34 pm

Some questions.

1) What exactly we should use - *Percent or Precent? I found both variants in forum samples.

2)
lifele:(#) = will do if life is less than or equal to... do now know if this is percent or an value of life

Is this remaining amount of health or percent of full amount?
surfer999
Private
 
Posts: 10
Joined: Sat Mar 21, 2009 2:41 pm

Re: Some Bindings questions / documentation

Postby spudstar99 » Thu Apr 09, 2009 3:48 pm

once again .. it's just a variable ... the name means nothing ... just write it the same everytime

sincery spud
Botting :
ret paladin lvl 75
druid lvl 40
shaman lvl 2X
warrior lvl 2X

homecontry: germany
spudstar99
General
 
Posts: 319
Joined: Thu Sep 11, 2008 2:38 am

Re: Some Bindings questions / documentation

Postby surfer999 » Fri Apr 10, 2009 4:17 am

Thanx, spud!
surfer999
Private
 
Posts: 10
Joined: Sat Mar 21, 2009 2:41 pm

Re: Some Bindings questions / documentation

Postby qzmicro » Wed Apr 15, 2009 3:19 am

First off all, I'd like to thank pillow pants. This post has allowed me to start scripting my own binding files. Hopefully with time I will be good enough to help others and return the favor. This was a detailed post that gave me a lot of insight on how zolo fighter handles the code. Much obliged sir.

Seondly, I'd like to thank wow panda. You have put in a lot of time and effort for others to enjoy. I hope all goes well with the litigations with MYD so you can get back to allow us to donate and help the cause. Much obliged sir. Excellent program.

Thirdly, /bump and please stickie! This is a very helpful thread and it's getting burried.

-Qz :lol:
qzmicro
Corporal
 
Posts: 20
Joined: Sun Apr 05, 2009 3:24 pm

Re: Some Bindings questions / documentation

Postby spudstar99 » Wed Apr 15, 2009 3:48 am

@ surfer999
lifele returns percent ..

so use it like "deact bla bla bla lifele:60"

so he heals at 60% of your life

sincery spud
Botting :
ret paladin lvl 75
druid lvl 40
shaman lvl 2X
warrior lvl 2X

homecontry: germany
spudstar99
General
 
Posts: 319
Joined: Thu Sep 11, 2008 2:38 am


Return to fighterSupport

Who is online

Users browsing this forum: No registered users and 0 guests

cron