Spawned creature's. menu

User Tag List

Results 1 to 5 of 5
  1. #1
    DaynNight's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spawned creature's.

    Hi there, could any of you help me out? Im trying to give the spawned npc's an equiped weapon.. like when (example) Thrall spawns that he is carrying a weapon instead of standing there/fighting with his fists.

    PHP Code:
    function Guard_OnCombat (pUnitEvent)
                    
    pUnit:SendChatMessage(120"Intruders! Slay them all!")
                    
    pUnit:FullCastSpell(62614)
    end

    function Guard_OnLeaveCombat (pUnitEvent)
                    
    pUnit:RemoveEvents()
    end

    function Guard_OnDie (pUnitEvent)
                    
    pUnit:SpawnCreature(577994506.593750, -2333.8151861138.0545651.403121989360000)
                    
    pUnit:SpawnCreature(578004504.263184, -2235.0913091138.0543211.436895989360000)
                    
    pUnit:SpawnCreature(578014508.484863, -2335.6938481138.0645651.429041989360000)
                    
    pUnit:RemoveEvents()
    end                

    RegisterUnitEvent 
    (578031"Guard_OnCombat")
    RegisterUnitEvent (578032"Guard_OnLeave")
    RegisterUnitEvent (578033"Guard_OnDie"
    This is what I currently have, when an npc dies (in this case Eternal Chapion referred as "Guard) 3 other guys spawn in front of the boss to enounter it before the player's do, but when they spawn they are always bare handed.. any suggestions?

    Thanks alot in advance

    EDIT: Now when the npc dies, the others wont spawn.. didnt edit anything and Ive been looking on the internet but cant find any kind of the same problems could anyone help me out here? :s
    Last edited by DaynNight; 01-29-2012 at 01:23 PM.

    Spawned creature's.
  2. #2
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Due to the LUA im assuming your using Arc. Does Arcemu not have a Table that handles this in DB like Mangos has Equip_template?

    I seem to remember from my earlier ARC time that it did.

  3. #3
    DaynNight's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of all, thanks alot for your reply.. I just found a template called Creature_Spawns with a tab in it called Slot1Item. So I wrote 19019 in it (Thunderfury Blessed Blade of the Windseeker) and it didnt pop up in-game, not even when they attack people. And yes, im using ArcEmu 3.3.5a 12340, I fixed the bug that when the npc dies the others wont spawn, had to put "4" instead of "3" incase this would help someone.

    RegisterUnitEvent (57803, 4, "Guard_OnDie")

    And also, does anyone know how to fix the waypoint bug or is it just some random when he saves them or doesnt? thanks alot

  4. #4
    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)
    If you add waypoints then restart the server without killing him etc, they should save automatically. You can force a save with .way save

    Equipment can be added to spawned creatures via .npc equip itemid

    e.g:
    .npc equip1 109 -- main hand item id 109
    .npc equip2 109 -- off hand item id 109
    .npc equip3 109 -- bow, id 109

    You can make the creature have unsheathed weapons by changing the bytes,
    .mod bytes2 1 -- show items unsheathed (main hand/offhand)
    .mod bytes2 0 -- sheath all weapons
    .mod bytes2 2 -- show ranged weapon

    You can spawn a creature with weapons via the SpawnCreature command with more parameters, see here: Unit Commands - ArcEmu-Wiki

    :SpawnCreature(entry, x, y, z, o, faction, duration[, equip1, equip2, equip3, phase, save])

    The bits in [] are optional. So for example:

    pUnit:SpawnCreature(1, player:GetX(), player:GetY(), player:GetZ(), 0, 21, 360000, 1081, 192)

    To spawn a creature with entry 1 at a players location, with faction 21, a long spawn time, and equipping weapons 1081/192 in main hand/off hand.

  5. #5
    DaynNight's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot stoneharry, I just found out myself and wanted to edit the post still thanks xD, very usefull information

Similar Threads

  1. [Mangos] Items, Spawns, Creatures for Cataclysm
    By Synric in forum WoW EMU General Releases
    Replies: 16
    Last Post: 09-19-2010, 02:51 AM
  2. Saving gameobjects spawns, creatures C++
    By LJN in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 01-02-2009, 05:19 PM
  3. Spawn Creature..?
    By Sounddead in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 09-17-2008, 08:20 AM
  4. LUA, spawned creatures attack tank?
    By CairiFEA in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-16-2008, 04:25 AM
  5. Spawning creatures in ascent (it was annoying to figure out)
    By stray123 in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 12-18-2007, 12:42 AM
All times are GMT -5. The time now is 06:03 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