[Question] LUA problem menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Peter1337's Avatar Member
    Reputation
    4
    Join Date
    Dec 2007
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] LUA problem

    Hi,
    i am scripting a boss with lua at the moment and i looked on the ascent wiki for events. I found the :SpawnCreatur(entryID, x, y, z, o, faction, duration)
    event and wanted to try it out but no of my scripts work:

    function Boss_OnCombat(Unit, event)
    x=Unit:GetX();
    y=Unit:GetY();
    z=Unit:GetZ();
    o=Unit:GetO();
    Unit:SpawnCreature(999998, x y, z, o, 0, 600000)
    end
    RegisterUnitEvent(999999, 1, "Boss_OnCombat")
    and

    function Boss_Spawn(Unit)
    Unit:SpawnCreature(999998, -4353, -11471, 1, 18, 0, 60000)
    end
    RegisterUnitEvent(999999, 1, "Boss_OnCombat")
    What am i doing wrong or is there any other way to spawn a creatur with lua?

    My second problem is that if my boss cast a cyclon it usually afflict the main tank so i tryed out this:

    function Jessica_Cyclone(Unit)
    Unit:FullCastSpellOnTarget(33786,Unit:GetRandomPlayer(7))
    end
    But now the Boss dont use the spell anymore and i get an error in the ascent window that the Unit:GetRandomPlayer(7) is wrong or so :/

    is there any lua maybe freak ^^ who can tell me how to fix this problems? Thanks!

    sry for my bad english sry sry sry

    [Question] LUA problem

Similar Threads

  1. lua problem with item nub question
    By Flake0207 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 06-23-2009, 10:09 AM
  2. [Question]-Lua Problem
    By Peter1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-07-2008, 07:59 AM
  3. [problem/question] noggit problem
    By Ermok in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-24-2007, 10:06 AM
  4. [Question] NoggIt Problem
    By Hiselor in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-10-2007, 04:25 AM
  5. [Question] Noggit problem
    By memech in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 10-06-2007, 04:43 AM
All times are GMT -5. The time now is 04:05 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