[Help] LUA script check it please menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] LUA script check it please

    It loaded but it doesn't work on the boss i made, it doesn't even do non of these stuff I put on here,

    My script:

    Code:
      function Boss_Spell1(pUnit)
    unit:CastSpell(16785)
    unit:SendChatMessage(12, 0, "Feel the FLAMES!")
    end
    
    function Boss_Spell2(pUnit)
    unit:CastSpell(37675)
    unit:SendChatMessage(12, 0, "Curse you . . .")
    end
    
    function Boss_Spell3(pUnit)
    local plr = unit:GetClosestPlayer()
    if (plr ~= nil) then
    unit:CastSpellOnTarget(41596, plr)
    end
    end
    
    function Boss_Spell4(pUnit)
    local plr = unit:GetClosestPlayer()
    if (plr ~= nil) then
    unit:FullCastSpellOnTarget(37675, plr)
    end
    end
    
    function Boss_OnEnterCombat(pUnit)
    unit:SendChatMessage(12, 0, "Never mess with the legend's general . . .")
    unit:RegisterEvent("Boss_Spell1",6000, 0)
    unit:RegisterEvent("Boss_Spell2",10000, 0)
    unit:RegisterEvent("Boss_Spell3",12000, 0)
    unit:RegisterEvent("Boss_Spell4",10000, 0)
    end
    
    
    function Boss_OnLeaveCombat(pUnit)
    unit:RemoveEvents()
    end
    
    function Boss_KilledTarget(pUnit)
    unit:SendChatMessage(12, 0, "Hahaha, Fools . . .")
    unit:RemoveEvents()
    end
    
    function Boss_OnDied(pUnit)
    unit:SendChatMessage(12, 0, "Uh . . . the Legend . . . you will never . . . defeat . . .")
    unit:RemoveEvents()
    end
    
    
    
    RegisterUnitEvent(1410001, 1, "Boss_OnEnterCombat")
    RegisterUnitEvent(1410001, 2, "Boss_OnLeaveCombat")
    RegisterUnitEvent(1410001, 3, "Boss_OnKilledTarget")
    RegisterUnitEvent(1410001, 4, "Boss_onDied")

    [Help] LUA script check it please
  2. #2
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All i see wrong is what needs to be fixed/added in red...
    Code:
    
    
    Code:
      function Boss_Spell1(pUnit)
    pUnit:CastSpell(16785)
    pUnit:SendChatMessage(12, 0, "Feel the FLAMES!")
    end
    
    function Boss_Spell2(pUnit)
    pUnit:CastSpell(37675)
    pUnit:SendChatMessage(12, 0, "Curse you . . .")
    end
    
    function Boss_Spell3(pUnit)
    local plr = unit:GetClosestPlayer()
    if (plr ~= nil) then
    pUnit:CastSpellOnTarget(41596, plr)
    end
    end
    
    function Boss_Spell4(pUnit)
    local plr = unit:GetClosestPlayer()
    if (plr ~= nil) then
    pUnit:FullCastSpellOnTarget(37675, plr)
    end
    end
    
    function Boss_OnEnterCombat(pUnit)
    pUnit:SendChatMessage(12, 0, "Never mess with the legend's general . . .")
    pUnit:RegisterEvent("Boss_Spell1",6000, 0)
    pUnit:RegisterEvent("Boss_Spell2",10000, 0)
    pUnit:RegisterEvent("Boss_Spell3",12000, 0)
    pUnit:RegisterEvent("Boss_Spell4",10000, 0)
    end
    
    
    function Boss_OnLeaveCombat(pUnit)
    unit:RemoveEvents()
    end
    
    function Boss_KilledTarget(pUnit)
    pUnit:SendChatMessage(12, 0, "Hahaha, Fools . . .")
    pUnit:RemoveEvents()
    end
    
    function Boss_OnDied(pUnit)
    pUnit:SendChatMessage(12, 0, "Uh . . . the Legend . . . you will never . . . defeat . . .")
    pUnit:RemoveEvents()
    end

    What the problem was is this you sued this code for it to Look for an event
    Code:
    
    
    Code:
    function Boss_OnDied(pUnit)
    And it looks for pUnit not Unit it all depends on teh script what one you need so keep an eye out fo ri hope it helped
    Last edited by runiker; 06-09-2008 at 12:28 AM.

  3. #3
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks man I will see if it works now

  4. #4
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why does it crash my server?

    the error is by xfire. HAS nothing to do with it though.

    Following error is here:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    
    <ExceptionReport Version="4">
        <Application Build="31956" Command="&quot;C:Program FilesWorld of WarcraftWoW.exe&quot; "/>
        <OperatingSystem Type="2"><Version Major="6" Minor="0" Build="6000"/></OperatingSystem>
        <Exception Code="C0000005" Address="00822F60"><Module Section="0001" Offset="00421F60" FileName="C:Program FilesWorld of WarcraftWoW.exe"/></Exception>
        <Registers EAX="FFFFFFFF" EBX="0000000B" ECX="00000015" EDX="FFFFFFFF" ESI="00000000" EDI="1B603E08" CS="001B" EIP="00822F60" SS="0023" ESP="0012D488" EBP="0012D48C" DS="0023" ES="0023" FS="003B" GS="0000" Flags="00010286"/>
        <BackTrace>
            <Frame ProgramCounter="00822F60" StackAddress="0012D488" FrameAddress="0012D48C">
                <Module Section="0001" Offset="00421F60" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012D488" To="0012D48C">08 24 ce 0d</StackHexDump>
            </Frame>
            <Frame ProgramCounter="005F16FE" StackAddress="0012D494" FrameAddress="0012D724">
                <Module Section="0001" Offset="001F06FE" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012D48C" To="0012D50C">24 d7 12 00    fe 16 5f 00    08 24 ce 0d    ff ff ff ff    08 24 ce 0d    01 00 00 00    88 f1 12 00    08 24 ce 0d    15 00 00 00    87 16 99 3c    fa 08 d2 41    ee 68 00 00    28 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    10 00 05 00    00 02 00 08    00 00 00 00    00 04 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="005F29FC" StackAddress="0012D72C" FrameAddress="0012E744">
                <Module Section="0001" Offset="001F19FC" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012D724" To="0012D7A4">44 e7 12 00    fc 29 5f 00    08 24 ce 0d    88 f1 12 00    08 3e 60 1b    15 00 00 00    48 d7 12 00    f1 2a 4c 00    68 e7 12 00    e8 2a 5f 00    08 24 ce 0d    fe ff ff ff    94 fd 12 00    08 32 94 18    f8 2a 5f 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="005F3657" StackAddress="0012E74C" FrameAddress="0012E754">
                <Module Section="0001" Offset="001F2657" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012E744" To="0012E754">54 e7 12 00    57 36 5f 00    15 00 00 00    00 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="005F4690" StackAddress="0012E75C" FrameAddress="0012E9C0">
                <Module Section="0001" Offset="001F3690" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012E754" To="0012E7D4">c0 e9 12 00    90 46 5f 00    08 00 00 00    15 00 00 00    9c fd 12 00    01 00 00 00    ee 68 00 00    28 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    10 00 05 00    00 02 00 08    00 00 00 00    00 04 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="004E6FD7" StackAddress="0012E9C8" FrameAddress="0012FD70">
                <Module Section="0001" Offset="000E5FD7" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012E9C0" To="0012EA40">70 fd 12 00    d7 6f 4e 00    08 fc 12 00    88 f1 12 00    ee 68 00 00    15 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="004E7CC3" StackAddress="0012FD78" FrameAddress="0012FDB8">
                <Module Section="0001" Offset="000E6CC3" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FD70" To="0012FDB8">b8 fd 12 00    c3 7c 4e 00    ee 68 00 00    f0 fd 12 00    08 c0 5a 0e    a6 03 00 00    08 c0 5a 0e    01 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    01 00 00 00    00 00 00 00    ee 68 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="00681523" StackAddress="0012FDC0" FrameAddress="0012FDDC">
                <Module Section="0001" Offset="00280523" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FDB8" To="0012FDDC">dc fd 12 00    23 15 68 00    00 00 00 00    32 01 00 00    f9 9a 19 06    f0 fd 12 00    08 e2 59 0e    08 c0 5a 0e    08 e9 91 1b</StackHexDump>
            </Frame>
            <Frame ProgramCounter="00681A95" StackAddress="0012FDE4" FrameAddress="0012FE08">
                <Module Section="0001" Offset="00280A95" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FDDC" To="0012FE08">08 fe 12 00    95 1a 68 00    f9 9a 19 06    32 01 12 00    08 c0 5a 0e    74 ba 88 00    c8 1f e6 1b    00 00 00 00    ff ff ff ff    2e 00 00 00    2f 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="00681FE1" StackAddress="0012FE10" FrameAddress="0012FE30">
                <Module Section="0001" Offset="00280FE1" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FE08" To="0012FE30">30 fe 12 00    e1 1f 68 00    f9 9a 19 06    c8 1f e6 1b    2e 00 00 00    ac bc 39 02    89 e6 bc 00    48 e9 a6 11    0c e2 59 0e    74 fe 12 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="007E8C53" StackAddress="0012FE38" FrameAddress="0012FE74">
                <Module Section="0001" Offset="003E7C53" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FE30" To="0012FE74">74 fe 12 00    53 8c 7e 00    08 bc 39 02    09 1c 40 00    00 00 00 00    00 00 00 00    ab d3 7d 00    00 00 00 00    00 00 00 00    08 bc 39 02    00 00 00 00    48 e9 a6 11    48 58 ec 0d    08 bc 39 02    00 00 00 00    18 bc 39 02    01 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="007DA7BC" StackAddress="0012FE7C" FrameAddress="0012FEEC">
                <Module Section="0001" Offset="003D97BC" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FE74" To="0012FEEC">ec fe 12 00    bc a7 7d 00    08 bc 39 02    06 00 00 00    00 00 00 00    6a bb 7d 00    70 17 00 00    02 00 00 00    01 00 00 00    00 00 00 00    04 9b 19 06    00 00 00 00    00 00 00 00    45 6e 67 69    6e 65 20 31    37 36 34 00    cc fe 12 00    8b 7b 68 77    d0 fe 12 00    70 17 00 00    02 00 00 00    00 00 00 00    70 17 00 00    70 17 00 00    01 00 00 00    20 03 7e 77    8b 81 68 77    58 21 00 00    00 00 00 00    7a ec df 81</StackHexDump>
            </Frame>
            <Frame ProgramCounter="007DBC61" StackAddress="0012FEF4" FrameAddress="0012FF04">
                <Module Section="0001" Offset="003DAC61" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FEEC" To="0012FF04">04 ff 12 00    61 bc 7d 00    01 00 00 00    78 62 40 00    01 00 00 00    01 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="004062B8" StackAddress="0012FF0C" FrameAddress="0012FFA0">
                <Module Section="0001" Offset="000052B8" FileName="C:Program FilesWorld of WarcraftWoW.exe"/>
                <StackHexDump From="0012FF04" To="0012FF84">a0 ff 12 00    b8 62 40 00    a9 9e 40 00    00 00 40 00    00 00 00 00    f5 1e 26 00    01 00 00 00    36 ed df 81    00 00 00 00    00 00 00 00    00 e0 fd 7f    44 00 00 00    80 31 26 00    40 0c 26 00    b0 10 26 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    01 00 00 00    01 00 00 00    00 00 00 00    ff ff ff ff    ff ff ff ff    ff ff ff ff    05 00 00 c0    00 00 00 00    06 00 00 00    00 00 00 00</StackHexDump>
            </Frame>
            <Frame ProgramCounter="77683833" StackAddress="0012FFA8" FrameAddress="0012FFAC">
                <Module Section="0001" Offset="00042833" FileName="C:Windowssystem32kernel32.dll"/>
                <StackHexDump From="0012FFA0" To="0012FFAC">ac ff 12 00    33 38 68 77    00 e0 fd 7f</StackHexDump>
            </Frame>
            <Frame ProgramCounter="777BA9BD" StackAddress="0012FFB4" FrameAddress="0012FFEC">
                <Module Section="0001" Offset="000399BD" FileName="C:Windowssystem32ntdll.dll"/>
                <StackHexDump From="0012FFAC" To="0012FFEC">ec ff 12 00    bd a9 7b 77    00 e0 fd 7f    19 ae 12 00    00 00 00 00    00 00 00 00    00 e0 fd 7f    05 00 00 c0    84 59 6d 77    84 59 6d 77    b8 ff 12 00    a8 d0 12 00    ff ff ff ff    f2 8b 78 77    fd a0 7c 77    00 00 00 00</StackHexDump>
            </Frame>
        </BackTrace>
    </ExceptionReport>
    It works btw, thanks but it dots (choas blast) himself..
    Last edited by Strupantwn; 06-09-2008 at 01:14 AM.

  5. #5
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With the blasting himself you need to put this in where the spell is
    pUnit:CastSpellOnTarget(spellid, pUnit:GetMainTank())
    or
    pUnit:CastSpellOnTarget(spellid, pUnit:GetTauntedBy())

    i forgot the rest i jsut reposted my lua in guides part take a look if you still need help.

  6. #6
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THanks man I will try it when I get the time and I need to fix the unknown crashes,

    btw, want to give me a link to your guide?

Similar Threads

  1. Help lua scripts
    By juaking2 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-23-2008, 07:39 PM
  2. [Help] LUA Script
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 04-27-2008, 05:26 PM
  3. /Help/Lua Script i think
    By luddo9 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-25-2008, 01:50 PM
  4. [Help] Lua Script Not Working
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 26
    Last Post: 03-16-2008, 02:13 PM
  5. [Help] LUA Script + GO info
    By Hellgawd in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-12-2008, 05:06 AM
All times are GMT -5. The time now is 04:04 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