Jump to content

Snippets codes for quest profiles


Droidz

Recommended Posts

Ignore the attack of a specific mob

if (wManager.Wow.ObjectManager.ObjectManager.BlackListGetUnitAttackPlayerGuidTime.ContainsKey(CurrentTarget.Guid))
    wManager.Wow.ObjectManager.ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Remove(CurrentTarget.Guid);
wManager.Wow.ObjectManager.ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(CurrentTarget.Guid, System.DateTime.Now + System.TimeSpan.FromMinutes(5)); 

(this code ignore mob attack for 5 minutes)

Link to comment
Share on other sites

  • 3 years later...

Different way to buy items

var position = new Vector3(9684.1, -7363.6, 11.93153);
int npcEntryId = 16618;

{
    if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId))
    {
        Usefuls.SelectGossipOption(GossipOptionsType.vendor);
        {
            Thread.Sleep(2000);
        }

        Lua.RunMacroText("/run BuyMerchantItem(8,28)"); //8 that an item position in vendor window, 28 amound of items to buy
    }
}

 

Link to comment
Share on other sites

Talent asign for WOTLK via quest order editor

RunMacroText("/click TalentMicroButton") opens talent tree
RunMacroText("/click PlayerTalentFrameTab3") the talent tree, can be 1,2,3 from left to right
RunMacroText("/click PlayerTalentFrameTalent6") the talent position in the talent tree, /fstack ingame command to collect the information
RunMacroText("/click TalentMicroButton") close talents tree

This is for wow Sirus talents asign method

RunMacroText("/click TalentMicroButton")
RunMacroText("/click PlayerTalentFramePanel2Talent2")
RunMacroText("/click PlayerTalentFrameLearnButton")
RunMacroText("/click StaticPopup1Button1")
RunMacroText("/click TalentMicroButton")

by RunLuaCode

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...