lua guide on spawning mobs after death menu

User Tag List

Results 1 to 3 of 3
  1. #1
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lua guide on spawning mobs after death

    Ok so I will show you how to make
    A creature spawn two creatures in
    diff spots according to The npc
    that died’s location.

    First lets register this event
    We will need this code


    RegisterUnitEvent (989898, 4, "RottingCadaver_OnDied")

    Change the989898to what the main npcs spawn id is
    Change the RottingCadaver to the name of the mob.

    Now place it at the bottom and lets leave it alone
    For now. Next up is amking the function itself
    With this code it will work

    function RottingCadaver_OnDied (pUnit, Event)
    end

    Yet again we need to change the
    RottingCadaver” to the name of the npc.
    Now lets add the coding between the function
    And the end commands. This is the coding I
    Will start you off with for now. Leave everything
    But what I have colored alone.

    x = pUnit:GetX ()
    y = pUnit:GetY ()
    z = pUnit:GetZ ()
    o = pUnit:GetO ()

    pUnit:SpawnCreature (10925, x, y, z, o, 21, 360000)

    x = x + 1

    pUnit:SpawnCreature (10925, x, y, z, o, 21, 360000)


    Change the10925 to the npc spawn number
    Change the21to the faction you want the new npc to have
    Change the360000to how long untill it despawns (in milliseconds)

    This is what it should look like when you are done with it



    function RottingCadaver_OnDied (pUnit, Event)
    x = pUnit:GetX ()
    y = pUnit:GetY ()
    z = pUnit:GetZ ()
    o = pUnit:GetO ()

    pUnit:SpawnCreature (10925, x, y, z, o, 21, 360000)

    x = x + 1

    pUnit:SpawnCreature (10925, x, y, z, o, 21, 360000)
    <optinal> add any other events you want to happen after
    npc dies right here <end option>
    end

    RegisterUnitEvent (989898, 4, "RottingCadaver_OnDied")


    I hope this helps anyone I personaly used this to
    Make two smaller blobs appear after main one dies

    lua guide on spawning mobs after death
  2. #2
    Iceknight001's Avatar Active Member
    Reputation
    21
    Join Date
    Jan 2007
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome job man +rep


  3. #3
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks man

Similar Threads

  1. [Guide] Deaths Lua Guide for Teleporters,Custom Bosses and Item scripts!
    By Deathbringer123 in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 10-11-2011, 12:26 PM
  2. [LUA] Spawn Mobs on Item Use Hmm
    By DontCareQQ in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 09-05-2008, 08:32 AM
  3. Fast Guide: How to do after downloading: Ascent Server Setup
    By Arthas117 in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 11-24-2007, 10:45 AM
  4. kill a mob after death as a mage
    By Notahax in forum World of Warcraft Exploits
    Replies: 10
    Last Post: 02-17-2007, 07:42 AM
  5. Rezzurect Immediately After Death!!!
    By Tbone in forum World of Warcraft Exploits
    Replies: 36
    Last Post: 07-14-2006, 06:28 AM
All times are GMT -5. The time now is 01:35 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search