December 10, 201510 yr Hi, this my first post here. Wrobot is, a great tool with, a lot of possibilities, but i can't find some options which make me 100% happy. One of this option is checking conditions on focus, party1, arena1 etc. and casting spells what i want. A simple example can be arena2 casting Fear, so i cast Tremor etc. Can someone tell me how to write script like this. I have, a lot of ideas to make PvP scripts, but don't confuse with pve bot rotation with is useless on arena. Thx for help. Will it work? local spell, _, _, _, _, _, _, castID, _, = UnitCastingInfo("Arena1") local enabled = GetSpellCooldown("Tremor Totem") if spell then if castID == 5782 and enabled == 0 then RunMacroText("/cast Tremor Totem") end end end
December 11, 201510 yr Hello, Put this code insted spell name in your fightclass, and activate spell setting "Not Spell, is lua...". I haven't tested, but try this lua code: local spell, _, _, _, _, _, _, castID, _, = UnitCastingInfo("Arena1"); local usable, nomana = IsUsableSpell("Tremor Totem"); if spell then if castID == 5782 and usable then RunMacroText("/cast Tremor Totem"); end end or this code (if you want check all area members): for i = 1, 5 do local spell, _, _, _, _, _, _, castID, _, = UnitCastingInfo("Arena" .. tostring(i)); local usable, nomana = IsUsableSpell("Tremor Totem"); if spell then if castID == 5782 and usable then RunMacroText("/cast Tremor Totem"); end end end
January 11, 201610 yr How can I use this code to fear him instead? Ok, my bot is fighting with arena 1 in "party" mode. arena 2 wants to cast something. My bot should fear arena 2 in this case. But not switching target completely. And another question: How can I command the bot (in party-mode) to switch target, when his target is in CC, or in some invulnerable mode? I want to heal, so my target is not always the right one for the bot. I thought to write a phrase in chat, this command signals a lua-code in his fight-class to switch the target. If this is a realizable option with a phrase, I also would need a command to get the bot out of fight and get back to me. I reget, I do not know anything about lua codes... And I know that my English is very poor. Sry :(
Create an account or sign in to comment