January 6, 20188 yr 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!
January 6, 20188 yr 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 January 6, 20188 yr by eeny
January 6, 20188 yr Author Hi Eeny! Thanks for replying Great suggestion, and actaully what I am doing atm. I was hoping there was a better solution though :) Best regards
January 6, 20188 yr You can find some inspiration here: https://github.com/Schaka/VanillaFightclassFramework/commit/11db781db73cfa1cda5b43ea6ac034f616d8eab0
Create an account or sign in to comment