1.) How do I use CheckForBuff? What's the correct syntax for it? Let's say I wanna check if Essence of Magic buff is on, if it doesn't have it then it will cast the skill. How do you code that?
Also, for CheckForBuff to work, you have to add it to a custom userfunctions.lua but I'm wondering where exactly I should put this file. Should it be in the rom folder or the rom/userfunctions folder?
2.) How do I change skill options using ChangeProfileSkill command?
I tried these codes earlier and they didn't work:
Code: Select all
changeProfileSkill("MAGE_THUNDERSTORM" , "priority", 100);
changeProfileSkill("MAGE_FLAME" , "priority", 0);Code: Select all
changeProfileSkill("MAGE_THUNDERSTORM" , priority, 100);
changeProfileSkill("MAGE_FLAME" , priority, 0);Right now, I got it to work using a new profile I made and using the loadProfile command.
But I still want to use ChangeProfileSkill if possible, so please tell me what I did wrong. Thanks.
