thetaxi
-
Posts
19 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by thetaxi
-
-
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
-
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.
-
[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
-
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> -
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<bool>(@"
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> -
Working Great! thank you!
-
Do i need to update anything?
-
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 -
What about the mechanar elevator? Is that in the pathfinder?
-
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?
-
For Clarity, i dont want to make the bot shutdown- just stop actions.
-
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.
-
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...
-
This Worked Thank you!
Next- Make Druid harvest while in shapeshift form!
-
Im on a server that allows flying mount use in Azeroth in 3.3.5. I made a gatherer profile using flying locations but it still will only a ground mount. If i put a flying mount in as the ground mount, it will mount but not fly. How can i force it to fly?
-
Did you ever finish Mana Tombs?
-
UPDATED
I'm trying to get a bot to follow another toon around and attack what he attacks. The purpose is to boost xp. I have tried doing macros with the party bot.
This is for vanilla. I have an addon called focus frame that allows me to set a focus. How can i add to the fight class to assist focus or even assist a player by name- i dont mind editing the profile as need for the name.
The focus frame command is /fassist
C code to detect multiple buffs by ID
in Fight Classes assistance
Posted
Do you know of a better way to detect a debuff by ID? Perhaps some Lua code?