[Guide] How To: Fix A Lua Script menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Arthas117's Avatar Knight-Champion
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] How To: Fix A Lua Script

    I made this cuz I was over-bored...

    Step 1: Lines?

    This step is the easiest.
    1. Open up the script in notepad
    2. Press ctrl+g at the same time
    3. Write in the line ascent says the error is at
    4. Try to notice what's wrong.

    Step 2: What is wrong in scripts?

    *If a 'end' is added after "RegisterUnitEvent", remove it
    *There has to be 2 'end's after a "if pUnit:GetHealthPct() < 20 then" like example:
    Code:
    if pUnit:GetHealthPct() < 20 then
      pUnit:RegisterEvent("Boss_Spell1", 5000, 0)
    end
    end
    Code:
    
    

    *Spelled wrong? Like example:
    Code:
    if PUNIT:GetHEAlTHPcT() < 20 then

    or
    Code:
    iff pUnit:GetHealthPcct() < 200 thenn
    

    *Sleepy? Always remember to NOT script when you're tired! If you're tired while scripting, there's a 70% higher chance the script will not work.
    *Wrong function?
    Like example:
    Code:
    function Thrall_Phase5
       if pUnit:GetHealthPct() < 20 then
    end
    end

    Should look like:
    Code:
    function Thrall_Phase5(pUnit, event)
      if pUnit:GetHealthPct() < 20 then
    end
    end

    *No registering? Every script has got to be registered, that's the most important thing in scripting. If you forget, like example: pUnit:RegisterUnitEvent, then the script will just load but the boss won't do anything, or if you're using a good core, it will show up as a error in your ascent-world.exe or arcemu-world.exe.


    No, I am not up for fixing scripts, as I no longer do emu bussiness. This was my last release on MMOwned until WoTLK release. Now I'll just do some PvP or try to find a popular server using my KJ Script, you can always find me on msn: [email protected], or on WoWWTF, on one of these chars:
    *Emopalaa
    *Emowarr
    *Emoshammy
    *Erandil
    *Wazzer
    *Qvasmir
    *Minotaurix
    *Snyggingen
    *Fjortisen
    *Allyemopalaa
    *Emopriest

    World best PvP Paladin=Me? GG ;D


    [Guide] How To: Fix A Lua Script
  2. #2
    Legitimate's Avatar Member
    Reputation
    2
    Join Date
    Sep 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is for real lua, not the emulation lua engine :P

Similar Threads

  1. [MINI GUIDE] How to fix trainers
    By erebos in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 08-13-2008, 11:52 AM
  2. Fix my LUA script.
    By [Stefon] in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 06-30-2008, 04:09 PM
  3. [Guide] How to: Fix the white hair of a Tauren
    By Mudkip in forum WoW ME Tools & Guides
    Replies: 43
    Last Post: 06-01-2008, 09:17 AM
  4. How to fix this LUA Script???
    By marcosgue in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-08-2008, 07:51 AM
  5. [Guide] How to fix a Model
    By Sahdrani in forum WoW ME Tools & Guides
    Replies: 6
    Last Post: 10-07-2007, 11:23 PM
All times are GMT -5. The time now is 05:58 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