Quote:
Originally Posted by phat34
This can be complex because equipping a skill requires you to be in a guildhall, town or outpost and actually using the skill would require you to be in an instance... So a functional way of testing if one has a skill that has been equipped and proceeding to an instance to test by casting and then using func IsRecharged() right after or some other way of testing if the skill has been cast such as haseffect() to determine if the skill is even equipped.
I will look through my code to see if there is a function or way to determine if a skill is unlocked... but even if there is you would then be looking way for a way to attain the said skill from a skill trainer or priest in GTOB, would you not?
|
Sorry - i used the wrong wording, with "unlocked" i meant if the character already has captured the elite skill ( as in, from boss or with Tome, not unlocked with factions)
I imagine the flow of things to be something like:
1. switchSecondary profession
2. in a town Check if skill (using skill_id from Maril ) is present or not
3. if not, travel to boss location and capture ( if outpost is unlocked )
[optional] - Go buy signet of capture at skilltrader
All skills / bosses / closest outpost to boss / path to boss would be in different lists and called accordingly.
The 2 hard parts are:
1. Checking if skill is already capped or not
2. Navigating the "skill capture" window after the boss dies
The last annoyance is Prophecies where bosses spawn randomly.. but that'll be a worry for later.