[QUESTION] player.spell(ID).charges = X menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Kilorar's Avatar Member
    Reputation
    1
    Join Date
    Jul 2015
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [QUESTION] player.spell(ID).charges = X

    So the question is this function
    Code:
    player.spell(ID).charges = X
    only available for advanced LUA unlock and if it is may be there is some workaround for generic lua unlock? I need this particularly to check enhancement shaman main spell charges with talent Echo of Elements. Thanks in advance!
    EDIT: I try to use exactly this one
    Code:
    { "17364", "player.spell(17364).charges = 2", "target.range <= 6"  }, 	-- stormstrike
    And my rotation just skipps this spell
    EDIT2: SOLVED IT and if someone cares this code works
    Code:
    { "17364", { "player.spell(17364).charges >= 2", "target.range <= 6" }}, 	-- stormstrike
    Last edited by Kilorar; 07-29-2015 at 09:42 AM.

    [QUESTION] player.spell(ID).charges = X
  2. #2
    Mirakuru's Avatar Corporal
    Reputation
    26
    Join Date
    Nov 2014
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You were basically trying to use multiple conditions without nesting them:
    Code:
    {"spell", "condition 1", "condition 2"}
    instead of

    Code:
    {"spell", {"condition 1", "condition 2", "condition 3", ...}}
    Congrats on figuring it out on your own though! I'd recommend reading the Documentation post created by Imogen, as well as looking through the files of some of the other CR devs as well if you want to learn.

  3. #3
    StinkyTwitch's Avatar Active Member
    Reputation
    40
    Join Date
    Nov 2014
    Posts
    172
    Thanks G/R
    19/13
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This may help as well for examples of nesting.

    https://gitlab.com/snippets/6589
    "Shootings easy, Aimings hard!" Stinky

  4. #4
    akeon1's Avatar Contributor
    Reputation
    103
    Join Date
    Sep 2011
    Posts
    265
    Thanks G/R
    3/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kilorar View Post
    So the question is this function
    Code:
    player.spell(ID).charges = X
    only available for advanced LUA unlock and if it is may be there is some workaround for generic lua unlock? I need this particularly to check enhancement shaman main spell charges with talent Echo of Elements. Thanks in advance!
    EDIT: I try to use exactly this one
    Code:
    { "17364", "player.spell(17364).charges = 2", "target.range <= 6"  },     -- stormstrike
    And my rotation just skipps this spell
    EDIT2: SOLVED IT and if someone cares this code works
    Code:
    { "17364", { "player.spell(17364).charges >= 2", "target.range <= 6" }},     -- stormstrike
    Do feel free to look at my enhancement rotation for practical examples and inspiration. The more people contributing the better:
    https://gitlab.com/akeon/Probably_Te...nix/wikis/home

Similar Threads

  1. player.spell(SPELL).charges
    By Spem in forum PE Support forum
    Replies: 0
    Last Post: 01-17-2015, 06:59 PM
  2. [Question]Editing spells
    By Hock in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 10-17-2007, 11:41 AM
  3. [Question]DK spell pack for Pally?
    By Hock in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 10-15-2007, 04:26 AM
  4. [Question] Quick spell model question
    By Naralesca in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 10-02-2007, 11:21 AM
  5. Question about Spell edit
    By Sasukedk in forum World of Warcraft General
    Replies: 0
    Last Post: 02-13-2007, 12:26 PM
All times are GMT -5. The time now is 10:53 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