Customize #showtooltip ? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Ssateneth's Avatar Contributor
    Reputation
    142
    Join Date
    May 2008
    Posts
    866
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Customize #showtooltip ?

    First off, I'm using LuaNinja to remove most protection from lua.

    Now.. I want to make a macro to be able to flip through Judgement of Light/Wisdom/Justice each time I click it. I already have an idea for it using CVars but I need to know which judgement is selected. Here's the question. Can I get #showtooltip to show the judgement stored in the cvar?

    Code:
    #showtooltip Judgement of Light
    /run if (GetCVar("bam")=="Judgement of Light") then SetCVar("bam","Judgement of Justice") elseif (GetCVar("bam")=="Judgement of Justice") then SetCVar("bam","Judgement of Wisdom") elseif (GetCVar("bam")=="Judgement of Wisdom") then SetCVar("bam","Judgement of Light") end
    Edit: Just changing the macro icon is fine too; I don't need the actual tooltip. It's just so I know which judgement I have toggled for use in my ret/prot luaninja-enabled macros.
    Edit2: It would seem wowwiki's api list is incomplete. I found the api I needed at SetMacroSpell - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons and changed my macro accordingly. Works perfect.
    Code:
    /run if (GetCVar("bam")=="Judgement of Light") then SetCVar("bam","Judgement of Justice") SetMacroSpell("JudgeCycle","Judgement of Justice") elseif (GetCVar("bam")=="Judgement of Justice") then SetCVar("bam","Judgement of Wisdom") SetMacroSpell("JudgeCycle","Judgement of Wisdom")elseif (GetCVar("bam")=="Judgement of Wisdom") then SetCVar("bam","Judgement of Light") SetMacroSpell("JudgeCycle","Judgement of Light") end
    Last edited by Ssateneth; 12-22-2009 at 02:23 PM. Reason: Found it myself.

    Customize #showtooltip ?

Similar Threads

  1. mmowned special: custom item names
    By Relz in forum World of Warcraft Guides
    Replies: 58
    Last Post: 09-27-2006, 11:51 PM
  2. CUSTOM RACE TO RACE model conversion now avaible, request here!
    By bloodofwar in forum World of Warcraft Model Editing
    Replies: 13
    Last Post: 08-22-2006, 04:20 PM
  3. Custom RACE to RACE conversion now avable! request here!
    By bloodofwar in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-20-2006, 09:17 PM
  4. Custom Computer Build (opinions/comments?)
    By Matt in forum Community Chat
    Replies: 11
    Last Post: 07-23-2006, 12:57 PM
  5. New Custom Model Swapping Fix (1.11 Working)
    By Matt in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 06-23-2006, 06:05 PM
All times are GMT -5. The time now is 07:14 PM. 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