[Release] LuaNinja - Run protected Lua code menu

User Tag List

Page 12 of 70 FirstFirst ... 891011121314151662 ... LastLast
Results 166 to 180 of 1048
  1. #166
    paradoxial's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    New versions released.

    WoW v3.2.2a version updated.
    WoW v3.1.3 version released. <-- NEEDS TESTING
    WoW PTR version released. <-- NEEDS TESTING

    Please check original post for download links.

    Still todo:
    2.4.3 version (requested via PM). May do that tomorrow.
    Patch-independent version. May do that tomorrow.
    PTR version ran fine over here, I'll let you know when the new build is deployed tomorrow since I'll be testing some crazy content with my guild. Nice release again.
    I'm widely known as TheUltimateParadox

    [Release] LuaNinja - Run protected Lua code
  2. #167
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by maniax View Post
    PTR version ran fine over here, I'll let you know when the new build is deployed tomorrow since I'll be testing some crazy content with my guild. Nice release again.
    Uber. Keep posting the EXEs and I'll keep posting new versions.

  3. #168
    Jermzter's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is really great, Cypher you god dude! Now rather than nerdrage spamming like 5 keys for my Ret Pally....all I press is 1 key.

    This is awesome!

  4. #169
    Jermzter's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is really great, Cypher you god dude! Now rather than nerdrage spamming like 5 keys for my Ret Pally....all I press is 1 key.

    This is awesome! :wave:

  5. #170
    Fire_cracker's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    43
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is like, super awesome! :> Thanks a lot <3

  6. #171
    Iaccidentallytwink's Avatar Elite User
    Reputation
    591
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    New versions released.

    WoW v3.2.2a version updated.
    WoW v3.1.3 version released. <-- NEEDS TESTING
    WoW PTR version released. <-- NEEDS TESTING

    Please check original post for download links.

    Still todo:
    2.4.3 version (requested via PM). May do that tomorrow.
    Patch-independent version. May do that tomorrow.
    Cypher is so awesome.

  7. #172
    thordin's Avatar Private
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    New versions released.

    WoW v3.2.2a version updated.
    WoW v3.1.3 version released. <-- NEEDS TESTING
    WoW PTR version released. <-- NEEDS TESTING

    Please check original post for download links.

    Still todo:
    2.4.3 version (requested via PM). May do that tomorrow.
    Patch-independent version. May do that tomorrow.
    On v3.1.3 movement and casting functions work fine.
    AttackTarget(), however is still seen as protected.

  8. #173
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by thordin View Post
    On v3.1.3 movement and casting functions work fine.
    AttackTarget(), however is still seen as protected.
    Can you please give me the error message you're seeing. Or a screenshot if it's easier. Because it doesn't seem to be protected...

    Code:
    Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    CommandLine: C:\Users\Josh\Documents\Reversing\Targets\WoW\Binaries\313\Wow.exe
    Symbol search path is: *** Invalid ***
    ****************************************************************************
    * Symbol loading may be unreliable without a symbol search path.           *
    * Use .symfix to have the debugger choose a symbol path.                   *
    * After setting your symbol path, use .reload to refresh symbol locations. *
    ****************************************************************************
    Executable search path is: 
    ModLoad: 00400000 01758000   Wow.exe 
    ModLoad: 77040000 771c0000   ntdll.dll
    ModLoad: 75ed0000 75fd0000   C:\Windows\syswow64\kernel32.dll
    ModLoad: 76b90000 76bd6000   C:\Windows\syswow64\KERNELBASE.dll
    eax=00000000 ebx=7714206c ecx=00000000 edx=00000000 esi=c0000135 edi=7efdd000
    eip=7705fc62 esp=001ffcb0 ebp=001ffd00 iopl=0         nv up ei pl nz na po nc
    cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll - 
    ntdll!ZwTerminateProcess+0x12:
    7705fc62 83c404          add     esp,4
    0:000> s -a 0x00400000 0x02000000 "AttackTarget"
    009c1764  41 74 74 61 63 6b 54 61-72 67 65 74 00 00 00 00  AttackTarget....
    0:000> s -d 0x00400000 0x02000000 009c1764
    00a3dc20  009c1764 006e5960 009c1758 006f0980  d...`Yn.X.....o.
    0:000> dd 00a3dc20
    00a3dc20  009c1764 006e5960 009c1758 006f0980
    00a3dc30  009c174c 006ecf50 009c1740 006ecf90
    00a3dc40  009c1730 006f26d0 009c1724 006f0a80
    00a3dc50  009c1718 006ed0b0 009c1704 006e5990
    00a3dc60  009c16f4 006e59c0 009c16e8 006e0890
    00a3dc70  009c16d8 006e08c0 009c16c8 006e08f0
    00a3dc80  009c16b4 006e0920 009c16a4 006ed0d0
    00a3dc90  009c1698 006ed1e0 009c1688 006ed340
    0:000> uf 006e5960 
    Wow+0x2e5960:
    006e5960 e86b6f0d00      call    Wow+0x3bc8d0 (007bc8d0) ; WoWGetActivePlayerGuid
    006e5965 68a1000000      push    0A1h
    006e596a 6878439900      push    offset Wow+0x594378 (00994378) ; Build string
    006e596f 6a10            push    10h
    006e5971 52              push    edx
    006e5972 50              push    eax
    006e5973 e898870d00      call    Wow+0x3be110 (007be110) ; WoWGetObjectForGuid
    006e5978 83c414          add     esp,14h
    006e597b 85c0            test    eax,eax
    006e597d 740d            je      Wow+0x2e598c (006e598c)
    
    Wow+0x2e597f:
    006e597f 6a00            push    0
    006e5981 6a00            push    0
    006e5983 6a00            push    0
    006e5985 8bc8            mov     ecx,eax
    006e5987 e814a9ecff      call    Wow+0x1b02a0 (005b02a0) ; WoWUnit::AttackTarget
    
    Wow+0x2e598c:
    006e598c 33c0            xor     eax,eax
    006e598e c3              ret
    Usually the protection check is done at the top of the function, or in rare cases it's inlined. Neither of those things have happened in this particular instance so what you're reporting is quite strange.

  9. #174
    drognir's Avatar Active Member
    Reputation
    28
    Join Date
    Sep 2007
    Posts
    50
    Thanks G/R
    1/0
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I guess since Cypher was so kind to share this LuaNinja, I'll share what I've created with it. It's a very rough healbot AddOn, but it has a simplistic UI that simply displays what it's currently doing. The AddOn cycles through group members and heals as necessary. I've documented some of it, but not much. It's not pretty, but it works. It takes whisper commands of "follow" and "stop", and those can be expanded pretty easily. You will need to replace "Healing Wave" with the name of the heal, and add other conditionals if you want more strict healing guidelines. Simple to do. Oh, hz enable or disable are the commands to start/stop it. Here's the files.

    Healzor.lua
    Code:
    function COnLoad()
         TStop();
        
             hooks = {} --Make a table to store the old functions in.
    
             for i=1, 7 do --For each chat frame.
    
                 f = getglobal("ChatFrame"..i) --Get pointer to the ChatFrame.
    
                 hooks[f] = f.AddMessage --Add this frame's AddMessage function to the hooks table.
    
                 f.AddMessage = AlertScreensFilter --Set frame's AddMessage function to your AddMessage.
    
             end
     
    end --BOnLoad
    
    local frmTick = CreateFrame("FRAME","HZ_Frame", UIParent);
    frmTick:SetWidth(200); 
    frmTick:SetHeight(200);
    frmTick:SetPoint("BOTTOMRIGHT",UIParent, "BOTTOMRIGHT",-50,100);
    frmTick:SetBackdrop({
      bgFile="Interface\DialogFrame\UI-DialogBox-Background", 
      edgeFile="Interface\\Tooltips\\UI-Tooltip-Border", 
      tile=1, tileSize=10, edgeSize=10, 
      insets={left=3, right=3, top=3, bottom=3}
    });
    frmTick:SetBackdropColor(255,255,255,100);
    
    
    ----------chat frame hook for commands
    function AlertScreensFilter(frame, text, red, blue, green, id) --Function that is fired before the default AddMessage.
    
             if string.find(text,"whispers",1) ~= nil then
                start = string.find(text,"yer:") + 4 --Finding the player's name who whispered
                endloc = string.find(text,":",start+3) - 1 --^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                replyName = strsub(text, start,endloc) 
            if string.find(text,"follow") ~= nil then
            FollowUnit(replyName); 
            print("Following " .. replyName);
            elseif string.find(text,"stop") ~= nil then
                MoveForwardStart();
            MoveForwardStop();
            MoveForwardStop();
            print("Stopping...");
                end
                
             end
    
        return hooks[f](frame, text, red, blue, green, id) --Let the old AddMessage function handle the rest.
    
    end
    -----------End hook---------------------------------
    
    
    local fsCasting = frmTick:CreateFontString("$parentText","ARTWORK","GameFontNormal");
    fsCasting:SetParent(frmTick);
    fsCasting:SetPoint("TOPLEFT", frmTick,"TOPLEFT", 10, -5);
    
    local fsHP = frmTick:CreateFontString("$parentText","ARTWORK","GameFontNormal");
    fsHP:SetParent(frmTick);
    fsHP:SetPoint("TOPLEFT", frmTick,"TOPLEFT", 10, -18);
    fsHP:SetText("Mana: " .. UnitMana("player") .. "/" .. UnitManaMax("player"));
    
    local fsTarget = frmTick:CreateFontString("$parentText","ARTWORK","GameFontNormal");
    fsTarget:SetParent(frmTick);
    fsTarget:SetPoint("TOPLEFT", frmTick,"TOPLEFT", 10, -31);
    fsTarget:SetText("Target:");
    local tTarget = UnitName("target");
    if tTarget ~= nil then
    fsTarget:SetText("Target: " .. tTarget);
    end
    
    local fsTargetHP = frmTick:CreateFontString("$parentText","ARTWORK","GameFontNormal");
    fsTargetHP:SetParent(frmTick);
    fsTargetHP:SetPoint("TOPLEFT", frmTick,"TOPLEFT", 10, -44);
    fsTargetHP:SetText("Target HP:");
    if tTarget ~= nil then
    local tTargetHP = UnitHealth("target") .. "/" .. UnitHealthMax("target")
    fsTargetHP:SetText("Target HP: " .. tTargetHP);
    end
    
    local fsTargetState = frmTick:CreateFontString("$parentText","ARTWORK","GameFontNormal");
    fsTargetState:SetParent(frmTick);
    fsTargetState:SetPoint("TOPLEFT", frmTick,"TOPLEFT", 10, -58);
    fsTargetState:SetText("Target State:");
    if tTarget ~= nil then
    local TargetState = GetState()
    fsTargetState:SetText("Target State: " .. TargetState);
    end
    
    local totalElapsed = 0.0;
    local TargetState = 0
    local NumPartyMembers = 0
    local PartyCount = 1
    
    function IsCasting(player)
    local IsCasting = ""
    
    spell, rank, displayName, icon, startTime, endTime, isTradeSkill, castID, interrupt = UnitCastingInfo(player)
    
    if spell ~= nil then
    IsCasting = "TRUE"
    else
    IsCasting = "FALSE"
    end
    return IsCasting
    end
    
    
    function NeedHeal(unit)
    local NeedHeals = 0
          if UnitHealth(unit) / UnitHealthMax(unit) < .55 then
            NeedHeals = 1
          
              else
            NeedHeals = 0
          end
    
          if UnitHealth(unit) == 0 then
                NeedHeals = 2
          end
    
    return NeedHeals
    end
    
    function GetState()
    State = 0
    if UnitName("target") ~= nil then
        if NeedHeal("target") == 1 then
            State = 1        
        elseif NeedHeal("target") == 0 then
            State = 0;
        else
            State = 2
        end
    end        
    
    return State
    end
    
    local function Tick(self, elapsed)
    NumPartyMembers = GetNumPartyMembers()
    totalElapsed = totalElapsed + elapsed;
    if totalElapsed > .5 then
         --Update frame information-------------------------------
             fsCasting:SetText("Casting: " .. IsCasting("player"));
         fsHP:SetText("Mana: " .. UnitMana("player") .. "/" .. UnitManaMax("player"));
        tTarget = UnitName("target");
        if tTarget ~= nil then
            fsTarget:SetText("Target: " .. tTarget);
            local tTargetHP = UnitHealth("target") .. "/" .. UnitHealthMax("target")
            fsTargetHP:SetText("Target HP: " .. tTargetHP);
        end
         --End Update---------------------------------------------
    if IsCasting("player") == "FALSE" then
    if NumPartyMembers > 0 then    
        if PartyCount <= NumPartyMembers then
            if PartyCount == 1 then
                RunMacro("p1");
            elseif PartyCount == 2 then
                RunMacro("p2");
            elseif PartyCount == 3 then
                RunMacro("p3");
            elseif PartyCount == 4 then
                RunMacro("p4");
            end
            PartyCount = PartyCount + 1
        
        elseif PartyCount >= NumPartyMembers then
            PartyCount = 1
            RunMacro("self");
            if UnitAffectingCombat("player") == nil then --not in combat
            
            if UnitMana("player") / UnitManaMax("player") < .40 then
                name, rank, icon, count, debuffType, duration, expirationTime, source, isStealable = UnitBuff("player", "Drink");
                if name == nil then
                    RunMacro("EatDrink");
                else
                
                end
            end
            end    
    
    
        end     
    end
        
    
        --Get Target state. 0-Healthy, 1-Needs Heal, 2-Dead
        TargetState = GetState()
        if TargetState == 1 and IsCasting("player") == "FALSE" then
            fsTargetState:SetText("Target State: Needs Heal");
            CastSpellByName("Healing Wave");
        elseif TargetState == 0 then
            fsTargetState:SetText("Target State: Healthy");
        elseif TargetState == 2 then
            fsTargetState:SetText("Target State: Dead");
        end
        --Target State---------------------------------------------
        
        
        totalElapsed = 0.0
              
    
    end
    end
    
    end
    
    frmTick:SetScript("OnUpdate", Tick);
    
    function TStart()
    totalElapsed = 0.0
    frmTick:Show();
    end
    
    function TStop()
    frmTick:Hide();
    end
    
    
    
    
    SLASH_HEALZOR1, SLASH_HEALZOR2 = '/hz', '/healzor';
    
    function SlashCmdList.HEALZOR(msg, editbox)
             if msg.len(msg) > 0 then
                if msg == "enable" then
                   TStart();
                   print("Healzor is now active.");
                elseif msg == "disable" then
                  TStop();
                  print("Healzor is no longer active.");
                end
             end
    end
    Healzor.toc
    Code:
    ## Interface: 30220
    ## Title: Healzor
    ## Notes: Have fun, be safe!
    ## DefaultState: Enabled
    ## LoadOnDemand: 0
    Healzor.lua
    Healzor.xml
    Healzor.xml
    Code:
    <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
    ..\..\FrameXML\UI.xsd"> 
    
    <Frame name="HealZorFrame">
    <Script file="Healzor.lua" />
    
        <Scripts>
            <OnLoad>
                COnLoad();
                
            </OnLoad>
            <OnEvent>
            COnEvent(event);
            </OnEvent>
        </Scripts>
    </Frame>
    </Ui>
    Now, you'll need 5 macros just because I couldn't get targetting to work, you don't need to bind them, just create them. Create and name them as follows:

    p1
    Code:
    /target party1
    ... do that for p1-4

    self
    Code:
    /target <charname>
    Last edited by drognir; 10-27-2009 at 09:17 AM. Reason: oops

  10. #175
    Norus's Avatar Elite User CoreCoins Purchaser
    Reputation
    347
    Join Date
    Aug 2007
    Posts
    115
    Thanks G/R
    10/4
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by drognir View Post
    ]Now, you'll need 5 macros just because I couldn't get targetting to work, you don't need to bind them, just create them. Create and name them as follows:

    p1
    Code:
    /target party1
    ... do that for p1-4

    self
    Code:
    /target <charname>
    You can use RunMacroText("/target party1") instead of RunMacro()
    RunMacroText("/cast Healing Wave") is also better than CastSpellByName("Healing Wave") (less bugs, UI-like).

  11. #176
    thordin's Avatar Private
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The error i get is:
    "A macro script has been blocked from an action only available to Blizzard UI."
    Could there be differences in the GB version and the german of Wow.exe.

  12. #177
    armen's Avatar Member
    Reputation
    5
    Join Date
    Oct 2009
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does it play nice with WI?

    First off, thank you so much for your continued contributions, Cypher. +Rep

    Quick question for you, or anyone in the audience: Will the injection of this hack interfere with WoWInterface and/or vice-versa?

    I will be posing this question to Mads as well ;]

    :wave:

  13. #178
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by armen View Post
    First off, thank you so much for your continued contributions, Cypher. +Rep

    Quick question for you, or anyone in the audience: Will the injection of this hack interfere with WoWInterface and/or vice-versa?

    I will be posing this question to Mads as well ;]

    :wave:
    Whether it will interfere or not depends entirely on the addons you're running. Whilst it shouldn't interfere in normal circumstances (afaik), the potential is certainly there.

    At any rate, it shouldn't cause any major problems, it might even make your addons run a little bit better due to them not being blocked in combat or w/e.

    P.S. What does Mads have to do with this?

  14. #179
    armen's Avatar Member
    Reputation
    5
    Join Date
    Oct 2009
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whoops, apologies, I meant WoWInfinity!

  15. #180
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by armen View Post
    Whoops, apologies, I meant WoWInfinity!
    This hack has nothing to do with WoWInfinity.

    I am in no way affiliated with WoWInfinity.
    WoWInfinity is in no way affiliated with this hack.

Page 12 of 70 FirstFirst ... 891011121314151662 ... LastLast

Similar Threads

  1. Replies: 8
    Last Post: 07-13-2010, 01:36 AM
  2. [3.3.2] AUTOIT - Run Protected LUA
    By satia in forum WoW Memory Editing
    Replies: 46
    Last Post: 06-19-2010, 08:58 AM
  3. Run Protected Lua in 3.3.3a
    By thefarmer in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 04-30-2010, 08:03 PM
  4. Protected LUA Code and Chat Addons
    By Ultraviolence in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 04-20-2010, 12:01 AM
  5. [Release] LuaHobo - Run protected LUA
    By Seifer in forum World of Warcraft Bots and Programs
    Replies: 50
    Last Post: 01-18-2010, 06:06 PM
All times are GMT -5. The time now is 01:39 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search