Ok so everything is working well so far, i'm levelling fairly slow as i have to read so much before i do most stuff, for instance the Shaman Water Totem Quest, took me hours. So i would like to tinker with your script make it run better for my team, Warrior never uses Defence Stance so my mage keeps pulling aggro from him, i'm only level 40 so i realise i got some way to go yet.
When boxing Runes of Magic i used a script called Diyce 2 - Do it Yourself Combat Engine, was really simple to setup. https://mods.curse.com/addons/rom/diy-combat-engine-v2
and to add and remove skills was a simple unquote and /reloadui
An example of 2 Rogue skills
--Potions and Buffs
Skill = {
{ name = "Combat Master", use = ((not pbuffs['Combat Master']) or (pbuffs['Combat Master'].time <= 45)) and (EnergyBar2 >= 30) },
--{ name = "Poison", use = (not combat) and ((not pbuffs['Poisonous']) or (pbuffs['Poisonous'].time <= 45)) }, }
I understand Wow and Rom are not the same game, just asking for some advice to modify your code without breaking it.
First of all many props to you for being brave enough to try my scripts. They are not for the faint of heart. There are many Fury swipes specific things in them that you have to search for and change. For example Warrior defensive stance is determined by the warrior holding a couple of weapons which I name in The Script. You will have to change those names to your own shield and one-hander names. Warrior is a special case. I determine Fury stance arms and defensive stance by the weapons and shields the warrior is holding and you will have to edit those just like you edit the names in the file to be the names of your own Tunes. So the bottom line is I assume that whoever tries to use the scripts will be able to at least scan through Lua code and find the obvious differences between his raid and mine. I would suggest you go through the entire file line by line and try to understand each line if you can. I put a lot of comments in there. Good luck!