If I wanted to have a "Collect Ore" check box on Widget, how would I be able to detect that in my program? I've seen someone elses code that looks like this:
I am assuming we can do something like this:
I want to interact with the widget to control my bot.
Is there an API doc somewhere on this?
PHP:
<?xml version="1.0" encoding="utf-8"?>
<widget size="170;500" opacity="1" backColor="#FF000000" textColor="#FF000000" font="Tahoma, 9pt" style="pro" expandButton="true" configButton="false" scriptButton="true" logButton="true" soundButton="true">
<titleFormula>me.name</titleFormula>
<element type="bar" size="146;17" pos="12;25" bright="#aa2f1e" faded="#6d342e" text_color="#151515">
<value>me == null ? 0 : Math.Round((me.hp / (me.maxHp+0.0001)) * 100)</value>
<text>me == null ? "Offline" : (me.hp + "/" + me.maxHp)</text>
</element>
<element type="bar" size="146;17" pos="12;47" bright="#1d09a9" faded="#342e6d" text_color="#c5c5c5">
<value>me == null ? 0 : Math.Round((me.mp / (me.maxMp+0.0001)) * 100)</value>
<text>me == null ? "Offline" : (me.mp + "/" + me.maxMp)</text>
</element>
<element type="bar" size="146;17" pos="12;69" bright="#aa2f1e" faded="#6d342e" text_color="#151515">
<value>me.target == null ? 0 : Math.Round((me.target.hp / (me.target.maxHp+0.0001)) * 100)</value>
<text>me.target == null ? "No target" : (me.target.hp + "/" + me.target.maxHp)</text>
</element>
<element type="coords" size="146;33" pos="12;91" showCoordText="1" />
<element type="groups" size="146;553" pos="12;130" />
</widget>
I am assuming we can do something like this:
PHP:
If(myWidget.mineCheckbox.Checked)
mineOre = true;
else
mineOre = false;
I want to interact with the widget to control my bot.
Is there an API doc somewhere on this?
Last edited: