Problem with LUA scripted Mobs menu

User Tag List

Results 1 to 5 of 5
  1. #1
    foamysquirl's Avatar Member
    Reputation
    5
    Join Date
    Aug 2006
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with LUA scripted Mobs

    I don't know if this has already been addressed, but if it has-- I missed it. There seems to be a problem with some of my LUA scripted mobs.. more specifically debuff spells that they cast. When my Mob casts a debuff, he tends to cast it on himself. This still happens regardless of what targeting function I am using.

    For example:

    function Mob_CleaveArmor(Unit, Event)
    Unit:CastSpellOnTarget(34643, Unit:GetClosestPlayer())
    end


    This is the function that I am registering in one of my phases. Yet, when I enter the game to test my Mob, he merely casts this debuff on himself. I am not sure if this is an issue with the spell itself, or simply the function. I am led to believe, however, that it is a problem with the scripting. This is because when I taught the spell to my ingame character and cast it on a target, it worked flawlessly. It might also be worth mentioning that I am testing these Mobs on a single character, not a group. This error also occurs with some attacking moves, such as "Ice Claw".


    TL;DR:

    Mob casts damaging spells and debuffs on himself instead of designated target.. I'm wondering why-- and if there is a fix.
    You mean you'll answer ALL of my butterfly questions????

    Problem with LUA scripted Mobs
  2. #2
    foamysquirl's Avatar Member
    Reputation
    5
    Join Date
    Aug 2006
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Come on, other people have to have had this problem before --- Bump.
    You mean you'll answer ALL of my butterfly questions????

  3. #3
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey.

    Code:
    function Mob_CleaveArmor(Unit, Event)
    Unit:CastSpellOnTarget(34643, Unit:GetClosestPlayer())
    end
    Code:
    Unit:CastSpellOnTarget ...
    The :CastSpellOnTarget command is bugged.

    Use :FullCastSpellOnTarget, this works for sure.

  4. #4
    foamysquirl's Avatar Member
    Reputation
    5
    Join Date
    Aug 2006
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xendro View Post
    Hey.

    Code:
    function Mob_CleaveArmor(Unit, Event)
    Unit:CastSpellOnTarget(34643, Unit:GetClosestPlayer())
    end
    Code:
    Unit:CastSpellOnTarget ...
    The :CastSpellOnTarget command is bugged.

    Use :FullCastSpellOnTarget, this works for sure.

    Thank you! But doesnt this mean my mobs cannot use instant cast spells? This would definitely be a problem.
    You mean you'll answer ALL of my butterfly questions????

  5. #5
    Emuchild's Avatar Member
    Reputation
    56
    Join Date
    Oct 2007
    Posts
    311
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No I think they still can use insta-casts.
    Tired of proxies not working or timing out?
    TEST THEM BEFORE YOU USE THEM!
    https://www.mmowned.com/forums/general-programs/246775-testmyproxies.html :wave:

Similar Threads

  1. Problem with Lua scripts!
    By wour55 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 09-12-2010, 04:10 PM
  2. Problem with lua script :/ please help!
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-24-2009, 05:10 PM
  3. [Help Plzzzz] LUA Problem with KJ Script
    By Arthas117 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-16-2008, 05:25 PM
  4. Problem with lua boss script
    By nickeg in forum WoW EMU Questions & Requests
    Replies: 13
    Last Post: 08-16-2008, 09:22 AM
  5. [Request] Ascent Revision with LUA scripts enabled
    By Greatdrak in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-30-2007, 06:04 PM
All times are GMT -5. The time now is 08:27 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