PQR cast spell based on player buff menu

User Tag List

Results 1 to 9 of 9
  1. #1
    AnimatedHF1's Avatar Member
    Reputation
    1
    Join Date
    Nov 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PQR cast spell based on player buff

    So i'm trying to make a balance pvp rotation, and i'm having a problem making PQR cast Starfire only if i have the Wrath of Elune buff, so i had a mini eclipse setup and for some reason it's not casting Starfire even if i have the buff, what am i doing wrong?

    Eclipse:
    Code:
    if not eclipse then eclipse = "solar" end
    
    if UnitBuffID("player", 46833) ~= nil
    then eclipse = "solar"
    elseif UnitBuffID("player", 46833)
    then eclipse = "lunar" end

    Starfire cast:
    Code:
    if eclipse == "lunar"
    
    and IsSpellInRange("Wrath", "target")  == 1
    then return true end
    Thank you

    PQR cast spell based on player buff
  2. #2
    Poper21's Avatar Member
    Reputation
    3
    Join Date
    Feb 2014
    Posts
    38
    Thanks G/R
    3/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, its for cataclysm right?
    Last edited by Poper21; 01-03-2018 at 06:07 AM.

  3. #3
    AnimatedHF1's Avatar Member
    Reputation
    1
    Join Date
    Nov 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, it's for 3.3.5

  4. #4
    Poper21's Avatar Member
    Reputation
    3
    Join Date
    Feb 2014
    Posts
    38
    Thanks G/R
    3/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So correct me if I am wrong, when there, but When you have no eclipse, you want the bot to go solar, and when you have solar eclipse and buff Wrath of Elune, you want it to cast starfire right?

  5. #5
    AnimatedHF1's Avatar Member
    Reputation
    1
    Join Date
    Nov 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Poper21 View Post
    So correct me if I am wrong, when there, but When you have no eclipse, you want the bot to go solar, and when you have solar eclipse and buff Wrath of Elune, you want it to cast starfire right?
    I actually want it to only cast Starfire only if i have Wrath of Elune buff, else just spam wrath.

  6. #6
    AnimatedHF1's Avatar Member
    Reputation
    1
    Join Date
    Nov 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit: I got it to work, removed the whole eclipse logic and added this

    if UnitBuffID("player", 46833)
    and IsSpellInRange("Starfire", "target") == 1
    then return true end

  7. #7
    Poper21's Avatar Member
    Reputation
    3
    Join Date
    Feb 2014
    Posts
    38
    Thanks G/R
    3/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no matter in what eclipse you are at?

    edit: i see, i dont realy play wotlk, but in cata if you lunar u go starfire, and if u solar u wrath, i have it done if u want it

    therefore, i was making a boomkin pvp rotation a while ago, but for cata where u dont cast as much, and i wanted AOE moonfire and insect swarm spread, was little bit tricky to make it work for arena123
    Last edited by Poper21; 01-03-2018 at 06:42 AM.

  8. #8
    AnimatedHF1's Avatar Member
    Reputation
    1
    Join Date
    Nov 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah it's way too situational, i'm not trying to make a full routine, just one that spams the basic stuff

  9. #9
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Poper21 View Post
    no matter in what eclipse you are at?

    edit: i see, i dont realy play wotlk, but in cata if you lunar u go starfire, and if u solar u wrath, i have it done if u want it

    therefore, i was making a boomkin pvp rotation a while ago, but for cata where u dont cast as much, and i wanted AOE moonfire and insect swarm spread, was little bit tricky to make it work for arena123
    New eclipse system was introduced in cata buddy

Similar Threads

  1. [PQR] Rotation switch based on HP
    By callmerobbo in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 10-11-2013, 04:14 AM
  2. PQR: cast spell when target is near. [question]
    By Fantersam123 in forum WoW Bot Maps And Profiles
    Replies: 10
    Last Post: 06-12-2013, 11:05 AM
  3. [Lua] Mobs always cast spells on themselves. Not the target
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 08-17-2009, 09:12 AM
  4. LUA Player Cast Spell
    By Bapesy in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 06-01-2008, 01:32 AM
  5. Player Cast Spell?
    By Ballwinkle in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 02-06-2008, 06:06 PM
All times are GMT -5. The time now is 02:05 PM. 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