Rafaelbragan 13 Posted April 15, 2013 Share Posted April 15, 2013 I created my own fight class but i cant add the pet ability call Freeze(mage frost). There's a way to solve this? Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/ Share on other sites More sharing options...
Ohren 106 Posted April 15, 2013 Share Posted April 15, 2013 I haven't had issues adding pet skills in before, but for some reason this one is not working. I'm not sure how WRobot handles pet AoE spells, so I couldn't come up with a way to get it to work. Maybe Droidz can help out when he gets on. Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2263 Share on other sites More sharing options...
Droidz 2742 Posted April 15, 2013 Share Posted April 15, 2013 hi, Wrobot don't managing pet ability. But you can use pet ability in fightclass with lua code, try this CastSpell(33395, "pet"); (http://www.wowwiki.com/API_CastSpell, http://www.wowhead.com/spell=33395) Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2285 Share on other sites More sharing options...
Rafaelbragan 13 Posted April 15, 2013 Author Share Posted April 15, 2013 Didn't work! nvm it! Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2289 Share on other sites More sharing options...
Ohren 106 Posted April 15, 2013 Share Posted April 15, 2013 Did you change the spell setting Not a spell, is lua script to true? Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2293 Share on other sites More sharing options...
Rafaelbragan 13 Posted April 15, 2013 Author Share Posted April 15, 2013 Can you explaint it more? I didn't understand what to do... Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2297 Share on other sites More sharing options...
Ohren 106 Posted April 15, 2013 Share Posted April 15, 2013 Give that a good read through. Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2298 Share on other sites More sharing options...
Rafaelbragan 13 Posted April 15, 2013 Author Share Posted April 15, 2013 Oh man now i understood! I will try it soon and will feedback! Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2301 Share on other sites More sharing options...
Loki 47 Posted April 15, 2013 Share Posted April 15, 2013 Another soul saved :) Bonus point if anyone know from what game that frase is from Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2302 Share on other sites More sharing options...
Rafaelbragan 13 Posted April 16, 2013 Author Share Posted April 16, 2013 I failed, sorry. i couldn't make it work! Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2313 Share on other sites More sharing options...
Ohren 106 Posted April 16, 2013 Share Posted April 16, 2013 Sorry the picture is so big, it was too distorted when I shrunk it down. You enter the LUA in as if it were any other spell. Add in conditions the same. AOE Spell - true; What this does is makes WRobot cast the spell at a certain location. Since this spell requires being cast at a certain location (big green circle that appears when you cast it), we must set it true. Check if know spell, is usable and good distance - false; I believe (haven't tested it out fully yet) that all LUA scripts in the spell menu need this false and... Check if target is in view - false. Not spell, is lua script - true; Seems rather self explanatory, but this is what keeps WRobot from trying to execute CastSpell(33395, "pet") as a spell and just executes it as a script instead. Rafaelbragan 1 Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2314 Share on other sites More sharing options...
Ohren 106 Posted April 16, 2013 Share Posted April 16, 2013 If you can't get it to work after trying this, I'll add that in to my Frost Mage fight class and send you a download link. Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2315 Share on other sites More sharing options...
Ohren 106 Posted April 16, 2013 Share Posted April 16, 2013 Actually, it really just isn't working. I've got it casting Freeze, so the green circle is there, but then nothing. [Fight] 12:02 - Launch LUA script: CastSpell(5, "pet"); [Fight] 12:02 - Launch LUA script: CastSpell(5, "pet"); [Fight] 12:03 - Launch LUA script: CastSpell(5, "pet"); [Fight] 12:03 - Launch LUA script: CastSpell(5, "pet"); Also after reading Use "spell" or SpellBookFrame.booktype as the spellbookType for any non-pet spell. The id is counted from 1 through all spell types (tabs on the right side of SpellBookFrame). Pet spells also start from 1. (See example above). The CastSpell function can not be used outside Blizzard-signed code except when "casting" trade skills (e.g. Cooking, Alchemy, etc.). So 5 works fine, whereas the spell ID did not. Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2316 Share on other sites More sharing options...
Rafaelbragan 13 Posted April 16, 2013 Author Share Posted April 16, 2013 Man can you upload a fight classe with pet ability inside? It wasn't work! thanks for the patience! Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2317 Share on other sites More sharing options...
Droidz 2742 Posted April 17, 2013 Share Posted April 17, 2013 If don't works, you can try to use /click ButtonName For get button name use this macro: /run print("/click "..GetMouseFocus():GetName()) (put you mouse cursor over spell button, launch this macro and in wow chat is written button name). Replace CastSpell(33395, "pet"); by /click ButtonName Link to comment https://wrobot.eu/forums/topic/331-can-i-add-pet-skills-into-wrobot/#findComment-2331 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now