Any idea why this piece of code doesnt work menu

User Tag List

Results 1 to 2 of 2
  1. #1
    jadethread1's Avatar Member
    Reputation
    -14
    Join Date
    Dec 2011
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Any idea why this piece of code doesnt work

    Code:
    local a = GetSpellCooldown("Chimera Shot");
    local b = UnitDebuff("target","Serpent Sting");
    
    
    if PQR_IsMoving()
    and UnitBuff("player","Aspect of the Fox") 
    and a == 1
    and b == true
    then CastSpellByName("Steady Shot") 
    
    elseif not
    PQR_IsMoving() 
    and UnitBuff("player","Aspect of the Hawk") 
    and UnitPower("player", 2) > 50
    and a == 1
    and b == true
    then CastSpellByName("Aimed Shot") 
    
    elseif not
    PQR_IsMoving()
    and UnitCastingInfo("player") == "Steady Shot"
    and UnitPower("player", 2) > 50
    then SpellStopCasting() end
    it worked until I implemented the locals

    if chimera shot is on cooldown and serpent sting is on target continue code. Thats what i want it to do thanks.

    Any idea why this piece of code doesnt work
  2. #2
    averykey's Avatar Contributor
    Reputation
    158
    Join Date
    Dec 2011
    Posts
    448
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jadethread1 View Post
    Code:
    local a = GetSpellCooldown("Chimera Shot");
    local b = UnitDebuff("target","Serpent Sting");
    
    
    if PQR_IsMoving()
    and UnitBuff("player","Aspect of the Fox") 
    and a == 1
    and b == true
    then CastSpellByName("Steady Shot") 
    
    elseif not
    PQR_IsMoving() 
    and UnitBuff("player","Aspect of the Hawk") 
    and UnitPower("player", 2) > 50
    and a == 1
    and b == true
    then CastSpellByName("Aimed Shot") 
    
    elseif not
    PQR_IsMoving()
    and UnitCastingInfo("player") == "Steady Shot"
    and UnitPower("player", 2) > 50
    then SpellStopCasting() end
    it worked until I implemented the locals

    if chimera shot is on cooldown and serpent sting is on target continue code. Thats what i want it to do thanks.

    PHP Code:
    if not PQR_IsMoving() and UnitCastingInfo("player") == "Steady Shot" and UnitPower("player"2) > 50 then SpellStopCasting() end

    if UnitBuff("player"GetSpellInfo(aspectofthefoxid)) and PQR_SpellAvailable(chimerashotid) and UnitDebuff("target" GetSpellInfo(sperentstingid)) then
        
    if PQR_IsMoving() then
            CastSpellByName
    (GetSpellInfo(steadyshotid), "target"
        elseif 
    not PQR_IsMoving() and UnitPower("player"2) > 50 then
            CastSpellByName
    (GetSpellInfo(aimedshotid), "target"
        
    end
    end 
    need to fill out the ids, also for

    PHP Code:
    UnitCastingInfo("player") == "Steady Shot" 
    this might work

    PHP Code:
    UnitCastingInfo("player") == GetSpellInfo(steadyshotid

    not sure though, couldn't hurt to try though.

    Changed it all to use ids so more than one nationality can use it, russian clients don't like english.

    isn't aspect of the fox a stance? if it is then you need to use GetShapeshiftForm() and CastShapeshiftForm(2)

    example for seal of truth
    if GetShapeshiftForm() ~= 1 then
    CastShapeshiftForm(1)
    end
    Last edited by averykey; 03-20-2013 at 01:07 AM.
    My Svn - https://subversion.assembla.com/svn/averykeys-svn/

Similar Threads

  1. [Buying] Any idea when this aimbot will be available or where to get it?
    By saltywaffle in forum Overwatch Buy Sell Trade
    Replies: 3
    Last Post: 08-18-2016, 02:54 PM
  2. any idea about this?
    By merfed in forum Programming
    Replies: 1
    Last Post: 07-22-2011, 04:06 AM
  3. Question about this piece of code " IsControlKeyDown()"
    By Eliteplague in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 04-12-2011, 09:53 PM
  4. any reason why this is crashin wow?
    By Nokia5800 in forum WoW Memory Editing
    Replies: 19
    Last Post: 07-13-2009, 12:30 PM
  5. idea use zboard azerty mod that doesnt work
    By elazard in forum WoW Scam Prevention
    Replies: 5
    Last Post: 12-31-2008, 02:30 PM
All times are GMT -5. The time now is 04:11 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search