Help: Make an NPC channel a spell. menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Nicholax80's Avatar Corporal
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    34
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know, I suck at Lua, rofl. This worked. They're all channeling this spell on me. Now what do we do?


    P.S. Thank you for your patience and help. If I could rep you more, I would.

    Help: Make an NPC channel a spell.
  2. #17
    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)
    Ok, so we know everything works fine. That means we just need to fix the target.

    Try this script:

    Code:
    local target = nil -- Do not touch this
    local npcid_channeler = 91011 -- This is the id of the person who will be channeling
    local npcid_target = 50 -- Change this to the id of the person you want to channel onto
    
    function NPCCHANNEL(pUnit, Event)
        pUnit:RegisterEvent("Check_For_Target_zzz", 2500, 0)
    end
    
    function Check_For_Target_zzz(pUnit)
        if target ~= nil then
        pUnit:ChannelSpell(47855, target)
        pUnit:RemoveEvents()
        end
    end
    
    RegisterUnitEvent(npcid_channeler, 18, "NPCCHANNEL")
    
    function target_on_load(pUnit, Event)
        target = pUnit
    end
    
    RegisterUnitEvent(npcid_target, 18, "target_on_load")
    Change the 50 to the npcid of the person being channeled at. That should work.

  3. #18
    Nicholax80's Avatar Corporal
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    34
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright. Changing and loading. 1 minute.

    ---------- Post added at 03:25 PM ---------- Previous post was at 03:14 PM ----------

    AMG, it works. Thank you so very much lol.

    Final Outcome:


    You know... I could use someone with your skills for my server... Hehe

  4. #19
    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)
    Glad to see it works.

    The reason it was working before is because, I assume, the creature was trying to channel the spell before it had properly spawned. This is why most people tend to register another event on spawn to happen in a second or two, so that it has a chance to load properly.

  5. #20
    Nicholax80's Avatar Corporal
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    34
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh I see. Sounds similar to my NPCs not staying on custom objects, because they load quicker than the object itself.

    I love the new, .npc ongameobject 1

    Lol. Interested in a Dev position? I could really use one.

  6. #21
    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)
    Originally Posted by Nicholax80 View Post
    Oh I see. Sounds similar to my NPCs not staying on custom objects, because they load quicker than the object itself.

    I love the new, .npc ongameobject 1

    Lol. Interested in a Dev position? I could really use one.
    I'm afraid I'm busy on a variety of projects/servers already.

    Take a look at:
    http://www.mmowned.com/forums/world-...nt-thread.html

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Trinity] How do I make a NPC cast some spell on his Summoner
    By chaplisimo in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-29-2014, 05:48 PM
  2. Replies: 9
    Last Post: 09-20-2008, 07:53 PM
  3. [HELP]making skill npc(please help)
    By Kazard123 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-27-2008, 09:32 AM
  4. LUA help, how to make npc cast a spell at a certain HP???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-30-2008, 06:27 PM
  5. [Help] Making a NPC Teach you spells
    By Haza in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-18-2007, 11:45 AM
All times are GMT -5. The time now is 11:13 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