Add a control statement on a summoned add's health menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Gix85's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Add a control statement on a summoned add's health

    I'd like to add a control statement on a summoned add of my boss, but i don't know how.

    for example, if i put something like

    if Unit:GetHealthPct() == 0

    Can i put in Unit a reference to the mob i summoned? I mean, Unit:SpawnCreature does put a reference to the spawned creature somewhere?

    Add a control statement on a summoned add's health
  2. #2
    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 can say:

    local creature = pUnit:SpawnCreature(id,x,y,z,o,faction,time)

    Then creature would be the creature just spawned.

    Tabalise or globalise the variable to make it available throughout the script.

Similar Threads

  1. [C++ Script] Making a boss to summon adds, how does it work in Trinity Core?
    By Badcobra10 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-03-2011, 02:39 PM
  2. Replies: 4
    Last Post: 11-28-2010, 09:42 AM
  3. Who needs Auctioneer Add-on, they're all right here!
    By Krazzee in forum World of Warcraft Guides
    Replies: 1
    Last Post: 09-27-2006, 04:13 PM
  4. Add-ons from curse-gaming.
    By volcom in forum World of Warcraft General
    Replies: 5
    Last Post: 05-16-2006, 11:50 AM
  5. Spell damage add reduction?
    By hannible in forum World of Warcraft General
    Replies: 5
    Last Post: 03-21-2006, 11:49 PM
All times are GMT -5. The time now is 01:32 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