error settings.lua:447 / onSkillCast event

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

error settings.lua:447 / onSkillCast event

#1 Post by d003232 » Mon Aug 24, 2009 3:21 am

After the SVN 174 update I get an error:
Attachments
Screenshot.gif
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5333
Joined: Sat Jan 05, 2008 4:21 pm

Re: error settings.lua:447 / onSkillCast event

#2 Post by Administrator » Mon Aug 24, 2009 3:59 am

Attach a copy of your profile.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: error settings.lua:447 / onSkillCast event

#3 Post by d003232 » Mon Aug 24, 2009 4:03 am

Administrator wrote:Attach a copy of your profile.
Nothing special:

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>
The RoM Bot Online Wiki needs your help!

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: error settings.lua:447 / onSkillCast event

#4 Post by d003232 » Mon Aug 24, 2009 4:17 am

btw. I detect that there is a

Code: Select all

			onDeath = function () pauseOnDeath(); end,
in settings.lua causing a 'hard' pauseOnDeath()? Is that a mistake?
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5333
Joined: Sat Jan 05, 2008 4:21 pm

Re: error settings.lua:447 / onSkillCast event

#5 Post by Administrator » Mon Aug 24, 2009 4:19 am

Fixed as of r175. Try it and see if that helps.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: error settings.lua:447 / onSkillCast event

#6 Post by d003232 » Mon Aug 24, 2009 4:33 am

Administrator wrote:Fixed as of r175. Try it and see if that helps.
No. Didn't work:
Attachments
Screenshot.gif
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5333
Joined: Sat Jan 05, 2008 4:21 pm

Re: error settings.lua:447 / onSkillCast event

#7 Post by Administrator » Mon Aug 24, 2009 4:52 am

Ok, after another minor tweak, it should be working. Test it again.
in settings.lua causing a 'hard' pauseOnDeath()? Is that a mistake?
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.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: error settings.lua:447 / onSkillCast event

#8 Post by d003232 » Mon Aug 24, 2009 5:03 am

Administrator wrote:Ok, after another minor tweak, it should be working. Test it again.
ok, now it works.
Administrator wrote:
in settings.lua causing a 'hard' pauseOnDeath()? Is that a mistake?
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.
Yes I will remove it. Because if's in conflict with the option:

Code: Select all

<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
Mean's you say 'true' and it will still pause. I don't recognize that before, because the comments seems also to count as 'not empty' tag. Just after I deleteing the comments, I was wondering about why the resurrection don't work anymore.
The RoM Bot Online Wiki needs your help!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests