Dunduro 4 Posted April 12, 2013 Share Posted April 12, 2013 how do i use my pvp trinket in my fighting class? id like to use it to get out of fears so i dont pull more shit. and i'd like to use life spirits in combat to heal me additionaly for more survivability with shitty gear. any idea? Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/ Share on other sites More sharing options...
Loki 47 Posted April 12, 2013 Share Posted April 12, 2013 If you have racial spell its easy setup but trinkets would need lua script i believe since its not a spell. Ohren or droidz will help you with that. Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-2179 Share on other sites More sharing options...
Ohren 106 Posted April 12, 2013 Share Posted April 12, 2013 The LUA to use trinkets is UseInventoryItem( 13 ); UseInventoryItem( 14 ); 13 being top when looking at your character sheet. Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-2180 Share on other sites More sharing options...
Ohren 106 Posted April 12, 2013 Share Posted April 12, 2013 Below is a BASIC example of using trinkets. You simply enter the LUA you want to execute INSTEAD OF the spell, head to the top right box, scroll down to the WAYYYY bottom, and you'll find "Not spell, is lua script", that needs to be TRUE. Then just add your conditions like any other spell. lua_example.xml Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-2181 Share on other sites More sharing options...
Droidz 2738 Posted April 15, 2013 Share Posted April 15, 2013 Hi, You can also use this lua code: RunMacroText("/use item:52306") (replace 52306 by your item id, this code is compatible with all wow client langage and you don't need to know bag slot), in condition add http://www.wowwiki.com/API_GetItemCount count = GetItemCount(52306) if count > 0 then ret = "true" else ret = "false" end zjxlsmr, Nicki Anonymous and Bear T.O.E. 3 Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-2277 Share on other sites More sharing options...
da8ball 104 Posted April 24, 2013 Share Posted April 24, 2013 Worked here, just gotta figure out the order! Thanks all ! Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-2564 Share on other sites More sharing options...
Minerals 7 Posted July 25, 2013 Share Posted July 25, 2013 This works great for all sorts of things! Thanks! One thing I'm using it for is to a fire "Master Healing Potion" when needed: Add Spell Name: RunMacroText("/use item:76097") Add Condition: Health Percent (set to your preference -- I've got mine at 20%) Add LUA Script: LUA Script: count = GetItemCount(76097) ; if count > 0 then vRet = 1 else vRet = 0 end Return Value Research: 1 Return Value var: vRet Droidz and zjxlsmr 2 Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-3656 Share on other sites More sharing options...
zjxlsmr 49 Posted August 15, 2013 Share Posted August 15, 2013 This works great for all sorts of things! Thanks! One thing I'm using it for is to a fire "Master Healing Potion" when needed: Add Spell Name: RunMacroText("/use item:76097") Add Condition: Health Percent (set to your preference -- I've got mine at 20%) Add LUA Script: LUA Script: count = GetItemCount(76097) ; if count > 0 then vRet = 1 else vRet = 0 end Return Value Research: 1 Return Value var: vRet i have a macro that is from dk to self heal:#showtooltip Lichborne /cast !Lichborne; /cast [target=player] Death Coil how do i make this to work when i am low on health? Cos it has 2 lines of macro..add them all into one spell name or make 2 spell name with same condition? Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-3793 Share on other sites More sharing options...
Droidz 2738 Posted August 15, 2013 Share Posted August 15, 2013 i have a macro that is from dk to self heal:#showtooltip Lichborne /cast !Lichborne; /cast [target=player] Death Coil how do i make this to work when i am low on health? Cos it has 2 lines of macro..add them all into one spell name or make 2 spell name with same condition? Can try it: RunMacroText("/cast !Lichborne; \n /cast [target=player] Death Coil") or it: RunMacroText("/cast !Lichborne;") RunMacroText("/cast [target=player] Death Coil") Not tested (if fightclass is only for you, you can look this function: http://www.wowwiki.com/API_RunMacro for launch directly your wow macro) zjxlsmr 1 Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-3797 Share on other sites More sharing options...
Bear T.O.E. 63 Posted November 10, 2013 Share Posted November 10, 2013 there is alot of great macros here. but were do I find a place to break it down simple like for me to learn this stiff and not have to ask. Plus what is the maximum charactor limit to the LUA script drop window, and the add a spell box. Im going to try and build a macro / LuA script to make the DK drop Death and Decay with one click. This is my goal for learning LUA and the Macro Scripting. Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-4795 Share on other sites More sharing options...
Bear T.O.E. 63 Posted November 11, 2013 Share Posted November 11, 2013 The LUA to use trinkets is UseInventoryItem( 13 ); UseInventoryItem( 14 ); 13 being top when looking at your character sheet. Would it be like this? RunMacroText("/UseInventoryItem( 13 )") Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-4797 Share on other sites More sharing options...
Droidz 2738 Posted November 11, 2013 Share Posted November 11, 2013 Would it be like this? RunMacroText("/UseInventoryItem( 13 )") No, use directly (without RunMacroText): UseInventoryItem( 13 ); Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-4803 Share on other sites More sharing options...
Bear T.O.E. 63 Posted November 15, 2013 Share Posted November 15, 2013 OK I have figured something out that will be a great way to do this Using the In Game General Macro Tab. This were I posted my results. Link to comment https://wrobot.eu/forums/topic/318-fighting-classhow-do-i-use-trinkets-and-life-spirits/#findComment-4833 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now