Lua programming
62 topics in this forum
-
Hello, If you have an snippet of lua code for Fight Classes you can share it on this thread. Please share only code that works, not ask here.
- 17 replies
- 25.5k views
-
Hello, To create fightclass with support of all wow client language please do use directly the spell name or item name in your script. For get spell name use this: local name = GetSpellInfo(109259); GetSpellInfo (109259 is the id of http://www.wowhead.com/spell=109259 ) For get item name use this: local name = GetItemInfo(6256); GetItemInfo (6256 is the id of http://www.wowhead.com/item=6256/fishing-pole ) The spell/item name in the client language is in variable name, use it like: RunMacroText("/cast " .. name) (if you use direct the spell name of your client language this doesn't works on others languages).
- 1 reply
- 7.4k views
-
Hello, You can share here useful lua scripts
- 3 replies
- 15k views
-
Wow API: http://wowpedia.org/API (seem best, updated for WoD) http://wowprogramming.com/docs/api_categories http://www.wowwiki.com/World_of_Warcraft_API
-
- 0 replies
- 5.2k views
-
-
Hello, I need to sell more quickly my items from my bag at the hv the idea seemed simple to me basically if I want create a plugin to automatically sell all the green objects at 10 gold at the hv I tested this code but This doesn't work: using System.Threading.Tasks; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using wManager.Wow.Enums; using wManager.Events; public class AutoSellGreenItems : wManager.Plugin.Plugin { public override void Initialize() { LuaEvents.OnEventsLuaStringWithArgs += OnAuctionHouseShow; } public void OnAuctionHouseShow(string eventName, List<string> args) { if (eventName == "AUCTION_HO…
- 1 reply
- 3.5k views
- 1 follower
-
Like Broadcast messages,System message
-
- 1 reply
- 1.4k views
-
-
How can use lua script to scan all the dialogue.Someone can teach me
-
- 2 replies
- 1.8k views
-
-
I recently started to make rotations again, and needless to say I'm very rusty. I still remember some good tricks, but I fail at basic stuff. Basically I am using the "rotation we all know", It's divided in different pages on the left (Abilities), and I remember I managed to add a line to stop the rotation (like when im drinking, or having a particular debuff and so on). Example: Ability 1: if UnitBuff("player","Drink") then --code to stop rotation and go back to top of the page, kinda like a while 1=1 end Ability 2 print("Hello World") The idea was not reading the second page/ability because the rotation …
-
- 1 reply
- 2k views
-
-
Hello, i cant seem to get this to work. i believe i am getting boolen back but idk if i am wrapping it properly. Lua.LuaDoString($"SetLFGRoles(false, {RDFSettings.CurrentSetting.Tank}, {RDFSettings.CurrentSetting.Heal}, {RDFSettings.CurrentSetting.DPS});");
-
- 1 reply
- 1.8k views
-
-
I was thinking, instead of writing something like if UnitBuff("player","Seal of Light") or UnitBuff("player","Seal of Wisdom") and so on.. Is it possible to do something like if UnitBuff("player","Seal of"*) ? I did some google search and the "." is used to match any character (like when comparing some strings), but I don't see it working with string concatenation For example, in my case I should write something like if UnitBuff("player","Seal of"...) because ".." separates text from variables, and "." should be the "any character", but clearly this isn't the right way to do what I want to do. Any idea? Thanks!
- 2 replies
- 1.9k views
- 1 follower
-
is it possible to check the mount summon spell? I want to add the purchase of the traveler’s tundra mammoth to my quest profile, but after using the item https://www.wowhead.com/item=44234/reins-of-the-travelers-tundra-mammoth how can I check the presence of the mount in the book. But the way SpellManager.KnowSpell () returns false. I will be glad of any help
- 8 replies
- 4k views
- 1 follower
-
Hello, it's been a while since I don't post here. But I'm kinda back, so I'm working again on some profiles. One is at a good point, but the rotation program (you know the name I dont need to write it so it appears on google and stuff), is too fast, even if I put max delay, I want to set my "reaction" in a more human way and less suspicious. So let's assume someone in Arena/BG gets a Polymorph, I can dispel it, but that can be istant if I'm not on GCD, or max 1sec delay. Either way it raises some suspects if someone keeps watching me. So I was thinking about dispel only after X seconds of the debuff and there is LUA: local _,_,_,_,_,_,expiration = …
- 18 replies
- 5.3k views
- 1 follower
-
-
I found scripts for automation that set functions for determining the position of objects based on ObjectPosition. However, this does not function in tbc. Is it possible to determine the position of an object in space in tbc? Example function InLOS(obj1, obj2) local x1, y1, z1 = ObjectPosition(obj1) local x2, y2, z2 = ObjectPosition(obj2) if not TraceLine(x1, y1, z1+2.25, x2, y2, z2+2.25, bit.bor(0x10, 0x100)) then return true end return false end
-
- 3 replies
- 3k views
- 1 follower
-
-
Is it possible to set a caster check in these functions? UnitDebuff("target","spellname",nil,"player") dont work in TBC.
- 9 replies
- 4.6k views
- 2 followers
-
Hi! I know that there is a GetText() API but I don’t know how to find the name of the text element I need, framestack shows only the names of the buttons, not the text itself. Is there a way to “extract” text from text elements of the wow interface, like a StaticPopup frame or error frame ? Thanks in advance to everyone who answers
- 2 replies
- 3.1k views
- 1 follower
-
What is the simplest way to save combatLog to a TXT file? (v3.3.5).
-
- 1 reply
- 2.7k views
-
-
Is it possible to obtain the time left for a debuff applied to a mob using Lua code (or other means) in vanilla 1.12.1? I've found some conflicting information for UnitDebuff() Vanilla WoW Wiki states that expirationTime is a valid return. Fandom (as of Dec 2016) does not. I am aware that the C# WRobot function BuffTimeLeft() is explicitly not supported in the 1.12.1 version. However; since the client displays debuff countdown timers on the debuff icons, that info is definitely encapsulated in the client. Does any one have a method to extract it?
-
- 2 replies
- 3.7k views
- 2 followers
-
-
Hey Can someone share the console command to bind talents in classic? Tried to use /run t,p,a.. script but it does nothing
-
- 0 replies
- 2k views
- 1 follower
-
-
hi, how to run multi-line MacroText once time like: /tar XXX /cast Swiftmend /targetlasttarget
-
- 1 reply
- 2.3k views
-
-
Hey guys, Trying to write a plugin for TSM (3.3.5), and i need to interact with the UI somehow so i tought do it over LUA with the /click function like, /click TSMStartCancelScanButton but the debug tools not showing me the right button when i hover it. And "/click table: 2C460368" dosent work either. /run print(GetMouseFocus():GetName()) -- prints "nil" in chat if hover over the button Anyone can help me and can explain what happens their ? it looks like to me its from a parent and inheritance from it, not sure tho. I hover over "Start Cancel Scan" at that screen, greets, Dreamful
- 4 replies
- 2.4k views
-
Hey, I made a plugin to stop the bot at a certain point and make him move again at a later point however my problem is that the method I use is Products.ProductStop(); obviously this also disables the plugin which is needed to re-activate him with Products.ProductStart(); is there any other good method to temp stop him completely?
-
- 2 replies
- 2.4k views
-
-
Hello, I want to implement in my addon an announce that writes in party when I get interrupted in the Holy school, so I created a frame, registered event "COMBAT_LOG_EVENT_UNFILTERED" and checked for the "SPELL_INTERRUPT" firing. Works good, nothing to complain. Problem is Penance, not only is a channeled spell, but also it belongs to "Discipline" school, which doesn't exists in the wow school database (only Holy/Nature/Shadow, etc) but I think this is not a real problem. The main problem is with Penance (didn't test with other channeled spell but I believe it's the same), in the /eventtrace, I don't see the "SPELL_INTERRUPT" firing, when kicked. I see only some…
-
- 2 replies
- 2.9k views
- 1 follower
-
-
Hi, I'm trying to write a simple lua for warrior arms 3.3.5a fightclass that uses intercept when charge is on cooldown. The code is: 1. For berserker stance - intercepting = "no" if GetSpellCooldown("Charge") ~= 0 then intercepting = "yes" end end Return value research: yes Return value var: intercepting Rage greater than 20 and Distance bigger than 8. 2. For Intercept: Buff Berserker Stance, same code as above and disance greater than 8. It doesn't work at all, any suggestions? ? Regards N
-
- 4 replies
- 3.1k views
-
-