error settings.lua:447 / onSkillCast event
Posted: Mon Aug 24, 2009 3:21 am
After the SVN 174 update I get an error:
MicroMacro home
https://www.solarstrike.net/phpBB3/
Nothing special:Administrator wrote:Attach a copy of your profile.
Code: Select all
<profile>
-- rom/createpath.lua
<options>
<option name="HP_LOW" value="95" />
<option name="HP_LOW_POTION" value="30" />
<option name="MP_LOW_POTION" value="50" />
<option name="COMBAT_TYPE" value="" />
<option name="COMBAT_DISTANCE" value="220" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="didadu.xml" />" />
<option name="RETURNPATH" value="" />" />
<option name="PATH_TYPE" value="waypoints" />
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="WAYPOINTS_REVERSE" value="false" />
<option name="LOOT" value="true" />
<option name="LOOT_DISTANCE" value="100" />
<option name="LOOT_IN_COMBAT" value="true" />
<option name="LOOT_TIME" value="1950" />
<option name="POTION_COOLDOWN" value="15" />
<option name="MAX_FIGHT_TIME" value="12" />
<option name="DOT_PERCENT" value="60" />
<option name="HP_REST" value="15" />
<option name="MP_REST" value="15" />
<option name="CLEAR_AROUND" value="false" />
<option name="CLEAR_AROUND_LOOT" value="30" />
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
<option name="LOGOUT_TIME" value="240" />
<option name="LOGOUT_SHUTDOWN" value="false" />
<option name="TARGET_LEVELDIF_BELOW" value="10" />
<option name="TARGET_LEVELDIF_ABOVE" value="3" />
<option name="QUICK_TURN" value="true" />
<option name="HARVEST_SCAN_WIDTH" value="15" /> -- steps horizontal
<option name="HARVEST_SCAN_HEIGHT" value="10" /> -- steps vertical
<option name="HARVEST_SCAN_STEPSIZE" value="22" /> -- wide of every step
<option name="HARVEST_SCAN_TOPDOWN" value="false" /> -- true = top->down false = botton->up
<option name="HARVEST_SCAN_YREST" value="7" /> -- scanspeed
<option name="WAIT_TIME_AFTER_RES" value="10000" />
<option name="USE_SLEEP_AFTER_RESUME" value="true" />
</options>
<friends>
<friend name="Ambas" />
<friend name="Schatten des Berhu-K\195\182nigs" />
<friend name="Anselve" />
<friend name="friendsname4" />
<friend name="friendsname5" />
<friend name="friendsname6" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_H" />
<hotkey name="MP_POTION" key="VK_G" />
<hotkey name="ATTACK" key="VK_1" />
<hotkey name="RES_MACRO" key="VK_7" />
<hotkey name="LOGOUT_MACRO" key="VK_C" />
</hotkeys>
<skills_mage>
<skill name="MAGE_FLAME" hotkey="VK_Q" priority="90" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_R" priority="110" inbattle="true" hpper="22" />
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_3" priority="105" hpper="22" />
--skill name="MAGE_INTENSIFICATION" hotkey="VK_5" priority="70" />
<skill name="PRIEST_REGENERATE" hotkey="VK_4" priority="50" />
<skill name="MAGE_ESSENCE_OF_MAGIC" hotkey="VK_Z" priority="30" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_T" priority="20" />
</skills_mage>
<skills_priest>
<skill name="PRIEST_RISING_TIDE" hotkey="VK_Q" priority="70" level="" />
<skill name="MAGE_FIREBALL" hotkey="VK_2" priority="60" level="" />
<skill name="PRIEST_REGENERATE" hotkey="VK_4" priority="40" level="" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_R" priority="100" inbattle="true" hpper="21" />
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_3" priority="99" hpper="21" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_T" priority="20" level="" />
<skill name="PRIEST_ANGELS_BLESSING" hotkey="VK_Z" priority="21" level="" />
</skills_priest>
<onDeath>
</onDeath>
<onLeaveCombat>
</onLeaveCombat>
<onSkillCast>-- Additional Lua code to execute when casting a skill
-- Note: arg1 contains the skill being used.
-- i.e. arg1.Name will be the name of the skill being cast.</onSkillCast>
</profile>Code: Select all
onDeath = function () pauseOnDeath(); end,
No. Didn't work:Administrator wrote:Fixed as of r175. Try it and see if that helps.
That's just the default. It only will be used if the onDeath tag is not given in a profile. You can remove it if you want.in settings.lua causing a 'hard' pauseOnDeath()? Is that a mistake?
ok, now it works.Administrator wrote:Ok, after another minor tweak, it should be working. Test it again.
Yes I will remove it. Because if's in conflict with the option:Administrator wrote:That's just the default. It only will be used if the onDeath tag is not given in a profile. You can remove it if you want.in settings.lua causing a 'hard' pauseOnDeath()? Is that a mistake?
Code: Select all
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />