on use trinkets  and potions menu

User Tag List

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

    on use trinkets and potions

    How do you add them in?

    on use trinkets  and potions
  2. #2
    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)
    trinkets:
    Code:
    { "#trinket1", { "condition" }, "target", },
    { "#trinket2", { "condition" }, "target", },
    healthstone:
    Code:
    { "#5512", { "player.health < 35", }, },
    To use a potion you can use the healthstone example just change the ID to that of the potion you want to use.

  3. #3
    ImogenOC's Avatar Contributor ProbablyEngine Community Manager
    Reputation
    173
    Join Date
    Nov 2013
    Posts
    364
    Thanks G/R
    0/8
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /use 13 and /use 14 also function.
    ProbablyEngine - Developer and Lead Support
    A Powerful Rotation Bot: ProbablyEngine

  4. #4
    lg40's Avatar Member
    Reputation
    1
    Join Date
    Nov 2014
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there any better way to do this instead of listing every heroism spell?

    { "#57723", "unit.debuff(80353)" }, -- Int Pot on time warp
    { "#57723", "unit.debuff(2825)" }, -- Int Pot on bloodlust

  5. #5
    boxo's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hashero is a function. i haven't tested it yet though.

  6. #6
    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)
    Because of the way nesting works you may have issues with "player.hashero" not working. In the end I ended up making my own Library function call for it. Once my main PC is back up I'll update this post with the function.

  7. #7
    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 StinkyTwitch View Post
    Because of the way nesting works you may have issues with "player.hashero" not working. In the end I ended up making my own Library function call for it. Once my main PC is back up I'll update this post with the function.
    hey stinky, did you still want to share this, as id certainly make use of it

  8. #8
    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)
    Code:
    --[[------------------------------------------------------------------------------------------------
    CHECK HAS BURST HASTE BUFF
    --------------------------------------------------------------------------------------------------]]
    function LibStinky.CheckHasBurstHaste()
    	local burst_haste_buffs = {
    		32182,	-- Heroism
    		90355,	-- Ancient Hysteria
    		80353,	-- Time Warp
    		2825,	-- Bloodlust
    		146555	-- Drums
    	}
    
    	for i = 1, #burst_haste_buffs do
    		if UnitBuff('player', GetSpellName(burst_haste_buffs[i])) then
    			print("Burst Haste Active!")
    			return true
    		else
                            return false
                    end
             end
    end

Similar Threads

  1. Replies: 6
    Last Post: 02-27-2008, 10:09 PM
  2. [Guide] Using SVN and compiling.
    By miceiken in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-28-2008, 09:48 PM
  3. A question for those using Ascent and Chrispee packs.
    By Cross_1985 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 10-03-2007, 02:08 PM
  4. Replies: 3
    Last Post: 03-24-2007, 05:04 AM
  5. Suspended using FishBot...and how I recovered
    By sol82 in forum World of Warcraft Bots and Programs
    Replies: 15
    Last Post: 03-08-2007, 08:40 PM
All times are GMT -5. The time now is 07:16 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