[Request] Could someone test a script for me? menu

User Tag List

Results 1 to 5 of 5
  1. #1
    sheepking's Avatar Banned
    Reputation
    52
    Join Date
    Nov 2007
    Posts
    690
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Could someone test a script for me?

    Hey there. My last thread got just deleted by an ion cannon and so I'm gonna make a new one.

    I wanted to ask if someone may test out my new Razorscale Prototype! She still doesn't fly, the Harpoons aren't spawnd and you need to kill the commander to start this event. But I'll fix this later. Just want to know if the simple Fight works.

    If it works, could someone pls tell me the coordinates where she flies and spawns and where those dwarfs are spawning nd so on?

    As reward you will be mentioned in the Credits and get 2 +rep coins

    (I cant test it myself because I dont have any Emulator or WoW)

    So, here's the Script:

    Code:
    Razorscalespawned = 0
    Phase2 = false
    
    function Start_Event(pUnit, event)
        pUnit:RemoveEvents()
        pUnit:RegisterEvent("Healthcheck_Start_Event", 1000, 0) --Starts the Timer
    end
    
    function Healthcheck_Start_Event(pUnit, event)
    if    pUnit:GetHealthPct() <= 50 or
        pUnit:IsDead() == true and --If the Healthpoints of the NPC get under 50% he spawns Razorscale (Just a Interim solution)
        Razorscalespawned == 0 then
        pUnit:SpawnCreature(33186, X, Y, Z, O, 14, 0) --Here you replace "X" "Y" "Z" and "O" with the X Spawn-Coordinats, the Y Spawn Coordintes, the Z Coordinats and the Orientation
        Razorscalespawned = 1
    end
    end
    
    RegisterUnitEvent(33210, 1, "Start_Event")
    
    function Razorscale_On_Combat(pUnit, event)
    Razorscale = pUnit
        Razorscale:RegisterEvent("Adds", 1000, 1) --Creates the Adds
        Razorscale:RegisterEvent("Devouring_Flame", 5000, 1) --Creates the Timer for the Devouring Flame
        Razorscale:RegisterEvent("Fireball", 10000, 0) -- Creates the Timer for her Fireball
        Razorscale:RegisterEvent("Phase_2", 1000, 0)
    end
    
    RegisterUnitEvent(33186, 1, "Razorscale_On_Combat")
    
    function Devouring_Flame(pUnit, event)
    local Random = Razorscale:GetRandomPlayer(7)
        Razorscale:RemoveEvent("Devouring_Flame")
        Razorscale:CastSpellOnTarget(63014, "Random")
        Razorscale:RegisterEvent("Devouring_Flame2", 25000, 0)
    end
    
    function Fireball(pUnit, event)
    local Random = Razorscale:GetRandomPlayer(7)
        Razorscale:CastSpellOnTarget(62796, "Random")
    end
    
    function where(pUnit, event)
    RS_Position_X = Razorscale:GetX()
    RS_Position_Y = Razorscale:GetY()
    RS_Position_Z = Razorscale:GetZ()
    end
    
    function Adds(pUnit, event)
        Razorscale:RemoveEvent(Adds)
        Razorscale:SpawnGameObject(194316, RS_Position_X + 10, RS_Position_Y + 10, RS_Position_Z + 1, 5000)
        Razorscale:SpawnGameObject(194316, RS_Position_X - 10, RS_Position_Y - 10, RS_Position_Z + 1, 5000)
        Razorscale:RegisterEvent("Adds1", 20000, 0)
    end
    
    Wich_Kind_of_Mobs = math.random(1, 4)
    
    function Spawnmobs(pUnit, event)
    local Mole = pUnit
    local MoleX = Mole:GetX() --Getting the X, Y and Z Coordinates of the Mole
    local MoleY = Mole:GetY()
    local MoleZ = Mole:GetZ()
    
        if Wich_Kind_of_Mobs == 1 then --25% chance
        Mole:SpawnCreature(33846, MoleX, MoleY, MoleZ, 0, 14, 0) --Spawns a Dark Rune Sentinel
        else --75% chance
        Mole:SpawnCreature(33453, MoleX, MoleY, MoleZ, 0, 14, 0) --Spawns a Dark Rune Watcher
        Mole:SpawnCreature(33388, MoleX + 1, MoleY + 1, Molez, 0, 14, 0) --Spawns a Dark Rune Guardian
        Mole:SpawnCreature(33388, MoleX - 1, MoleY - 1, Molez, 0, 14, 0) --Spawns a Dark Rune Guardian
    end
    end
    
    RegisterGameObjectEvent(194316, 2, "Spawnmobs")
    
    function Phase_2(pUnit, event)
        if
        Razorscale:GetHealthPct() <= 50 and
        Phase2 == false
        then
        Razorscale:RemoveEvent()
        Razorscale:RegisterEvent("Flame_Buffet", 20000, 0)
        Razorscale:RegisterEvent("Wing_Buffet", 40000, 0)
        Razorscale:RegisterEvent("Fuse_Armor", 35000, 0)
        Razorscale:RegisterEvent("Flame_Breath", 25000, 0)
        Razorscale:RegisterEvent("Devouring_Flame", 27000, 0)
        Phase2 = true
    end
    end
    
    function Flame_Buffet(pUnit, event)
    local Maintank = Razorscale:GetMainTank()
        Razorscale:CastSpellOnTarget(64016, "Maintank")
    end
    
    function Wing_Buffet(pUnit, event)
        Razorscale:CastSpell(62666)
    end
    
    function Fuse_Armor(pUnit, event)
    local Maintank = Razorscale:GetMainTank()
        Razorscale:CastSpellOnTarget(64771, "Maintank")
    end
    
    function Flame_Breath(pUnit, event)
        Razorscale:FullCastSpell(63317)
    end
    Last edited by sheepking; 07-01-2009 at 06:14 AM.

    [Request] Could someone test a script for me?
  2. #2
    Intu's Avatar Banned
    Reputation
    95
    Join Date
    Feb 2009
    Posts
    303
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just set up a little test server on your computer, I would test it but I dont have a test realm, just live one.

  3. #3
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Razorscale:RegisterEvent("Devouring_Flame", 5000, 1) --Creates the Timer for the Devouring Flame
    Razorscale:RegisterEvent("Fireball", 10000, 0) -- Creates the Timer for her Fireball

    Thats going to screw up the script..
    Database Evolved Developer:wave:

  4. #4
    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)
    Razorscale:RegisterEvent("Devouring_Flame", 5000, 1) --Creates the Timer for the Devouring Flame
    Razorscale:RegisterEvent("Fireball", 10000, 0) -- Creates the Timer for her Fireball

    Thats going to screw up the script..
    Not really. Devouring_Flame is only run once at 5 seconds so there won't be any conflicts. Even if it would be ran at the same time it probably wouldn't matter because FullCast isn't used meaning it's an instant cast.

    I may test it later today. But Razorscale = pUnit at the first line won't work because Lua reads a file from the top to the bottom. It will try to assign the value of pUnit to the variable Razorscale, but pUnit is nil at the loading of the script. Move that line to the onSpawn hook ( = RegisterUnitEvent(id, 18, "name")) Haven't looked at the rest of the script so can't tell if there are any other errors.

  5. #5
    sheepking's Avatar Banned
    Reputation
    52
    Join Date
    Nov 2007
    Posts
    690
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fix'd in mainframe

Similar Threads

  1. [Signature] [REQUEST] Could someone just resize these?
    By JudyCh0p in forum Art & Graphic Design
    Replies: 4
    Last Post: 08-20-2012, 02:22 PM
  2. [ArcEmu] [Request] I need a boss script for 3 bosses
    By pretli1 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 08-22-2011, 04:35 PM
  3. [Request] can someone convert this for me?
    By arthas242 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 02-08-2008, 03:40 PM
  4. Could someone remodel an armor set for me?
    By Daman in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 02-05-2008, 05:42 PM
All times are GMT -5. The time now is 10:28 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