RoM Bot Events

From SolarStrike wiki
Revision as of 00:55, 23 March 2015 by 141.101.89.157 (talk) (Undo revision 1209 by 141.101.89.157 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RoM Bot Events

The following events occur based on the name of the tag, ex onDeath will be executed when the player dies.

onLoad

Lua code placed between the tags labeled onLoad in your profile will be executed before any waypoint script is loaded and thus before any combat and skill casting. This is useful to change the script or script parameters before the waypoint path is loaded.

onDeath

Lua code placed between the tags labeled onDeath in you profile will be executed when the player dies. This can be useful for a death based repair script that will automatically repair when you have died a certain amount of times.

onLeaveCombat

Lua code placed between the tags labeled onLeaveCombat in you profile will be executed when the player leaves combat, ex the player fights 2 Boars, once it kills both and is no longer fighting with anything else the event will be triggered. This is useful for checking if you have food buffs active and if not then to use the item.

onLevelUp

Lua code placed between the tags labeled onLevelUp in you profile will be executed when the player gains a level. This is useful for automatically increasing the level of the players skills.

onUnstickFailure

Lua code placed between the tags labeled onUnstickFailure in your profile will be executed after the maximum number of unstick tries is reached, the default maximum is 10. This event is useful for loading a new waypoint file or logging a different character.


The following events occur in order during the casting procedure of the RoM Bot.

onPreSkillCast

Lua code placed between the tags labeled onPreSkillCast in your profile will be executed before the skill is cast. This event is useful if you want to You must return true if you want the skill to be cast or false if you do not want to cast the skill. arg1 holds the skill to be cast

onSkillCast

Lua code placed between the tags labeled onSkillCast in your profile will be executed after the skill has been cast. This event is useful for preforming combination attacks on the target. arg1 holds the skill that was cast