Custom Boss Kill Announcer menu

User Tag List

Results 1 to 6 of 6
  1. #1
    singoe's Avatar Active Member
    Reputation
    23
    Join Date
    May 2008
    Posts
    150
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Boss Kill Announcer

    I want to make a lua script that basicly announces to on the server, when a player kills a custom boss. It would look like "-[Player]- has Just Killed -{Custom Boss}-". How do I make this script? or can someone make it for me?

    Custom Boss Kill Announcer
  2. #2
    I Hypnotoad I's Avatar Contributor
    Reputation
    147
    Join Date
    Aug 2007
    Posts
    873
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using LuaHypArc?

    PS: I don't know lua for shizznit. But I found the commands here.

    Hope it helps. I tried to figure out a script for you, but lua is NOT my profession.
    Last edited by I Hypnotoad I; 06-05-2010 at 12:18 AM.


    Dragon[Sky] can get into our signatures, AND our pants.



  3. #3
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function X_OnDeath(pUnit, Event)
        local plr = pUnit:GetClosestPlayer()
        if plr ~= nil then
        local name = plr:GetName()
        local world = GetPlayersInWorld() -- I don't know if this needs pUnit in front of it.
           for a, plrs in pairs(world) do
           plrs:SendBroadcastMessage("This awesome boss of epix was just killed by  "..name.."!")
           plrs:SendAreaTriggerMessage("This awesome boss of epix was just killed by  "..name.."!")
           end
        end
    end
    
    RegisterUnitEvent(npcid, 4, "X_OnDeath")
    Enjoy. Also here is a list of commands added with LuaHypArc (it comes with default ArcEmu):
    http://arcemu.info/trac/arcscripts/b...E_COMMANDS.txt

  4. #4
    rawr66's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice, thanks stoneharry.

  5. #5
    singoe's Avatar Active Member
    Reputation
    23
    Join Date
    May 2008
    Posts
    150
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks stoneharry, but this is what I ended up writing
    Code:
    function Altor_OnDied(Unit, Event)
    	Unit:SendChatMessage(14, 0, "I have failed. May the creator smite your wretched souls.")
    	Unit:RemoveEvents()
    		for k,v in pairs(GetPlayersInWorld()) do
    	    v:SendBroadcastMessage("" ..Player:GetName().."[" ..Player:Getlevel().. "] has slain " ..Unit:GetName().."!")
    	end
    end

  6. #6
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    You didn't define the player, but good cut-down on the variable use.

Similar Threads

  1. [Selling] SoO HC & Normal boosts glory & garrosh kills & loot runs & custom bosses and more...
    By sherifshix in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 05-02-2014, 08:26 PM
  2. [Guide]Make Customized Boss Includeing the Loot
    By luddo9 in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 05-12-2008, 09:08 AM
  3. Custom bosses leaving combat?
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-01-2008, 08:42 PM
  4. [Release] Holiday Releases # 1.5 - Custom Boss Template For Lua
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-14-2008, 07:14 AM
  5. [Release] Starting Quest + Boss-Kill Quest
    By Hellgawd in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-21-2008, 01:25 PM
All times are GMT -5. The time now is 06:42 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