Any way to suicide NPC? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Darkraid's Avatar Private
    Reputation
    4
    Join Date
    Jun 2011
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Any way to suicide NPC?

    Hello guys! I'm working on my first attempt on LUA Scripting. I made a custom boss, having 3 phases but phase 3 doesn't work properly. It kills every player that's near him, spawns a guard near him and stays in combat even the players wiped but it doesn't kill himself. I tried with:

    Code:
    pUnit:SetHealthPct(0)
    but doesn't work. I tried attacking himself with a spell but yet he regenerates too fast even if he's on combat. Is there any way left to kill himself after all players are dead?

    P.S.: Don't say he's a NPC EMO. From battle's view, he loses control of his body and practically die but AFTER he kills everyone (spawning a guard to protect his loot).
    P.S.S.: I'm using ArcEmu.
    Last edited by Darkraid; 06-17-2011 at 04:02 AM. Reason: forgot an info
    --- If you see any thing that goes wrong on my scripts, feel free to criticize so I can learn. ---

    Any way to suicide NPC?
  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)
    Try: pUnit:CastSpell(7)

    Or:

    pUnit:SetHealth(1)
    pUnit:CastSpell(11)

  3. #3
    Darkraid's Avatar Private
    Reputation
    4
    Join Date
    Jun 2011
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First one doesn't work but second it does. Really thank you. This thing pisses me off for about 2 days.

    EDIT: I'm sorry that it took me so long to post but my WoW had an error and had to reinstall.
    Last edited by Darkraid; 06-18-2011 at 05:07 AM.
    --- If you see any thing that goes wrong on my scripts, feel free to criticize so I can learn. ---

Similar Threads

  1. Is there a way to equip npc's with any weapon in wowmodelviewer?
    By Jameswow123 in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 08-06-2010, 04:30 AM
  2. Any way to get out of a 72 hour ban before it expires?
    By tuck28 in forum World of Warcraft General
    Replies: 10
    Last Post: 03-06-2007, 03:13 AM
  3. Any Way into Black Morass?
    By Avianar47 in forum World of Warcraft General
    Replies: 38
    Last Post: 12-27-2006, 11:27 PM
  4. is there any way i can make my own models?
    By Avianar47 in forum World of Warcraft Model Editing
    Replies: 6
    Last Post: 08-30-2006, 07:22 PM
  5. SpeederXP- detectable in any way?
    By gotosleep in forum World of Warcraft General
    Replies: 6
    Last Post: 07-25-2006, 11:56 AM
All times are GMT -5. The time now is 09:36 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