Page 56 of 117 FirstFirst ... 646545556575866106 ... LastLast
Results 551 to 560 of 1163
  1. #551

    Default

    See what's happening here:
    Code:
    [COLOR=#000000]{ name = "Shadow Step", use = (EnergyBar1 >= 20) and (not behind) and (boss or pvp) },[/COLOR]
    (not behind) means (you ARE the target of of your target). probably it is not, as you are not a tank, => Shadow step will NOT be used.
    next:
    Code:
    [COLOR=#000000]{ name = "Blind Spot", use = (EnergyBar1 >= 25) and (behind) and (boss or pvp) },[/COLOR]
    in this case you ARE (behind) because you are probably still not the target of boss, => try to use Blind Spot, but you are still running in front of boss, so you get those [COLOR=#000000]error message "You must be behind the boss".
    Edit: So, your code will not even pass below this until you will not stand actually behind the boss, or until you will not become a target of your target (boss). So, here is the place to insert timer.
    If you do, go to next.
    [/COLOR]next:
    Code:
    [COLOR=#000000]{ name = "Wound Attack", use = ((EnergyBar1 >= 35) and ((tbuffs[500654]) and (tbuffs[500704]))) },[/COLOR]
    boss still doesn't have required debuffs => will not be Wound attacked
    next:
    Code:
    [COLOR=#000000]{ name = "Low Blow", use = (((EnergyBar1 >= 30) and (tbuffs[500654])) or (tbuffs["Energy Thief"]))},[/COLOR]
    two things here. first, boss still doesn't have required debuffs, second: the condition for usage shall be ...(pbuffs["Energy Thief"])... as it is your buff, not boss debuff
    next:
    Code:
    [COLOR=#000000]{ name = "Shadowstab", use = (EnergyBar1 >= 20) },[/COLOR]
    so, actually THIS willbe executed first thing out of all your rotation( if you add timer to Blind Spot). Otherwise it will be trying to use Blind Spot until you actually don't get behind the boss back.
    Last edited by synops; 03-30-2012 at 03:19 AM.

  2. #552

    Default

    Thanks for the answer and for the rotation explaination synops.
    So the only solution for this is to add the timer? And in that case, how do I create a timer for my problem?

    Thanks in advance,
    /B

  3. #553

    Default

    anyone have diyce scout/rogue ? i realy need it TT thx before

  4. #554

    Default Battlemonk

    For some reason my search option doesnt work right now and cant figure out what is wrong with my diyce settings, if anyone could take a look at it id appreciate it, im only working on the priest/warrior part, the warrior/warden works. Thanks all!

    Code:
     function KillSequence(arg1, goat2, healthpot, manapot, foodslot)
            --arg1 = "v1" or "v2" for debugging
            --healthpot = # of actionbar slot for health potions
            --manapot = # of actionbar slot for mana potions
            --foodslot = # of actionbar slot for food (add more args for more foodslots if needed)
    
                local Skill = {}
                local Skill2 = {}
                local i = 0
                
                -- Player and target status.
                local combat = GetPlayerCombatState()
                local enemy = UnitCanAttack("player","target")
                local EnergyBar1 = UnitMana("player")
                local EnergyBar2 = UnitSkill("player")
                local pctEB1 = PctM("player")
                local pctEB2 = PctS("player")
                local tbuffs = BuffList("target")
                local pbuffs = BuffList("player")
                local tDead = UnitIsDeadOrGhost("target")
                local behind = (not UnitIsUnit("player", "targettarget"))
                local melee = GetActionUsable(21) -- # is your melee range spell slot number
                --local a1,a2,a3,a4,a5,ASon = GetActionInfo(14)  -- # is your Autoshot slot number
                local phealth = PctH("player")
                local thealth = PctH("target")
                local LockedOn = UnitExists("target")
                local boss = UnitSex("target") > 2
                local elite = UnitSex("target") == 2
                local party = GetNumPartyMembers() >= 2
                local race = UnitRace("target")
                local Beamoid = race == "Humanoid" or race == "Beast"
                
                
                --Determine Class-Combo
                mainClass, subClass = UnitClassToken( "player" )
    
                --Silence Logic
                local tSpell,tTime,tElapsed = UnitCastingTime("target")
                local silenceThis = tSpell and silenceList[tSpell] and ((tTime - tElapsed) > 0.1)
                
                --Potion Checks
                healthpot = healthpot or 0
                manapot = manapot or 0
                
                --Equipment and Pet Protection
                if phealth <= .03 then
                        SwapEquipmentItem()        --Note: Remove the first double dash to re-enable equipment protection.
                    for i=1,6 do
                        if (IsPetSummoned(i) == true) then
                            ReturnPet(i);
                        end
                    end        
                end
                    
                --Check for level 1 mobs, if it is, drop target and acquire a new one.
                if (LockedOn and (UnitLevel("target") < 2)) then
                    TargetUnit("")
                    return
                end
                
                --Begin Player Skill Sequences
                
                    --Priest = AUGUR, Druid = DRUID, Mage = MAGE, Knight = KNIGHT, 
                    --Scout = RANGER, Rogue = THIEF, Warden = WARDEN, Warrior = WARRIOR
                    
            -- Class: Warrior/Warden
                if mainClass == "WARRIOR" and subClass == "WARDEN" then
                    --local SurpriseAttack = GetActionUsable(14)
                    
                --Potions and Buffs
                Skill = {
                    { name = "Survival Instinct",              use = (phealth <= .49) },
                    { name = "Action: "..healthpot,            use = (phealth <= .60) },
                    { name = "Action: "..manapot,              use = (pctEB2 <= .40) },
                    { name = "Briar Shield",                   use = (pctEB2 >= .05) and ((not pbuffs["Briar Shield"]) or (pbuffs["Briar Shield"].time <= 45)) },
                    { name = "Battle Creed",                   use = (pctEB2 >= .05) and ((not pbuffs["Battle Creed"]) or (pbuffs["Battle Creed"].time <= 45)) },
                        }
                        
                --Combat
                    if enemy then
                    
                    Skill2 = {
                        
                        { name = "Aggressiveness",                     use = boss }, 
                        { name = "Savage Whirlwind",                   use = (pctEB2 >= .05) },
                        { name = "Tactical Attack",                    use = ((tbuffs[500081]) and (EnergyBar1 >= 16)) },
                        { name = "Attack Weakener",                    use = ((pctEB2 >= .05) and tbuffs["Vulnerable"] and (not pbuffs["Aggressiveness"])) },
                        { name = "Open Flank",                         use = ((tbuffs["Vulnerable"]) and (EnergyBar1 >=11))  },
                        { name = "Probing Attack",                     use = ((EnergyBar1 >= 21) and (tbuffs[500081])) },
                        { name = "Slash",                              use = (EnergyBar1 >= 26), timer = "SSBleed", ignoretimer = (pbuffs["Aggressiveness"]) },
                        { name = "Power of the Wood Spirit",           use = (pctEB2 >= .05) },
                        { name = "Attack",                             use = (thealth == 1) },
                            } 
                    end
    
                --Class: Priest/Warrior
                elseif mainClass == "AUGUR" and subClass == "WARRIOR" then
                
                --Potions and Buffs
                Skill = {
                    { name = "Regenerate",                    use = (phealth <= .90) and (pctEB2 >= .05) and (not pbuffs["Regenerate"]) },
                    { name = "Action: "..healthpot,           use = (phealth <= .70) },
                    { name = "Blessed Spring Water",          use = (pctEB2 >= .05) and ((not pbuffs["Blessed Spring Water"]) or (pbuffs["Blessed Spring Water"].time <= 45)) },
                    { name = "Magic Barrier",                 use = (pctEB2 >= .05) and ((not pbuffs["Magic Barrier"]) or (pbuffs["Magic Barrier"].time <= 45)) },
                    { name = "Amplified Attack",              use = (pctEB2 >= .05) and ((not pbuffs["Amplified Attack"]) or (pbuffs["Amplified Attack"].time <= 45)) },
                    { name = "Grace of Life",                 use = (pctEB2 >= .05) and ((not pbuffs["Grace of Life"]) or (pbuffs["Grace of Life"].time <= 45)) },
                        }
                        
                --Combat
                    if enemy then
                    Skill2 = {
                        { name = "Battle Monk Stance",           use = ((combat) and (not string.find(pbuffs,"Battle Monk Stance"))) },
                        { name = "Enraged",                      use = ((boss) and (combat)) },
                        { name = "Ascending Dragon Strike",      use = (EnergyBar2 >= 30) },
                        { name = "Slash",                        use = (EnergyBar2 >= 26), timer = "SSBleed" },
                        { name = "Explosion of Fighting Spirit", use = ((not friendly) and (combat)) }
                        { name = "Power Build-Up",               use = (friendly and (not string.find(pbuffs,"Power Build-Up")) and (not combat)) }
                        { name = "Attack",                       use = (thealth == 1) },
                                }
                    end
                    
                --ADD MORE CLASS COMBOS HERE. 
                --USE AN "ELSEIF" TO CONTINUE WITH MORE CLASS COMBOS.
                --THE NEXT "END" STATEMENT IS THE END OF THE CLASS COMBOS STATEMENTS.
                --DO NOT POST BELOW THE FOLLOWING "END" STATEMENT!
                end
        --End Player Skill Sequences
        
        if (arg1=="debugskills") then        --Used for printing the skill table, and true/false usability
            DIYCE_DebugSkills(Skill)
            DIYCE_DebugSkills(Skill2)
        elseif (arg1=="debugpbuffs") then    --Used for printing your buff names, and buffID
            DIYCE_DebugBuffList(pbuffs)
        elseif (arg1=="debugtbuffs") then    --Used for printing target buff names, and buffID
            DIYCE_DebugBuffList(tbuffs)
        elseif (arg1=="debugall") then        --Used for printing all of the above at the same time
            DIYCE_DebugSkills(Skill)
            DIYCE_DebugSkills(Skill2)
            DIYCE_DebugBuffList(pbuffs)
            DIYCE_DebugBuffList(tbuffs)
        end
        
        if (not MyCombat(Skill, arg1)) then
            MyCombat(Skill2, arg1)
        end
            
        --Select Next Enemy
        if (tDead) then
            TargetUnit("")
            return
        end
        if mainClass == "RANGER" and (not party) then        --To keep scouts from pulling mobs without meaning to.
            if (not LockedOn) or (not enemy) then
                TargetNearestEnemy()
                return
            end
        elseif mainClass ~= "RANGER" then                    --Let all other classes auto target.
            if (not LockedOn) or (not enemy) then
                TargetNearestEnemy()
                return
            end
        end    
    end

  5. #555

    Default

    Hey Suzaku,
    found something on first sight without even trying to use it:
    { name = "Explosion of Fighting Spirit", use = ((not friendly) and (combat)) }
    { name = "Power Build-Up", use = (friendly and (not string.find(pbuffs,"Power Build-Up")) and (not combat)) }
    there's a "," missing at the end...

    also: "string.find" does not seem correct to me...
    DIYCE 2.0 was done without those those string.find to enhance performance...
    Have a look at the use of pbuffs in other scripts
    Last edited by Muinimula; 04-12-2012 at 09:20 AM.

  6. #556

    Default

    Thanks a lot Muinimula! i guess theres were to obvious for me to c them../sigh

    As for the string thingy last tiem i played i used the old diyce and it was an old script i had and i tryed to adapt it to diyce 2.0
    i guess i really fail at it, but got it working somehow lol!

    Tough i had to delete the battle monk stance and power build up lines for it to work.

    Thanks again!

  7. #557

    Default

    Anyone having any trouble with long duration buffs recasting over and over when you have the buff already? It started happening yesterday. I have not made any changes to my file. And have since downloaded and reinstalled DIYCE.

  8. #558

    Default

    Peryl,
    I'm having a problem with my w/wd and my wd/w diyce. Here's the problem, I am getting a skill requirement error. At first my diyce is working perfectly, but once my rage is used up, and it tries to use the skill, I get the error and then all's i do is just stand there and white attack until i have enough rage to use the next attack. I thought that it was supposed to search to see if i had the rage to use the skill. I dont know if i did something wrong but here's my diyce.

    Warrior/Warden
    Code:
            --Class: Warrior/Warden            elseif mainClass == "WARRIOR" and subClass == "WARDEN" then
    
    
            Skill = {
                    { name = "Briar Shield",            use = (pctEB2 >= .15) and ((not pbuffs["Briar Shield"]) or (pbuffs["Briar Shield"].time <= 45)) },
                    { name = "Battle Creed",            use = (pctEB2 >= .15) and ((not pbuffs["Battle Creed"]) or (pbuffs["Battle Creed"].time <= 45)) },
                            }
                            
            --Combat
            if enemy then
                Skill = {
                    { name = "Survival Instinct",        use = (phealth <= .49) },
                    { name = "Elven Amulet",             use = (EnergyBar2 >= 150) and (phealth <= .4) },
                    { name = "Defensive Formation",      use = (EnergyBar1 >= 25) and (phealth <= .30) },  
                    { name = "Savage Whirlwind",         use = (EnergyBar2 >= 240) },
                    { name = "Attack Weakener",          use = (EnergyBar2 >= 280) and (tbuffs["Vulnerable"]) },
                    { name = "Action: 8",                use = (EnergyBar1 >= 25) and (tbuffs["Vulnerable"]) },
                    { name = "Open Flank",               use = (EnergyBar1 >= 10) and (tbuffs["Vulnerable"]) },
                    { name = "Probing Attack",           use = (EnergyBar1 >= 15) },
                    { name = "Tactical Attack",          use = (EnergyBar1 >= 15) and (tbuffs[500081]) },
                    { name = "Slash",                    use = (EnergyBar1 >= 25) },
                    { name = "Power of the Wood Spirit", use = (EnergyBar2 >= 114) },
                            }
            end
    Warden/Warrior
    Code:
            --Class: Warden/Warrior            elseif mainClass == "WARDEN" and subClass == "WARRIOR" then
            --Buffs
            Skill = {
                    { name = "Briar Shield",            use = (pctEB2 >= .15) and ((not pbuffs["Briar Shield"]) or (pbuffs["Briar Shield"].time <= 45)) },
                            }
        
            --Combat
            if enemy then
            Skill = {
                    { name = "Elven Amulet",             use = (EnergyBar1 >= 150) and (phealth <= .4) },
                    { name = "Defensive Formation",      use = (EnergyBar2 >= 25) and (phealth <= .30) },
                    { name = "Beast Chop",               use = (EnergyBar2 >= 20) },
                    { name = "Pulse Mastery",            use = (EnergyBar2 >= 20) },
                    { name = "Double Chop",              use = (EnergyBar1 >= 54) },
                    { name = "Will Attack",              use = (EnergyBar1 >= 98) },
                    { name = "Slash",                    use = (EnergyBar2 >= 25) },
                    { name = "Cross Chop",               use = (EnergyBar1 >= 245) },
                    { name = "Power of the Wood Spirit", use = (EnergyBar2 >= 114) },
                            }
                            
                    end
    I don't know if that helps at all but any suggestions will help. I've racked my brain for the past 2 weeks trying to figure this out and i cant seem to see it, knowing my luck its probably something simple and stupid.

    Thanks in advance
    Reni ~ HolySaints~ ouncyallzz -70w/70wd/67s ~ Playing w/wd before the warrior trend started. Bigballzz 61p/50k/40s only because p/s owns all in SW.

  9. #559
    Fire Bellied Toad Peryl's Avatar


    Join Date
    Dec 2010

    Location
    Elsewhere

    Default

    Quote Originally Posted by blitzclub06 View Post
    Peryl,
    I'm having a problem with my w/wd and my wd/w diyce. Here's the problem, I am getting a skill requirement error. At first my diyce is working perfectly, but once my rage is used up, and it tries to use the skill, I get the error and then all's i do is just stand there and white attack until i have enough rage to use the next attack. I thought that it was supposed to search to see if i had the rage to use the skill.
    Seems to me like it is working as intended.

    DIYCE doesn't search through the skill list you provide, it merely uses it as a priority list. The first usable match will be attempted. If you don't have the energy (rage in this case) to use the skill then the skill will fail. DIYCE doesn't check for energy requirements when actually casting the skill which is why you need to put the checks in the use clause of the skill list. If you don't have enough energy to use any skill, then all you end up with is a standard attack.

    As for the message, you likely need to check the energy values you are checking against. Make sure they are correct for all the skills. This can be particularly troublesome for the percentage based checks since even a single point below requirement would make the skill fail but could still potentially give a percentage value that would pass your check.
    Working on FuzzyDIYCE. The next generation of DIYCE is coming...


  10. #560

    Default

    I understand that part of the diyce engine. But what im not understanding is that because i have no rage on my warrior, it doesn't spam my spam-able attack in this case power of the wood spirit. Now the PotWS uses a very low mana based attack so i know that im not low on mana.
    Reni ~ HolySaints~ ouncyallzz -70w/70wd/67s ~ Playing w/wd before the warrior trend started. Bigballzz 61p/50k/40s only because p/s owns all in SW.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •