Healing Mobs/Npcs & Players! menu

User Tag List

Results 1 to 1 of 1
  1. #1
    grothar1993's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Healing Mobs/Npcs & Players!

    How can I make a mob cast a healing spell on a nearby friendly target? Is there a Lua Script for this?, cause I've tried many things nothing seems to work, plz Help! ^^

    This is what I've been able to work so far, need help on what needs fixes.
    Code:
    function Shaman_OnCombat(Unit, Event)
    Unit:RegisterEvent("ChainHeal", 3500, 0)
    end
    
    function ChainHeal(pUnit, Event)
    if pUnit:GetHealthPct() >= 40 then
    pUnit:FullCastSpell(55459, pUnit:TargetNearestFriend())
    end
    end
    
    function Shaman_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents() 
    end
    
    function Shaman_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(12, 0, "May the spirits guide you to a better place.")
    end
    
    function Shaman_OnDied(Unit, Event)
    Unit:RemoveEvents() 
    end
    
    RegisterUnitEvent(70002, 1, "Shaman_OnCombat")
    RegisterUnitEvent(70002, 2, "Shaman_OnLeaveCombat")
    RegisterUnitEvent(70002, 3, "Shaman_OnKilledTarget")
    RegisterUnitEvent(70002, 4, "Shaman_OnDied")
    Have tried with "pUnit:GetRandomFriend()" also, but nothing seems to work... Owh and also I just wanna say it works but he can only target himself.... Oo So I need fix to that.

    Help plz, Best regards Grothar93

    Healing Mobs/Npcs & Players!

Similar Threads

  1. NPCs Attacking Players In Mall
    By wside420 in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 06-19-2008, 09:42 PM
  2. First steps of a ingame world editor - moving npcs and players
    By schlumpf in forum World of Warcraft Model Editing
    Replies: 26
    Last Post: 04-18-2008, 04:33 AM
  3. Change npc and player direction
    By Axe Rogue in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 04-04-2008, 02:24 PM
  4. [Request] Mob/NPC (not vendor) creator & Pre-BC Raid sripts
    By jimmy2222 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-18-2008, 10:08 AM
  5. [Question] Model Editing a specific mob/npc
    By Quafe in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 01-16-2008, 09:48 AM
All times are GMT -5. The time now is 04:45 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