Confused:O
Posted: Mon Oct 31, 2011 3:49 pm
greetings,
i have recently been trying to do some simple things and i am getting stumped.
basically i am able to createpath and make farming loops which end up at the vendor at that point i use player:merchant("");...which sells stuff per settings in my profile. bot usually gets full quick and i am loosing out on some loot. i am trying to get the bot to recognize when bags are full and load a new waypoint file that takes bot to vendor and back to farm spot,at the end of this waypoint file i tried to start the farm script over again. i have looked at the wiki, and trolled thru endless old posts(which i think some might be outdated because of patch changes or bot revisions maybe?) and have only led myself to be even more confused.
secondly the nosell option in my profile doesnt work is there a trick to it?
3rdly am i to understand correctly that my main class mage should still be able to use the heals of the secondary class priest when certain conditions are met?(if so i have tried and tried again to make this work to no avail)
i have tried to use some code in the onleavecombat section as well as onskillcast sections of my profile with no results.. i think my lack of understanding of .lua code and where its to be placed(i thought between the respective tags) is so limited i have yet been able to get some of these functions to work
any help or shout outs that may be helpful..or some up to date coding i could copy paste would be really appreciated..i continue to troll the posts and wiki to try and better my understanding of all this daily and have learned a bit but just when i think ive got it..and in the right place i get either profile errors on startup or the bot just doesnt do whats intended
if you have the time please help..if not i hope to get this shit straight so i can help other noobs heres my profile:
again i realize that this has been covered before but im not sure whats obsolete due to changes and whatnot.........i know this is a great bot and i could do so much more!
i have recently been trying to do some simple things and i am getting stumped.
basically i am able to createpath and make farming loops which end up at the vendor at that point i use player:merchant("");...which sells stuff per settings in my profile. bot usually gets full quick and i am loosing out on some loot. i am trying to get the bot to recognize when bags are full and load a new waypoint file that takes bot to vendor and back to farm spot,at the end of this waypoint file i tried to start the farm script over again. i have looked at the wiki, and trolled thru endless old posts(which i think some might be outdated because of patch changes or bot revisions maybe?) and have only led myself to be even more confused.
secondly the nosell option in my profile doesnt work is there a trick to it?
3rdly am i to understand correctly that my main class mage should still be able to use the heals of the secondary class priest when certain conditions are met?(if so i have tried and tried again to make this work to no avail)
i have tried to use some code in the onleavecombat section as well as onskillcast sections of my profile with no results.. i think my lack of understanding of .lua code and where its to be placed(i thought between the respective tags) is so limited i have yet been able to get some of these functions to work
any help or shout outs that may be helpful..or some up to date coding i could copy paste would be really appreciated..i continue to troll the posts and wiki to try and better my understanding of all this daily and have learned a bit but just when i think ive got it..and in the right place i get either profile errors on startup or the bot just doesnt do whats intended
if you have the time please help..if not i hope to get this shit straight so i can help other noobs heres my profile:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<profile>
<options>
<!-- Try the bot with a new char mage -->
<!-- At the pioneer village. Use demo.xml waypoint file -->
<option name="HP_LOW" value="80" />
<option name="MP_LOW_POTION" value="40" />
<option name="HP_LOW_POTION" value="70" />
<option name="USE_HP_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="USE_MANA_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="USE_PHIRIUS_POTION" value="false" /> <!-- false | true if you want to use the Phirus Potions -->
<option name="PHIRIUS_MP_LOW" value="40" />
<option name="PHIRIUS_HP_LOW" value="40" />
<!-- Rest if HP or Mana is below that level -->
<option name="HP_REST" value="15" />
<option name="MP_REST" value="15" />
<!-- Shopping options, how many of what do you want to keep in your inventory -->
<option name="HEALING_POTION" value="0" />
<option name="MANA_POTION" value="0" /> <!-- set to "0" if not required to buy -->
<option name="ARROW_QUIVER" value="0" /> <!-- set to "0" if not required to buy -->
<option name="THROWN_BAG" value="0" /> <!-- set to "0" if not required to buy -->
<option name="POISON" value="0" /> <!-- set to "0" if not required to buy -->
<!-- either false or arrow or thrown -->
<option name="RELOAD_AMMUNITION" value="false" /> <!-- false|arrow|thrown -->
<!-- Combat options -->
<option name="COMBAT_TYPE" value="" /> <!-- leave empty or choose ranged/melee if not using class default -->
<option name="COMBAT_RANGED_PULL" value="true" /> <!-- only important for melees -->
<option name="COMBAT_DISTANCE" value="200" />
<option name="MAX_FIGHT_TIME" value="15" /> <!-- Max time without damage before break -->
<option name="DOT_PERCENT" value="90" />
<option name="ANTI_KS" value="true" />
<option name="MAX_TARGET_DIST" value="225" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="3" />
<option name="TARGET_LEVELDIF_BELOW" value="6" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="" /> <!-- leave empty to show a list -->
<option name="RETURNPATH" value="" />
<option name="PATH_TYPE" value="waypoints" /> <!-- waypoints | wander -->
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="QUICK_TURN" value="true" />
<!-- Loot settings -->
<option name="LOOT" value="true" />
<option name="LOOT_ALL" value="True" /> <!-- Loot all nearby dead mobs after combat -->
<option name="LOOT_IN_COMBAT" value="false" />
<option name="LOOT_DISTANCE" value="400" />
<option name="LOOT_PAUSE_AFTER" value="0" /> <!-- probability in % for a short rest -->
<!-- Auto selling options when used with player:merchant -->
<option name="INV_AUTOSELL_ENABLE" value="true" /> <!-- true | false -->
<option name="INV_AUTOSELL_FROMSLOT" value="19" /> <!-- 1 = bag 1 slot 1 -->
<option name="INV_AUTOSELL_TOSLOT" value="60" /> <!-- 30 = last slot bag 1 -->
<option name="INV_AUTOSELL_QUALITY" value="white,green,blue" /> <!-- white,green,blue,purple -->
<option name="INV_AUTOSELL_STATS_NOSELL" value="TIN ORE,BITTERLEAF,MOUNTAIN DEMON GRASS" /> <!-- Item name mask that you do not want to sell -->
<!-- Harvest options -->
<option name="HARVEST_DISTANCE" value="340" />
<option name="HARVEST_WOOD" value="true" /> <!-- Choose which types to harvest. -->
<option name="HARVEST_HERB" value="true" /> <!-- "true" = harvest, "false" = do not harvest -->
<option name="HARVEST_ORE" value="true" />
<!-- Eggpet options -->
<option name="EGGPET_ENABLE_CRAFT" value="false" /> <!-- If using same slot for assist and craft, onlt 1 can be enabled. -->
<option name="EGGPET_CRAFT_SLOT" value="1" />
<option name="EGGPET_ENABLE_ASSIST" value="false" />
<option name="EGGPET_ASSIST_SLOT" value="1" />
<option name="EGGPET_CRAFT_RATIO" value="1:1:1" /> <!-- mining:woodworking:herbalism ratio to produce. -->
<option name="EGGPET_CRAFT_INDEXES" value="" /> <!-- override auto craft index for mining,woodworking,herbalism eg. "2,,"-->
<!-- Log out and resurrect settings -->
<option name="LOGOUT_TIME" value="0" /> <!-- in minutes, 0 = timer disabled -->
<option name="LOGOUT_SHUTDOWN" value="false" />
<option name="LOGOUT_WHEN_STUCK" value="true" />
<option name="CLOSE_WHEN_STUCK" value="true" />
<option name="RES_AFTER_DEATH" value="true" />
<option name="MAX_DEATHS" value="10" /> <!-- Log out after this many deaths -->
<!-- Party Bot options -->
<!-- <option name="PARTY" value="true" /> -->
<!-- <option name="PARTY_ICONS" value="true" /> -->
<!-- <option name="PARTY_INSTANCE" value="true" /> -->
<!-- Healing options -->
<!-- <option name="HEALER_FIGHT" value="true" /> --> <!-- Not implemented yet, coming soon -->
</options>
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer -->
<friend name="MyOtherCharacter1" />
</friends>
<mobs>
<!-- names of mobs we want to attack -->
<!-- if no names defined we will attack all mobs -->
<mob name="" />
<mob name="" />
<mob name="" />
</mobs>
<hotkeys>
<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
<hotkey name="MACRO" key="VK_0" />
</hotkeys>
<!-- define your skills depending from your actual primary class -->
<!-- see the example for a priest/mage -->
<!-- delete skills you don't have or don't want to use. -->
<!-- For more skills to use see /database/skills.xml -->
<!-- demo skills for LvL 1 character for all classes -->
<!-- to use a specific key instead of MACRO then use hotkey="VK_1" this example is for hotkey 1 -->
<skills_priest>
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_5" priority="100" hpper="75" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_8" priority="90" inbattle="true" hpper="50" />
<skill name="PRIEST_SOUL_SOURCE" hotkey="MACRO" priority="50" inbattle="true" hpper="15" />
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="50" hpper="90" />
<skill name="PRIEST_RISING_TIDE" hotkey="MACRO" priority="80" />
<skill name="PRIEST_WAVE_ARMOR" hotkey="MACRO" priority="40" inbattle="true" />
<skill name="PRIEST_AMPLIFIED_ATTACK" hotkey="MACRO" priority="20" rebuffcut="60" inbattle="true" />
<skill name="PRIEST_GRACE_OF_LIFE" hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_8" priority="100" inbattle="true" hpper="50" />
<!--skill name="PRIEST_SOUL_BOND" hotkey="MACRO" priority="30" /> -->
<!--skill name="PRIEST_MAGIC_BARRIER" hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" /> -->
</skills_priest>
<skills_mage>
<skill name="PRIEST_HOLY_AURA" hotkey="VK_8" priority="100" inbattle="true" hpper="50" />
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_5" priority="100" hpper="75" />
<skill name="MAGE_INTENSIFICATION" hotkey="VK_9" priority="110" inbattle="true" />
<skill name="MAGE_LIGHTNING" hotkey="VK_2" priority="80" />
<skill name="MAGE_FLAME" hotkey="VK_3" priority="70" />
<skill name="MAGE_FIREBALL" hotkey="VK_4" priority="60" />
<skill name="MAGE_ENERGY_INFLUX" hotkey="MACRO" priority="30" inbattle="true" />
<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="MACRO" priority="30" inbattle="true" />
<skill name="MAGE_ENERGY_WELL" hotkey="MACRO" priority="30" inbattle="true" />
</skills_mage>
<onLoad><![CDATA[
]]></onLoad>
<onDeath><![CDATA[
]]></onDeath>
<onLeaveCombat><![CDATA[
]]></onLeaveCombat>
<onLevelup><![CDATA[
]]></onLevelup>
<onSkillCast><![CDATA[
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_5" priority="100" hpper="95" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_8" priority="100" inbattle="true" hpper="75" />
]]></onSkillCast>
<onHarvest><![CDATA[
]]></onHarvest>
<onUnstickFailure><![CDATA[
]]></onUnstickFailure>
</profile>