
I just found the tutourial

Edit: the player location doesnt seem right to me, i created a path and its walking completly different ways.
since the targets are beeing detected by tab & memory reading i dont think its possible because you cant select minerals and so on by tabWolfgangwarriors wrote:Got it working!!
Thanks great bot!
Also can you set it to harvest? Wood/ore/ect...?
Thx Wolf.
COMBAT_DISTANCE is for ranged fighters. It shouldn't affect you if you are melee.Hrmm... question. What does the <option name="COMBAT_DISTANCE" value="200" /> do?
I'm a knight and sometimes when i'm near a yellow mob (not aggro) it doesn't detect it and then it walks a far distance to the next mob.
Is there a way to make the character attack things that are close?
Code: Select all
if( canTarget == false and os.difftime(os.time(), startTime) > 2 ) then
Administrator wrote:Ziomal214: Your energy bars are set to rage and energy, but you use mana (knight/priest). Change your primary storage to "mana" and secondary to "none".
It's attached to the very first post in this thread.carolinaswamp wrote:i see where to download micromacro, but i can't seem to find the link to the rom scripts? am i missing something?
Upgrade to MicroMacro 1.0, which you can find here: http://solarimpact.servegame.com/phpBB3 ... ?f=6&t=177vamppii wrote:hey all,
the bot has been working gret until recent for me. i keep getting yellow text and i dont know how to paste my log but i get this in the cmd window.
D:\micromacro]lib]lib.lua:396:ttempt to call global ' getAttachedHwnd (a nil value)
how do i fix this
Code: Select all
Mon Mar 02 02:08:54 2009 : MicroMacro v1.0
Mon Mar 02 02:08:54 2009 : Processor Type: 4X 586, OS: Windows Vista | Windows Server 2008 Service Pack 1
Mon Mar 02 02:08:54 2009 : LuaCoco is available.
Mon Mar 02 02:08:54 2009 : Lua glues exported.
Mon Mar 02 02:08:54 2009 : Keyboard layout: US English
Mon Mar 02 02:08:56 2009 : Executing script 'bot.lua'
==================================================
Mon Mar 02 02:08:58 2009 : RoM Bot Version 2.15
stack traceback:
E:\Incoming\micromacro\lib\lib.lua:510: in function 'startMacro'
scripts\rom/bot.lua:140: in main chunk
----------TRACEBACK END----------
Mon Mar 02 02:09:07 2009 : E:/Incoming/micromacro/scripts/rom/classes/skill.lua:134: bad argument #1 to 'keyboardPress' ((null))
Mon Mar 02 02:09:07 2009 : Execution error: Runtime error
Code: Select all
<profile>
<options>
<option name="HP_LOW" value="50" />
<option name="MP_LOW_POTION" value="40" />
<option name="HP_LOW_POTION" value="70" />
<option name="COMBAT_TYPE" value="ranged" />
<option name="COMBAT_DISTANCE" value="200" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="bears1.xml" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<option name="ENERGY_STORAGE_1" value="mana" />
<option name="ENERGY_STORAGE_2" value="none" />
<option name="POTION_COOLDOWN" value="15" />
<option name="MAX_FIGHT_TIME" value="30" />
<option name="DOT_PERCENT" value="90" />
</options>
<friends>
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_MINUS" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_0" modifier="" />
</hotkeys>
<skills>
<skill name="MAGE_FLAME" key="VK_1" modifier="" />
</skills>
</profile>
Code: Select all
...
<!-- Mage Skills -->
<skill name="MAGE_FIREBALL" mana="30" manainc="3" range="225" cooldown="6" type="damage" target="enemy" />
<skill name="MAGE_LIGHTNING" mana="20" manainc="2.0" range="150" cooldown="20" type="damage" target="enemy" />
<skill name="MAGE_INTENSIFICATION" mana="10" cooldown="20" type="buff" target="self" />
<skill name="MAGE_SILENCE" mana="50" range="150" cooldown="24" type="debuff" target="enemy" />
<skill name="MAGE_FIRE_WARD" mana="120" cooldown="600" type="buff" target="self" />
<skill name="MAGE_ELEMENTAL_CATAL" cooldown="600" type="buff" target="self" />
[b]<skill name="MAGE_FLAME" mana="20" manainc="2.0" range="225" casttime="3" type="damage" target="enemy" />[/b]
<skill name="MAGE_ELECTROSTATIC_CHARGE" mana="75" manainc="7.5" cooldown="45" type="buff" target="self" />
<skill name="MAGE_PLASMA_ARROW" mana="15" manainc="1.5" range="200" casttime="2" type="damage" target="enemy" />
<skill name="MAGE_ELECTRIC_BOLT" mana="30" manainc="3.0" range="200" casttime="1" type="dot" target="enemy" />
<skill name="MAGE_GALAXY" mana="35" manainc="3.5" range="150" type="damage" target="enemy" />
<skill name="MAGE_ESSENCE_OF_MAGIC" mana="35" manainc="3.25" cooldown="1800" range="200" type="buff" target="self" />
<!-- TODO: More info needed (mana increase per level) -->
<skill name="MAGE_DISCHARGE" type="damage" target="enemy" />
<skill name="MAGE_ELECTRIC_EXPLOSION" mana="10" range="200" casttime="2" type="damage" target="enemy" />
<skill name="MAGE_PHOENIX" mana="40" range="120" cooldown="20" type="damage" target="enemy" />
<skill name="MAGE_ELECTRIC_COMPRESSION" type="buff" target="self" />
<skill name="MAGE_STATIC_FIELD" mana="20" range="150" casttime="1" type="stun" target="enemy" />
<skill name="MAGE_PURGATORY_FIRE" mana="50" type="damage" target="enemy" />
<skill name="MAGE_ENERGY_SUPPLY" mana="45" cooldown="120" type="buff" target="self" />
<skill name="MAGE_ENERGY_WELL" cooldown="120" type="buff" target="self" />
<skill name="MAGE_ELEMENTAL_WEAKNESS" mana="50" range="250" type="debuff" target="enemy" />
<skill name="MAGE_THUNDERSTORM" mana="70" range="180" type="damage" target="enemy" />
...
Code: Select all
<skill name="MAGE_FLAME" key="VK_1" modifier="" />
Code: Select all
<skill name="MAGE_FLAME" level="12" hotkey="VK_1" modifier="" />
I can tell you that didn't work but I simply created a macro and called it a PRIEST_Something in the database then referred to it and it works fine.Administrator wrote:You put:The right way:Code: Select all
<skill name="MAGE_FLAME" key="VK_1" modifier="" />
Code: Select all
<skill name="MAGE_FLAME" level="12" hotkey="VK_1" modifier="" />
Code: Select all
ofile>
<options>
<option name="HP_LOW" value="50" />
<option name="MP_LOW_POTION" value="70" />
<option name="HP_LOW_POTION" value="70" />
<option name="COMBAT_TYPE" value="ranged" />
<option name="COMBAT_DISTANCE" value="180" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="cactus.xml" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="500" />
<option name="ENERGY_STORAGE_1" value="concentration" />
<option name="ENERGY_STORAGE_2" value="mana" />
<option name="POTION_COOLDOWN" value="20" />
<option name="MAX_FIGHT_TIME" value="15" />
<option name="DOT_PERCENT" value="65" />
</options>
<friends>
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_MINUS" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_0" modifier="" />
</hotkeys>
<skills>
<skill name="SCOUT_FROST_ARROW" key="VK_6" modifier="" />
</skills>
</profile>
Code: Select all
stack traceback:
E:\Incoming\micromacro\lib\lib.lua:510: in function 'startMacro'
scripts\rom/bot.lua:140: in main chunk
----------TRACEBACK END----------
Wed Mar 04 16:46:44 2009 : E:/Incoming/micromacro/scripts/rom/classes/skill.lua:134: bad argument #1 to 'keyboardPress' ((null))
Wed Mar 04 16:46:44 2009 : Execution error: Runtime error
Code: Select all
<profile>
<options>
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="0" />
<option name="HP_LOW_POTION" value="0" />
<option name="COMBAT_TYPE" value="ranged" />
<option name="COMBAT_DISTANCE" value="180" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="cactus.xml" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="500" />
<option name="ENERGY_STORAGE_1" value="concentration" />
<option name="ENERGY_STORAGE_2" value="mana" />
<option name="POTION_COOLDOWN" value="15" />
<option name="MAX_FIGHT_TIME" value="15" />
<option name="DOT_PERCENT" value="90" />
</options>
<friends>
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_MINUS" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_0" modifier="" />
</hotkeys>
<skills>
<skill name="SCOUT_FROST_ARROW" key="VK_6" modifier="" />
</skills>
</profile>
Users browsing this forum: No registered users and 1 guest