Getting Highest Available SpellID menu

User Tag List

Results 1 to 12 of 12
  1. #1
    oldmanofmen's Avatar Member
    Reputation
    12
    Join Date
    Jan 2010
    Posts
    104
    Thanks G/R
    4/3
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting Highest Available SpellID

    I've been trying to get the highest available spellID using:

    docs/api/FindSpellBookSlotByID - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
    and
    GetKnownSlotFromHighestRankSlot - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

    my code is:

    int slot = SpellSlotByID(spellID);
    int maxSpellSlot = MaxRankSlotByID(slot);
    DoString("CastSpell(" + maxSpell +", \"spell\");");

    This has never returned the correct highest available spell from the lowest rank's spellID. Does anyone know how i might be able to change the code to display the max spell rank's slot id?

    Getting Highest Available SpellID
  2. #2
    streppel's Avatar Active Member
    Reputation
    78
    Join Date
    Mar 2007
    Posts
    196
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'd suggest using CastSpellByName,this way it will simply cast the highest spell

  3. #3
    oldmanofmen's Avatar Member
    Reputation
    12
    Join Date
    Jan 2010
    Posts
    104
    Thanks G/R
    4/3
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by streppel View Post
    i'd suggest using CastSpellByName,this way it will simply cast the highest spell
    But, the spell name you specify will only be compatible for one client e.g the wow english client. If you ran that lua command on a french client it'd do nothing.

  4. #4
    streppel's Avatar Active Member
    Reputation
    78
    Join Date
    Mar 2007
    Posts
    196
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hm true...always used the english client,so this wasn't a problem for me

  5. #5
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1441
    Join Date
    Apr 2006
    Posts
    3,999
    Thanks G/R
    295/585
    Trade Feedback
    1 (100%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    If there is some sort of check to see if you have a spell, you can just check them all one by one (starting from highest to lowest).

  6. #6
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or you can make a "database" of spellnames in every localization, check which language the client is running, and cast accordingly.

  7. #7
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    KnownSpell = 0x00BE5D88, // 3.3.5a 12340

    Is a array of known spell id, it show highest rank only.

  8. #8
    xcyanx's Avatar Corporal
    Reputation
    11
    Join Date
    Apr 2010
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Inside the DoString func, shouldn't the "maxSpell" be "maxSpellSlot"?

  9. #9
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Seifer View Post
    Or you can make a "database" of spellnames in every localization, check which language the client is running, and cast accordingly.
    If only there existed such a database...

    Oh wait.
    Spell.dbc - WoW.Dev Wiki
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  10. #10
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    If only there existed such a database...

    Oh wait.
    Spell.dbc - WoW.Dev Wiki
    It's what I was refering to.

  11. #11
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Seifer View Post
    It's what I was refering to.
    Except your way would be the stupidest way to do it. The best way to do it is to parse the English Spell.dbc and then just use CastSpellById. Works on every client.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  12. #12
    zys924's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2009
    Posts
    113
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Spell Global ID is universal across all clients of different languages. Gain these IDs in one client then record them as a list in your BOTs. Use GetSpellInfo(spellid) to get the spell name and rank then call RunMacroText("/cast " .. name(rank)) to cast them.
    "Macro Text" is a very flexible way out.

Similar Threads

  1. Selling a guide to get RP ~Vouch Copies available~
    By grieviious in forum League of Legends Buy Sell Trade
    Replies: 0
    Last Post: 06-21-2014, 04:40 PM
  2. [Selling] Hearthstone US/NA Beta Key!!! $25 or to the highest payer!!! Get yours now!
    By iHoes in forum Hearthstone Buy Sell Trade
    Replies: 0
    Last Post: 11-26-2013, 05:19 PM
  3. [Selling] Alani Kill! Cross-Realm Kill Available! Get Your Mount Now! 50$ USD (U.S. Servers)
    By Benfsx in forum World of Warcraft Buy Sell Trade
    Replies: 3
    Last Post: 03-19-2013, 07:49 AM
  4. Replies: 36
    Last Post: 08-28-2012, 05:34 AM
  5. 2.0.3 only available if you get TBC?
    By xlAnonym0uslx in forum World of Warcraft General
    Replies: 13
    Last Post: 01-13-2007, 05:37 AM
All times are GMT -5. The time now is 08:04 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search