[LUA Issue] Sudden self-targetting menu

User Tag List

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

    [LUA Issue] Sudden self-targetting

    Yesterday I noticed an issue with my mobs after I started to script my trash mobs for a new instance.

    I'm not sure what caused this, but my mobs decided to ignore the CastOnTarget function and only cast on themselves. The AoEs will still do damage, but any single target spell hits the mob instead of the intended player.

    I didn't make any kind of changes from my normal scripts, I went back and checked an instance I had already made and had working scripts for, and now these mobs were doing the same thing.

    Example:

    function Corruptor_Corruption (Unit, Event)
    local plr = Unit:GetRandomPlayer(0)
    if (plr ~= nil) then
    Unit:CastSpellOnTarget(27243, plr)
    end
    end


    It's supposed to cast a corruption spell on any random player, but now instead it will cast the spell on itself.

    There's no loading issue with the script when I start the emulator, and no kind of error message on the console when they cast these spells.

    I tried updating my LUA++ to the newer revision, but it doesn't compile correctly, some kind of Uint issue when I compile all the script_bin files.

    I'm still using the original Ascent, not sure if LUA++ has some kind of issue now with it in their newer revisions.

    Any help would be greatly appreciated.

    [LUA Issue] Sudden self-targetting

Similar Threads

  1. Lua Issues
    By zatlantis in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-12-2009, 05:17 AM
  2. Lua issues
    By Evilbuffy in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 04-27-2009, 02:42 PM
  3. Lua issue ( hide seek script)
    By zozoka in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 09-30-2008, 04:24 PM
  4. LUA issue..
    By kreegoth in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 09-22-2008, 11:56 PM
  5. LUA Issues
    By orion5814 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-20-2008, 04:03 PM
All times are GMT -5. The time now is 12:38 PM. 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