Spawn Creature..? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spawn Creature..?

    How do you pawn a creature in LUA?
    I tried :SpawnCreature(90025,player:GetX(),player:GetY(),player:GetZ(), 1741, 50000)

    But it comes up with the error
    Code:
    attempt to call method 'SpawnCreature' <a nil value>

    Spawn Creature..?
  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)
    This works

    pUnit:SpawnCreature(Entryid, X, Y, Z, O, 73, 0);

    If you want to spawn it NOT underneath the origional mob use this type of setup

    X = pUnit:GetX();
    Y = pUnit:GetY();
    Z = pUnit:GetZ();
    O = pUnit:GetO();
    X = X + 4
    Y = Y + 4
    pUnit:SpawnCreature(entryid, X, Y, Z, O, 73, 0);

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. [ArcEmu] Spawned creature crashes world server
    By Reddyyguy in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 09-09-2010, 02:52 PM
  3. Saving gameobjects spawns, creatures C++
    By LJN in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 01-02-2009, 05:19 PM
  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 02:56 AM. 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