[Request] A small lua help. menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Ellenor's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2008
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] A small lua help.

    can someone give me the commands so my boss *lua file* can summon creature near players?

    Code:
    function Arthas_onKillTarget(pUnit, Event) 
    	local X = pUnit:GetX()
        local Y = pUnit:GetY()
        local Z = pUnit:GetZ()
        local O = pUnit:GetO()
    	pUnit:SpawnCreature(68901, X, Y, Z, O, 18, 30000)
    	if pUnit:GetMaxHealth() == 1000000 then
    	pUnit:SetMaxHealth(1200000)
    	end
    	if pUnit:GetMaxHealth() == 120000 then
    	pUnit:SetMaxHealth(140000)
    	end
    	if pUnit:GetMaxHealth() == 140000 then
    	pUnit:SetMaxHealth(160000)
    	end
    	if pUnit:GetMaxHealth() == 160000 then
    	pUnit:SetMaxHealth(180000)
    	end
    end
    What i need is to make him to spawn the units every 100 sec and near him to assist. not only when he kill someone...

    [Request] A small lua help.
  2. #2
    Gpoh's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function Arthas_OnCombat(Unit, Event, Miscunit, Misc)
    Unit:RegisterEvent("Arthas_Spawn",100000,0)
    end

    function Arthas_Spawn(pUnit, event, miscunit, misc)
    x = Unit:GetX()
    y = Unit:GetY()
    z = Unit:GetZ()
    o = Unit:GetO()
    x = x + 5
    y = y + 5
    pUnit:SpawnCreature(68901, x, y, z, o, 18, 36000000)
    end

    that should be more what your looking for if you show me your full script i can check it and tell you if it works

    this right here will spawn this unit every 100seconds 5 units infront and to the left of itself (these 5 units hardly move it at all however you can remove the x=x+5 and y=y+5 if you want them spawning directly on top) and these units will remain spawned for 36000seconds or until killed

    like i said before post the whole script for further help

Similar Threads

  1. Somone help with Small LUA Problem
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-22-2009, 12:56 AM
  2. LUA Help Request
    By erebos in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 09-26-2008, 01:54 PM
  3. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
  4. [request] +rep for your help... Ascent problem
    By iccy in forum World of Warcraft Emulator Servers
    Replies: 50
    Last Post: 12-30-2007, 03:41 AM
  5. [Request] Need a lil help :(
    By mchugh in forum Art & Graphic Design
    Replies: 7
    Last Post: 11-30-2007, 11:37 AM
All times are GMT -5. The time now is 03:16 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