[Question] Got Nil Lua Spam menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Got Nil Lua Spam

    Just a question, is this normal?



    That only spams when there is no player with mana in the group, but it works fine when there is. So, should that spam like that or did I miss something in the script?

    The script looks like this

    Code:
    function MalGanis_Sleep(Unit, Event)
    local chance = math.random(1,2)
    if(chance == 1) then
    	Unit:PlaySoundToSet(14414)
    	Unit:SendChatMessage(14, 0, "Time out.")
    	Unit:FullCastSpellOnTarget(58849, Unit:GetRandomPlayer(4))
    		if Unit:GetRandomPlayer(4) == nil then
    		return
    		end
    	end
    if(chance == 2) then
    	Unit:PlaySoundToSet(14415)
    	Unit:SendChatMessage(14, 0, "You seem tired.")
    	Unit:FullCastSpellOnTarget(58849, Unit:GetRandomPlayer(4))
    		if Unit:GetRandomPlayer(4) == nil then
    		return
    		end
    	end
    end
    Any feedback would be appreciated.
    Last edited by Zudrik; 03-05-2009 at 11:15 PM.

    [Question] Got Nil Lua Spam
  2. #2
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your ends where wrong (Although I don't think that's the error its throwing you)

    function MalGanis_Sleep(Unit, Event)
    local chance = math.random(1,2)
    if(chance == 1) then
    Unit:PlaySoundToSet(14414)
    Unit:SendChatMessage(14, 0, "Time out.")
    Unit:FullCastSpellOnTarget(58849, Unit:GetRandomPlayer(4))
    if Unit:GetRandomPlayer(4) == nil then
    return
    end
    end
    end

    if(chance == 2) then
    Unit:PlaySoundToSet(14415)
    Unit:SendChatMessage(14, 0, "You seem tired.")
    Unit:FullCastSpellOnTarget(58849, Unit:GetRandomPlayer(4))
    if Unit:GetRandomPlayer(4) == nil then
    return
    end
    end


    EDIT NVM


  3. #3
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol Vindicated xD

    You should know that if the ends are wrong the script wouldn't even load =P

    But yeah, it's not really like an error though, or maybe it is, all I know, is just it's annoying spam, lol.

Similar Threads

  1. Multiple Questions (Hosting, then Lua)
    By jay77 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-13-2009, 07:18 AM
  2. [Question] Quest Trigger > Lua Event
    By Zudrik in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 02-06-2009, 10:59 AM
  3. [Question] Add an Lua Script to your Server from a different Computer?
    By kevinno in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-25-2008, 05:25 PM
All times are GMT -5. The time now is 07:47 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