Lua dont spawn NPC's :( menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua dont spawn NPC's :(

    Hey guys. My script dosent spawn NPC's and im sure on i done everything right.... +Rep x2 to hoever helps me :P

    Used GUA: Gastricpenguin



    function Zombie_Phase1(Unit, Event)
    if Unit:GetHealthPct() < 85 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(14, 0, "Come brothers... Fight for your king once more")
    x=Unit:GetX()
    y=Unit:GetY()
    z=Unit:GetZ()
    o=Unit:GetO()
    SpawnCreature(900136, x+5, y, z, o, 100, 180000, 0, 0, 0)
    SpawnCreature(900136, x-5, y, z, o, 100, 180000, 0, 0, 0)
    SpawnCreature(900136, x, y+5, z, o, 100, 180000, 0, 0, 0)
    SpawnCreature(900136, x, y-5, z, o, 100, 180000, 0, 0, 0)
    Unit:RegisterEvent("Zombie_Phase2", 1000, 0)
    end
    end

    Lua dont spawn NPC's :(
  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)
    Unit:SpawnCreature(900136, x, y+5, z, o, 100, 180000, 0, 0,
    should be
    SpawnCreature(900136, x, y+5, z, o, 100, 180000, 0, 0,)
    SpawnCreature(id, x, y, z, o, faction, time, equip1, equip2, equip3)

    So your missing a 0 on the end.
    Try: SpawnCreature(900136, x, y+5, z, o, 100, 180000, 0, 0, 0)
    But personly I found the equip to be bugged, so I simple did this:
    SpawnCreature(900136, x, y+5, z, o, 100, 180000)
    Which worked. (no equips).
    Don't forget to put Unit:SpawnCreature not just Spawn creature.
    Good luck!

  3. #3
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it should be Unit:SpawnCreature(whatever's in here) not just SpawnCreature

    Edit: Oh, stone beat me to it. He also explained it a bit better

  4. #4
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ups 2 bugs xD

Similar Threads

  1. [LUA HELP] Boss spawning npc when he dies
    By Moaradin in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 04-19-2009, 11:03 AM
  2. Help needed - I cannot talk to spawned NPCs
    By ADAMZY in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-23-2007, 08:02 AM
  3. custom/spawned npc wont save when i spawned them
    By bjorn11 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 11-19-2007, 10:04 AM
  4. Spawn NPC not working..
    By Volcomchamp in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 10-01-2007, 04:27 AM
  5. Removing spawned NPC's for good?
    By lazboy in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 08-31-2007, 09:14 AM
All times are GMT -5. The time now is 02:55 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