Jump to content

Recommended Posts

Hello

I have been searching the forums but not been able to find a solution that works

I am trying to have a fight class select the appropriate spell based on the ranks that are known, a dream scenario would be:

public Spell Frostbolt = new Spell("Frostbolt");
public Spell Firebolt = new Spell("Firebolt");

if(Frostbolt.KnownRank > 4){
	Frostbolt.Launch();
} else {
	Firebolt.Launch();
}

Does any one know how this would be possible to do given the functionality that is available?

Thanks in advance!

Link to comment
https://wrobot.eu/forums/topic/8199-check-for-spell-rank-in-112/
Share on other sites

would you not be best in just putting a level on it, assuming you train frostbolt rank 4 at lvl 20?  22?.. why not just:

 if (ObjectMager.Me.level > 20 && Frostbolt.Knownspell)

Frostbolt.launch;

 

 

... not exactly what your asking, but would work for the scenario you gave above.

Edited by eeny

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...