Whats wrong with this LUA Script? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats wrong with this LUA Script?

    Ive got a custom boss and this LUA script

    function corcombat(unit, event, miscunit, misc)
    print "Corrupter enterd combat"
    Unit:RegisterEvent("cor_HealthCheckA",1000,0)
    end

    function cor_HealthCheckA(unit, event, miscunit, misc)
    if Unit:GetHealthPct() < 20 and Didthat == 0 then
    Unit:FullCastSpell(14204)
    Didthat = 1
    else
    end
    end

    RegisterUnitEvent(150001,1,"corcombat")
    But whenever somone attacks him my Ascent gives me the following error
    Calling 'RegisterEvent' on bad self (Unit expected, got table)
    Any ideas?

    Thanks in advance,
    Controlsx2

    Whats wrong with this LUA Script?
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unit != Unit

Similar Threads

  1. Whats wrong with this LUA Script?
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-16-2009, 01:01 AM
  2. Whats wrong with my LUA script?
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 03-03-2009, 11:09 AM
  3. whats wrong with this LUA?
    By Envoke in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 02-22-2009, 10:06 AM
  4. [helpzerz] What is wrong with this lua script?
    By w21froster in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 05-21-2008, 09:45 PM
All times are GMT -5. The time now is 09:01 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