DoString Trouble menu

User Tag List

Page 1 of 7 12345 ... LastLast
Results 1 to 15 of 96
  1. #1
    totaldisarray's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DoString Trouble

    Hi

    In my current project i have got DoString to work using blackmagic, i am also using GetLocalizedText to get the return values of DoString


    i can get the return values of the following:

    DoString("Zone = GetZoneText();");
    GetLocalizedText("Zone");

    DoString("startTime, duration, enable = GetItemCooldown(\"Hearthstone\")");
    GetLocalizedText("startTime");
    GetLocalizedText("duration");


    but when i try to use

    DoString("name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitBuff(\"player\", 1)");
    GetLocalizedText("name");


    it returns nill, i think it has something to do with the UnitBuff requiring 2 prams. anyone have any ideas?

    thx


    TotalDisarary

    DoString Trouble
  2. #2
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you don't have a buff?

    A buff is only a "helpful" aura. Use UnitAura() for all effects on the unit.

  3. #3
    totaldisarray's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    checked that already, they string works if i use it in wow with /script in front of it

  4. #4
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Copypasted the GetLocalizedText code a few threads down to test it for you. I am getting valid results though. I tested it on a nightelf (shadowmeld) using the lua command you posted. The only visible difference is that I use a semicolon after the closing brackets but that shouldn't affect this really.

    Could you post your code for GetLocalizedText?
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  5. #5
    totaldisarray's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ..........
    Last edited by totaldisarray; 07-01-2009 at 12:26 PM.

  6. #6
    totaldisarray's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have also noticed that my DoString us unable to cast spells using the following

    DoString("CastSpellByName(\"Purge\");");


    but can use DoString.("Logout();");

    any1 have any ideas

  7. #7
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by totaldisarray View Post
    I have also noticed that my DoString us unable to cast spells using the following

    DoString("CastSpellByName(\"Purge\");");


    but can use DoString.("Logout();");

    any1 have any ideas
    My guess would be that you're running outside of WoW's main thread. Therefore you cannot call the protected Lua. To get around this you must patch the function that checks whether you're able to execute the protected Lua. Just look at the difference between a protected Lua function and a normal Lua function, it should be fairly obvious.

  8. #8
    Gorzul's Avatar Member
    Reputation
    8
    Join Date
    May 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    - Please post the code of your UpdateCurMgr()
    - Remove the line "m_OM.WoW.Asm.AddLine("mov ecx, {0}", pScript + strScript.Length - 1);" in DoString and try it again
    Last edited by Gorzul; 05-31-2009 at 05:41 AM.

  9. #9
    totaldisarray's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jjaa View Post
    My guess would be that you're running outside of WoW's main thread. Therefore you cannot call the protected Lua. To get around this you must patch the function that checks whether you're able to execute the protected Lua. Just look at the difference between a protected Lua function and a normal Lua function, it should be fairly obvious.
    Thx jjaa this has fixed it +Rep too u

  10. #10
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for the thread hi-jack, but it is kind of related. Is there a way to join the BG queue using DoString? I looked at all the API and tested all of them, but it doesn't seem that any of them would make you join the queue.

  11. #11
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See the Lua Source for AV Enabler and Battleground addons i found one a long time ago.

  12. #12
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't really see how this helps =/ All that preform AV does is hook the OnShow() and OnHide(). I need to actually show and select battlefield. Or can you queue without showing it?

  13. #13
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Interact()
    JoinBattlefield(0)

  14. #14
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There must be a way to do it with the new join anywhere system. I guess I could just resort to...pixel scanning...PostMessage.../wrist.

  15. #15
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe this, as taken from the Blizzard Interface inside the MPQ files, will help: BattlefieldFarme.lua Lua pastebin - collaborative debugging tool

Page 1 of 7 12345 ... LastLast

Similar Threads

  1. Glider Trouble
    By Kirin in forum World of Warcraft General
    Replies: 3
    Last Post: 01-05-2007, 07:06 AM
  2. Glider trouble
    By Kirin in forum World of Warcraft Bots and Programs
    Replies: 0
    Last Post: 01-04-2007, 06:00 PM
  3. trouble finding .blp
    By yellowsn in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 11-23-2006, 12:06 AM
  4. Blizz is in some trouble. youll love this :)
    By WoWLegend in forum World of Warcraft General
    Replies: 23
    Last Post: 09-26-2006, 08:01 AM
  5. Idea to get people you dont like in trouble!!!
    By paypal in forum WoW Scam Prevention
    Replies: 10
    Last Post: 08-30-2006, 09:43 PM
All times are GMT -5. The time now is 10:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search