A fast way to get spellid on beta:
Place mouse over any spell in your actionbar and write this on chat:
Code:/dump GetActionInfo(GetMouseFocus()["action"])
Last edited by sheuron; 04-11-2012 at 11:44 PM.
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
The other way was load idtip through pqr :-) I was going to run the /script equivalent of that till some1 brought up using idtip and I found out /script was locked (there's a thread on this forums on how to unlock it)
But yea, that way works, as does idtip way !
Sent from my Xoom using Tapatalk 2
How do I get something like this working?
Code:local slot = { 10,13,14 } for i=1,#slot do local _,_,ready = GetItemCooldown(slot[i]) if ready == 1 then UseInventoryItem(slot[i]) end end
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
This code will not be able to work as you can't check Slot cooldowns with GetItemCooldown(). Can only use ItemID, ItemName and ItemLink. Check out this link: GetItemCooldown - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
Anyways, even if it did work, it should be "if ready == 0 then" instead of "if ready == 1 then?" GetItemCooldown() reports 0 if item is ready and no cooldown. Check above link.
What you would want to do is probably set the table up with all trinkets with On Use effects with their itemID's.For example:
This way, it will be more versatile, just have to add in all itemID's for all on Use trinkets, which isn't much. And since UseItemByName() lets you use itemID's as well, its a Win Win situationCode:local slot = { --Valor Trinkets 77113, --Kyroptyric Sigil 77114, --Bottled Wishes 77115, --Reflection of the Light 77116, --Rotting Skull 77117 --Fire of the Deep } for i=1,#slot do local itemCD = GetItemCooldown(slot[i]) if itemCD == 0 then UseItemByName(slot[i]) end end
EDIT* Or you could just use Sheuron's suggestion. I forgot all about that little code
Code:local slot = {10, 13, 14} for i=1,#slot do local itemCD = GetInventoryItemCooldown(slot[i]) if itemCD == 0 then UseInventoryItem(slot[i]) end end
Last edited by firepong; 04-12-2012 at 12:23 AM.
If i want to write a code where i use all of my interrupt abilities and then use them when my target cast a spell and its almost done finishing, like 25% left of cast bar. How would i do that ?
For example as a Holy Paladin i can use Hammer of Justice, Rebuke, Arcane torrent (Belf Racial)
Looking for exploiters and botters to Elder Scrolls Online.
Hey i have a question im not shure its asked before. But i use the Holy paladin profile maked by buba is there eny way to make it Cleanse for me or do i need to do it manuelly?
Dotdk
Anyone got the new offsets already? =)
greetz
Weischbier
Thank you for the help, this is what i ended up with.
Convert slotid to itemid, check for cooldown and "on use" abilities for that slot, use by name.
Code:local slot = { 10,13,14 } for i=1,#slot do local item = GetInventoryItemID("player", slot[i]) local cd = GetItemCooldown(item) local use = GetItemSpell(item) if cd == 0 and use ~= nil then UseItemByName(item) end end end
Last edited by deadpanstiffy; 04-12-2012 at 02:43 AM.
You only want to have 1 set of:
local slot = {10, 13, 14}
for i=1,#slot do
And take out one of the ends leaving:
This could even be used in a function for more versatility to go into a Data file. Care if I use it in one of mine?Code:local slot = { 10,13,14 } for i=1,#slot do local item = GetInventoryItemID("Player", slot[i]) local cd = GetItemCooldown(item) local use = GetItemSpell(item) if cd == 0 and use ~= nil then UseItemByName(item) end endWill rep of course
![]()
Yeah I don't know what happened (fixed in original), bad copy/paste.
No problem, and if you wanted to make it into a function to be used in a Data file just set it up as:
EDIT* For the rest of the above code:Code:local slot = { 10,13,14 } function PQR_ItemCD() for i=1,#slot do local item = GetInventoryItemID("Player", slot[i]) local cd = GetItemCooldown(item) local use = GetItemSpell(item) if cd == 0 and use ~= nil then return true end end return false end
Obviously, it's not much more of a help, but it does get the code cleaned up a bit in the rotationsCode:local itemCD = PQR_ItemCD() local slot = {10,13,14} if itemCD == true then for i=1,#slot do local item = GetInventoryItemID("player", slot[i]) UseItemByName(item) end endMakes the code look more complicated than it should
EDIT**
While messing around with my enhance shaman profile, I finally got the weapon enchants to work. Heres what I had to do:
Name: Weapon Echants
SpellID: 0
Delay: 1000 (Gotta have this here for it to work right)
Without that Delay there, it would apply the same chant to both weapons cause it would spam the spell. I can't believe I didn't think of the Delay when I was making my enhance profile :confused:Code:local hwv, hwd = GetWeaponEnchantInfo() if hwv ~= 1 then CastSpellByID(8232) end local _,_,_,nwv,nwd,_ = GetWeaponEnchantInfo() if nwv ~= 1 then CastSpellByID(8024) end
And for some reason, it would not work with them both setup in a different ability for each spellID. Had to have them both in 1 ability. Weird.
Last edited by firepong; 04-12-2012 at 03:38 AM. Reason: Added Edit