Jump to content

Matenia

Elite user
  • Posts

    2232
  • Joined

  • Last visited

Posts posted by Matenia

  1. Disclaimer: OP messaged me in private, and I didn't test this:

    local spellTable = {8122,5782,5246,5211,22570,19577,119381,853,408,1833,89766,107570,15487,2139};
    
    hasDebuff = false;
    for i=1,40 do
    	local name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID  =  UnitDebuff("party1", i);
      	for k,v in pairs(spellTable) do
        	if spellID == v then
          		hasDebuff = true
          	end
        end
    end

    return var is hasDebuff, search value is true (could also make this 0 and 1).

    Then the code is

    RunMacroText("/cast [@party1] spellName")

    Both the check above and this spell need to be Lua code. 

  2. It's a bit of bot. Private servers re-use GUIDs of NPCs, so after the bot temporarily blacklists them (because they're dead) and the server respawns them with the exact same ID, it won't "see" them anymore.

    You can clear your session blacklist. There is already another topic with the C# code for it (you can also click on it in the Tools section).

    And vanilla to wrath profiles should mostly work across expansions. Same as any Outlands or Northrend profile should work on any private server, because those things haven't changed on retail.

  3. -- backport C_Timer from WoD to 5.4.8
    C_Timer = CreateFrame("Frame", "C_Timer")
    C_Timer.schedule = {}
    C_Timer:SetScript("OnUpdate", function(self, elapsed)
    	for timestamp,callback in pairs(self.schedule) do
    		if timestamp <= GetTime() then
    			callback()
    			self.schedule[timestamp] = nil
    		end
    	end
    end)
    
    C_Timer.After = function(duration, callback)
    	C_Timer.schedule[GetTime() + duration] = callback
    end

     

  4. <QuestsSorted Action="If" NameClass="!Quest.HasQuest(26353) &amp;&amp; !Quest.GetQuestCompleted(26353)" />
    <QuestsSorted Action="Pulse" NameClass="CaptainSandersHiddenTreasureItemGrind" />
    <QuestsSorted Action="PickUp" NameClass="CaptainSandersHiddenTreasure" />
    <QuestsSorted Action="EndIf" NameClass="" />

    And then for the complete condition in the grinder/gatherer part, you can just check if you have the item in your bag.
    The actual pulse and turnin comes later for CaptainSandersHiddenTreasure

×
×
  • Create New...