dcplee 1 Posted September 28, 2016 Share Posted September 28, 2016 need to know how to use a trinket on cooldown can't seem to find out how used item id and still nothing Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/ Share on other sites More sharing options...
da8ball 104 Posted September 28, 2016 Share Posted September 28, 2016 On your class fight, add the line "UseInventoryItem( 13 )" if the trinket is the one on top, or 14 if it's the one one the bottom. That also works for any equip, rings, bracers, etc. Don't forget to set a timer and/or conditions if needed. Also, make sure to turn on the option "Not spell, is lua script" for that. http://wow.gamepedia.com/File:InventorySlots.jpg http://wow.gamepedia.com/File:InventorySlots.jpg Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18436 Share on other sites More sharing options...
chapperz 21 Posted September 29, 2016 Share Posted September 29, 2016 I have tried to do this and keeps giving the error saying not in context or something or rather. Log is attached TIA. 30 Sep 2016 06H49.log.html Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18500 Share on other sites More sharing options...
Bugreporter 93 Posted September 29, 2016 Share Posted September 29, 2016 Dis you changed the spell setting "Not Spell, is Lua Script" ? additional you cann disable the 4 check spell setting (range, known, exist, ...) Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18501 Share on other sites More sharing options...
chapperz 21 Posted September 30, 2016 Share Posted September 30, 2016 i believe i have done that Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18505 Share on other sites More sharing options...
da8ball 104 Posted October 1, 2016 Share Posted October 1, 2016 This is weird. I have no idea. Usable trinket is on top, right? Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18535 Share on other sites More sharing options...
Bugreporter 93 Posted October 1, 2016 Share Posted October 1, 2016 I used this snippet in my old fightclasses SinisterStrike (1792) is just to check, if the target is in range. Use a spell of your spellbook which have the same range as the trinket. <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript> if UnitExists("target") then if not UnitIsFriend("player", "target") and not UnitIsDead("target") then if not IsStealthed() then local slot="Trinket0Slot" local SinisterStrike=GetSpellInfo(1752) if (GetComboPoints("player") > 0) and (IsSpellInRange(SinisterStrike,"target")==1) then local slotId, texture, checkRelic = GetInventorySlotInfo(slot) local itemId = GetInventoryItemID("player", slotId) local start, duration, enable = GetItemCooldown(itemId) if (duration==0) then UseInventoryItem( slotId ); result=true end end end end end </LuaScript> <VarRet>result</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> </FightClassConditions> <SpellName>--use 13 (first trinket)</SpellName> <CombatOnly>false</CombatOnly> <CastIfMounted>true</CastIfMounted> <CheckIfKnow>false</CheckIfKnow> <CheckIfSpellUsable>false</CheckIfSpellUsable> <CheckSpellDistance>false</CheckSpellDistance> <AddToSettings>true</AddToSettings> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <CanMoveDuringCast>Yes</CanMoveDuringCast> <DescriptionSpell>/use 13</DescriptionSpell> </FightClassSpell> chapperz 1 Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18539 Share on other sites More sharing options...
chapperz 21 Posted October 3, 2016 Share Posted October 3, 2016 On 10/1/2016 at 11:01 PM, Bugreporter said: I used this snippet in my old fightclasses SinisterStrike (1792) is just to check, if the target is in range. Use a spell of your spellbook which have the same range as the trinket. <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript> if UnitExists("target") then if not UnitIsFriend("player", "target") and not UnitIsDead("target") then if not IsStealthed() then local slot="Trinket0Slot" local SinisterStrike=GetSpellInfo(1752) if (GetComboPoints("player") > 0) and (IsSpellInRange(SinisterStrike,"target")==1) then local slotId, texture, checkRelic = GetInventorySlotInfo(slot) local itemId = GetInventoryItemID("player", slotId) local start, duration, enable = GetItemCooldown(itemId) if (duration==0) then UseInventoryItem( slotId ); result=true end end end end end </LuaScript> <VarRet>result</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> </FightClassConditions> <SpellName>--use 13 (first trinket)</SpellName> <CombatOnly>false</CombatOnly> <CastIfMounted>true</CastIfMounted> <CheckIfKnow>false</CheckIfKnow> <CheckIfSpellUsable>false</CheckIfSpellUsable> <CheckSpellDistance>false</CheckSpellDistance> <AddToSettings>true</AddToSettings> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <CanMoveDuringCast>Yes</CanMoveDuringCast> <DescriptionSpell>/use 13</DescriptionSpell> </FightClassSpell> Hi and ty for your replies it was what you said i had the wrong option setup :) all good now. Link to comment https://wrobot.eu/forums/topic/3960-how-to-use-trinket/#findComment-18590 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