iakovos1990 0 Posted February 27, 2023 Share Posted February 27, 2023 hi i try this (Selfless Healer) but no work!!!! CAN HELP ME PLEASE??? LuaScript: returnResult = false; local name = GetSpellInfo(114250); local _, _, _, count = UnitBuff("player", name); if count and count >= 4 then returnResult = true; end Research: true Var: returnResult Link to comment https://wrobot.eu/forums/topic/15069-stack-count/ Share on other sites More sharing options...
Droidz 2739 Posted February 28, 2023 Share Posted February 28, 2023 Hello, your code should good, I don't understand why you it doesn't work. try to debug it with print like that : returnResult = false; local name = GetSpellInfo(114250); local _, _, _, count = UnitBuff("player", name); if count and count >= 4 then returnResult = true; end print(tostring(returnResult) .. " - " .. tostring(count) .. " - " .. tostring(name)) Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67772 Share on other sites More sharing options...
iakovos1990 0 Posted February 28, 2023 Author Share Posted February 28, 2023 ok thankss i try!!! Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67773 Share on other sites More sharing options...
iakovos1990 0 Posted March 1, 2023 Author Share Posted March 1, 2023 is no work i try this returnResult = false; local name = GetSpellInfo(114250); local _, _, _, count = UnitBuff("player", name); if count and count >= 4 then returnResult = true; end print(tostring(returnResult) .. " - " .. tostring(count) .. " - " .. tostring(name)) Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67776 Share on other sites More sharing options...
Droidz 2739 Posted March 1, 2023 Share Posted March 1, 2023 In wow chat you haven't texts? Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67777 Share on other sites More sharing options...
iakovos1990 0 Posted March 1, 2023 Author Share Posted March 1, 2023 what text?? Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67778 Share on other sites More sharing options...
iakovos1990 0 Posted March 1, 2023 Author Share Posted March 1, 2023 help me please because i am new in lua script Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67779 Share on other sites More sharing options...
iakovos1990 0 Posted March 1, 2023 Author Share Posted March 1, 2023 bro is work now with this wManager.Wow.ObjectManager.ObjectManager.Me.BuffStack( 114250 ) >= Link to comment https://wrobot.eu/forums/topic/15069-stack-count/#findComment-67780 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