• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Druid profile 1.6
#11
nope he still doesnt want to enrage

I added this below "use bash to finish fleeing humanoids" command and it works now.
Code:
    -- use bear enrage
        if (useEnrage == true and targetHealth >= enrageTargetHealth and localHealth >= enrageHealth and IsSpellOnCD('Enrage') == 0 and localRage < 15) then
            if CastSpellByName('Enrage') then
                return;
            else
                return;
            end
        end
  Reply
#12
another nice addition

add this below the "use bash to finish fleeing humanoids" command.


Code:
    -- use Faerie Fire (Feral)
        if (HasSpell("Faerie Fire (Feral)") == 1 and IsSpellOnCD('Faerie Fire (Feral)()') and HasDebuff (targetObj, 'Faerie Fire (Feral)') == 0) then
            if CastSpellByName('Faerie Fire (Feral)()') then
                return;
            else
                return;
            end
        end
  Reply
#13
Code:
function Paranoid(range)
   local currentObj, typeObj = GetFirstObject();
   local localObj = GetLocalPlayer();
   while currentObj ~= 0 do
       if typeObj == 4 then -- player
           if (GetDistance(currentObj) < range and currentObj ~= localObj and IsInCombat() == 0 and IsDead(localObj) == 0) then
                if HasBuff(localObj, 'Cat Form') == 0 then
                    CastSpellByName('Cat Form');
                    SetWaitTimer(2.0);
                    return;
                end
                if (HasSpell("Prowl") == 1 and IsSpellOnCD("Prowl") == 0) and HasBuff(localObj, 'Prowl') == 0 then CastSpellByName('Prowl');SetWaitTimer(10.0); return;
                end
                return true;
           end
       end
       currentObj, typeObj = GetNextObject(currentObj);
  end
   return false;
end
I am trying to get paranoid to work with horde, so I need to switch to cat, then cast prowl. I had some other checks in place before, but I cant even get
this basic version to work.

What happens is it will cast cat, but not cast prowl on the first run through, the second time through even though it is in cat will cast cat again and immediately
cast prowl, leaving me prowling as a cow. 

Couple questions:

1. Why isn't my check for cat buff working?
2. Can I only cast one spell per pass with this API? If so that would answer the question of why it is casting prowl the second time through.

I think the main issue is it is not checking for cat form, if someone could help. I would also like for it to move to the next WP while stealthed so it will
avoid being paranoid around an AFK player for too long, which I think I have done if I can get the cow to prowl.
  Reply
#14
Got it to work properly, this will switch to cat and prowl when an enemy is near, it will also keep walking on your path so an AFK or glitched bot wont stop you for hours.
Code:
function Paranoid(range)
   local currentObj, typeObj = GetFirstObject();
   local localObj = GetLocalPlayer();
   while currentObj ~= 0 do
       if typeObj == 4 then -- player
           if (GetDistance(currentObj) < range and currentObj ~= localObj and IsInCombat() == 0 and IsDead(localObj) == 0) then
                if (HasSpell("Prowl") == 1 and IsSpellOnCD("Prowl") == 0) and HasBuff(localObj, Prowl) == 0 and HasBuff(localObj, 'Cat Form') == 1 then
                    CastSpellByName('Prowl');
                    SetWaitTimer(10.0);
                elseif HasBuff(localObj, 'Cat Form') == 0 then
                                        ExitForm();
                    CastSpellByName('Cat Form');
                    SetWaitTimer(1.0);
                end
                Navigate();
                return true;
           end
       end
       currentObj, typeObj = GetNextObject(currentObj);
  end
   return false;
end
  Reply
#15
I have an issue with bearform on this update - it pulls the enemy target and flee away, how do I fix it?  On 1.3 doesn't have this issue :/

-edit: Figure out "wait timer status is bugged" it reach over 10-20second  before character stop running away from each pull.
  Reply
#16
Do you use this rotation with the latest version of Ogasai ?
I have some trouble doing so.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)