[Help] Spawning time / staticspawns? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Spawning time / staticspawns?

    Hello guys, now I'm coming to you for some help!

    I'm atm trying to work on chest, that wont have the same spawn location. Or jus that you edit the spawn time for them. But I can't realy find where I'm doing this.

    Take as an example, I want to do a chest like the stv arena chest. Spawn every 3 hours.

    Could anyone help me with this? Or does it require lua/c++?

    Ofc +Rep to the one that helps me

    [Help] Spawning time / staticspawns?
  2. #2
    Pwntzyou's Avatar Contributor
    Reputation
    264
    Join Date
    Dec 2007
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only way i could think of to do this in LUA would to be having a "dummy mob" in the general area that would trigger the event on spawn.


    Code:
    chestnum = 0
    spawnduriation =
    gameobject id = 
    
    function chestevent_spawn(pUnit, event)
    chestnum = chestnum + 1
    
    if chestnum == 0 then
    pUnit:SpawnGameObject(gameobjectid, x, y, z, o, spawnduriation)
    pUnit:RegisterEvent("chestevent_spawn", spawnduriation)
    end
    
    if chestnum == 1 then
    pUnit:SpawnGameObject(gameobjectid, x, y, z, o, spawnduriation)
    pUnit:RegisterEvent("chestevent_spawn", spawnduriation)
    end
    
    if chestnum == 2 then
    pUnit:SpawnGameObject(gameobjectid, x, y, z, o, spawnduriation)
    pUnit:RegisterEvent("chestevent_spawn", spawnduriation)
    end
    
    if chestnum == 3 then
    pUnit:SpawnGameObject(gameobjectid, x, y, z, o, spawnduriation)
    pUnit:RegisterEvent("chestevent_spawn", spawnduriation)
    chestnum = 0
    end
    end
    
    RegisterUnitEvent(mobid, 6, "chestevent_spawn")
    You would just have to edit the top where it says

    "spawnduriation" (its in ms so 1000 = 1 sec)
    "gameobjectid" (the id of your game object)
    X (FOR EACH OF THE IF STATMENTS!!)
    Y (FOR EACH OF THE IF STATMENTS!!)
    Z (FOR EACH OF THE IF STATMENTS!!)
    O (FOR EACH OF THE IF STATMENTS!!)
    **and you would need to change the RegisterUnitEvent()
    inside that event you need to change mobid to the id of the dummy mob that will trigger this event on spawn

    Just make the xyzo different for each gameobject spawn....
    but there are a few things you must remember

    Code:
    At the end of the script make sure you put an extra END!
    At the end of your last spawn you MUST PUT "STAGE =0" or it WILL NOT repeat the script.
    
    if chestnum == 3 then
     pUnit:SpawnGameObject(gameobjectid, x, y, z, o, spawnduriation)
     pUnit:RegisterEvent("chestevent_spawn", spawnduriation)
    chestnum = 0
     end
    end
    So in summary you could keep calling

    Code:
    if chestnum == # then
    pUnit:SpawnGameObject(gameobjectid, x, y, z, o, spawnduriation)
    pUnit:RegisterEvent("chestevent_spawn", spawnduriation)
    end
    Just change the # to a number, but it has to be consectutive... like...
    if your going to put the number 50 in there, the if statment before it has to be 49

    <3 MysterioussouL for the sig

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank. +Rep for you m8.

    Will try that out and see what I can get. Think I understand most of the lua. But just to check if I understood it right. You could just spawn a mob on some place in that area? Or does you even have to spawn it?

    Rofl you will need to wait on the rep for some hour. "To much rep over the last 24 hours." But you are my prior 1 to get it

Similar Threads

  1. [Help] Authentication Timed Out.
    By Tobii in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-16-2008, 02:14 PM
  2. [Question | Ascent] Spawn time of npcs
    By muertet in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-20-2008, 02:25 PM
  3. [Help] Spawning Problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-22-2008, 03:32 PM
  4. [Help} Spawning things need em to stay! :p
    By Nubbadon in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-13-2008, 03:33 PM
  5. [Help] Damn time-outs!
    By Sonic Waffle in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 02-16-2008, 06:30 PM
All times are GMT -5. The time now is 01:13 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