| | WoW Memory Editing WoW Memory Editing for learning purposes only.
This section is more advanced than others on MMOwned Read the section specific rules, infractions will be given out if u break them!That is including the expectations! - If you don't meet them then don't post |  | | 
05-30-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Jan 2009
Posts: 9
Reputation: 1 Level up: 28%, 364 Points needed | | | | 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 | Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx. 
05-30-2009
|  | Legendary Legendary User  | | | Join Date: Nov 2006 Location: Germany (DE)
Posts: 2,531
Nominated 17 Times in 4 Posts Reputation: 679 Points: 19,334, Level: 19 | Level up: 3%, 1,466 Points needed |     | | | Maybe you don't have a buff?
A buff is only a "helpful" aura. Use UnitAura() for all effects on the unit. | 
05-30-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Jan 2009
Posts: 9
Reputation: 1 Level up: 28%, 364 Points needed | | | | checked that already, they string works if i use it in wow with /script in front of it | 
05-30-2009
|  | Contributor | | | Join Date: May 2007 Location: Dragon Shores
Posts: 773
Reputation: 180 Level up: 62%, 344 Points needed |     | | | 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?
__________________ “First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack.” -(George Carrette) | 
05-30-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Jan 2009
Posts: 9
Reputation: 1 Level up: 28%, 364 Points needed | | | | ..........
Last edited by totaldisarray; 07-01-2009 at 01:26 PM.
| 
05-31-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Jan 2009
Posts: 9
Reputation: 1 Level up: 28%, 364 Points needed | | | | 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 | 
05-31-2009
|  | Contributor | | | Join Date: Dec 2006 Location: 0x005FCB40
Posts: 415
Reputation: 164 Level up: 35%, 522 Points needed |     | | Quote:
Originally Posted by totaldisarray 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.
__________________ Thank You Scrubs, 2001 - 2009 | 
05-31-2009
| | Corporal | | | Join Date: May 2009 Location: Germany
Posts: 18
Reputation: 7 Level up: 38%, 249 Points needed | | | | - 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 06:41 AM.
| 
05-31-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Jan 2009
Posts: 9
Reputation: 1 Level up: 28%, 364 Points needed | | | Quote:
Originally Posted by jjaa 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  too u | 
06-03-2009
| | Commander | | | Join Date: Mar 2007
Posts: 896
Reputation: 23 Level up: 85%, 139 Points needed |     | | | 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. | 
06-03-2009
|  | Contributor | | | Join Date: Jul 2008 Location: Node #23
Posts: 340
Reputation: 83 Level up: 38%, 561 Points needed |     | | | See the Lua Source for AV Enabler and Battleground addons i found one a long time ago. | 
06-03-2009
| | Commander | | | Join Date: Mar 2007
Posts: 896
Reputation: 23 Level up: 85%, 139 Points needed |     | | | 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? | 
06-03-2009
|  | MaiN's Biatch Legendary User | | | Join Date: Mar 2007 Location: Managed Heap
Posts: 1,247
Nominated 47 Times in 4 Posts  TOTM/W Award(s): 2 Reputation: 767 Points: 48,576, Level: 33 | Level up: 17%, 2,824 Points needed |     | | | Interact()
JoinBattlefield(0) | 
06-03-2009
| | Commander | | | Join Date: Mar 2007
Posts: 896
Reputation: 23 Level up: 85%, 139 Points needed |     | | | 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. | 
06-03-2009
|  | Contributor | | | Join Date: May 2008
Posts: 387
Reputation: 87 Level up: 51%, 348 Points needed |  | | | |  | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 02:35 PM. |