Jump to content

thetaxi

Members
  • Posts

    19
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

thetaxi's Achievements

  1. Do you know of a better way to detect a debuff by ID? Perhaps some Lua code?
  2. After many iterations and tries I have finally found a semi working solution to a custom debuff spell detection. I have to use C sharp code to detect the buff. However, there are multiple different buffs and so far I am creating a separate spell for each right now. Is there a better way to do this? Remember, I have to use spell IDs. new SpellState("CastSpellByName(\"Cleanse\");", 9, context => FightconfignameSettings.CurrentSetting.R && wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff (123456), new SpellState("CastSpellByName(\"Cleanse\");", 8, context => FightconfignameSettings.CurrentSetting.V && wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff (123457), new SpellState("CastSpellByName(\"Cleanse\");", 7, context => FightconfignameSettings.CurrentSetting.Z && wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff (123458), This is what I am working with but it seems to be slowing down my rotation a lot. Any ideas on how to improve the C code or even go to LUA. Thank You
  3. Its not working. The debuff is custom so i dont think its being picked up. How can i adapt this to use spellID which i know. I can just write a couple of options for different spell ids I confirmed it worked with other magic but not these custom spells.
  4. [D] 08:45:24 - [FightClass] CastSpellByID(100503); - NeedToRun time to execute: 27 [D] 08:45:24 - [FightClass] CastSpellByID(100503); - NeedToRun = false - condition [D] 08:45:24 - [FightClass] CastSpellByID(100503); - NeedToRun time to execute: 33 [D] 08:45:24 - [FightClass] CastSpellByID(100503); - NeedToRun = false - condition
  5. Working in XML and cannot get this to work. I have tried both lua script and C#code and still not working. First the lua script <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript>anyCurse = false; for i=1,40 do local name, rank, icon, count, debuffAuraType = UnitAura("player", i); if debuffAuraType == "Magic" then anyCurse = true; return; end end</LuaScript> <VarRet>anyCurse</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> </FightClassConditions> <SpellName>CastSpellByID(100503);</SpellName> <Priority>13</Priority> <CombatOnly>false</CombatOnly> <CheckIfKnow>false</CheckIfKnow> <CheckIfSpellUsable>false</CheckIfSpellUsable> <CheckSpellDistance>false</CheckSpellDistance> <CheckIfView>false</CheckIfView> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <Debug>true</Debug> <WaitDuringCasting>false</WaitDuringCasting> </FightClassSpell> Ive also tried this <FightClassConditions> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript>anyCurse = false; for i=1,40 do local name, rank, icon, count, debuffAuraType = UnitAura("player", i); if name and debuffAuraType and debuffAuraType == "Magic" then anyCurse = true; return; end end</LuaScript> <VarRet>anyCurse</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> </FightClassConditions> <SpellName>CastSpellByID(100503);</SpellName> <Priority>13</Priority> <CombatOnly>false</CombatOnly> <CheckIfKnow>false</CheckIfKnow> <CheckIfSpellUsable>false</CheckIfSpellUsable> <CheckSpellDistance>false</CheckSpellDistance> <CheckIfView>false</CheckIfView> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <Debug>true</Debug> <WaitDuringCasting>false</WaitDuringCasting> </FightClassSpell>
  6. Reviving this from way back. I am trying to do this but with magic and coming up empty. This is for 3.3.5 <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>CSharpCode</ContionType> <Param xsi:type="FightClassConditionString"> <Value> Lua.LuaDoString&lt;bool&gt;(@" for i=1,25 do local _, _, _, _, d = UnitDebuff('player',i); if d == 'Magic' then return true end end")</Value> </Param> </FightClassCondition> </FightClassConditions> <SpellName>CastSpellByID(100503);</SpellName> <Priority>13</Priority> <CombatOnly>false</CombatOnly> <CheckIfKnow>false</CheckIfKnow> <CheckIfSpellUsable>false</CheckIfSpellUsable> <CheckSpellDistance>false</CheckSpellDistance> <CheckIfView>false</CheckIfView> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <Debug>true</Debug> <WaitDuringCasting>false</WaitDuringCasting> </FightClassSpell> Ive also tried this <FightClassConditions> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript>anyCurse = false; for i=1,40 do local name, rank, icon, count, debuffAuraType = UnitAura("player", i); if name and debuffAuraType and debuffAuraType == "Magic" then anyCurse = true; return; end end</LuaScript> <VarRet>anyCurse</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> </FightClassConditions> <SpellName>CastSpellByID(100503);</SpellName> <Priority>13</Priority> <CombatOnly>false</CombatOnly> <CheckIfKnow>false</CheckIfKnow> <CheckIfSpellUsable>false</CheckIfSpellUsable> <CheckSpellDistance>false</CheckSpellDistance> <CheckIfView>false</CheckIfView> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <Debug>true</Debug> <WaitDuringCasting>false</WaitDuringCasting> </FightClassSpell>
  7. Top Player position: Map name MPQ: TempestKeepFactory My Position: 256.7376, 52.95427, 25.67882, "None" My Position Vector: new Vector3(256.7376, 52.95427, 25.67882, "None") My Position: XML <Vector3 X="256.7376" Y="52.95427" Z="25.67882" Type="None" /> My Rotation: 3.046692 ___________________________________________ Bottom Player position: Map name MPQ: TempestKeepFactory My Position: 256.7376, 52.95428, 0.2462578, "None" My Position Vector: new Vector3(256.7376, 52.95428, 0.2462578, "None") My Position: XML <Vector3 X="256.7376" Y="52.95428" Z="0.2462578" Type="None" /> My Rotation: 3.046692
  8. What about the mechanar elevator? Is that in the pathfinder?
  9. Creating a dungeon profile for mechanar- i Think i have everything working except the lift. I can enter the area but obviously isnt waiting and then just runs into the wall. Any suggestions?
  10. For Clarity, i dont want to make the bot shutdown- just stop actions.
  11. Is there a way to make the bot just stop if its in a zone that it shouldn't be? Or even if its teleported. I know you can have it exit but id rather just have it stop what its doing. Maybe make a quest profile that if not in these areas it stops all action. Or if automaton leaves start area it stops working.
  12. So now it stopped working. Should it be a dll file or cs file? I am getting an error as a dll file and doing nothing as a cs file. Log Entry : [D] 12:38:03 - [MovementManager] You try to use flying/swimming path but you cannot fly/swim here, try to use ground mouvement... AzerothFly.cs AzerothFly.dll
  13. This Worked Thank you! Next- Make Druid harvest while in shapeshift form!
×
×
  • Create New...