Project Phoenix 2 Spawners

From Legends of Aria Admin and Modding Wiki
Revision as of 14:27, 30 July 2019 by Gizmo (talk | contribs) (How it Works)
Jump to: navigation, search

Welcome

Spawners are the bread and butter objects in the game. They will put a creature or plant like cotton in the world and if the player kills the creature or picks the cotton it will respawn the object back into the world by within a time frame of your choosing. The spawn system comes with a template called spawner. It also comes with a user interface in game to edit the properties of the spawner. You also have the option to save the spawners to a data file so when you run a resetworld command you can run the loadspawners command. you can use the command savespawners to save them.

Files

Below is a list of all the files that involve the spawner system or where the core structure is.

  • scripts\spawning\spawner\spawner.lua
  • scripts\spawning\spawner\spawner_datatables.lua
  • scripts\spawning\spawner\spawner_localization.lua
  • scripts\spawning\spawner\spawner_ui.lua

Below is a list of all the files that involve the spawner save system.

  • scripts\commands\spawning\spawner.lua

How it Works

Step 1) in the game chat console type /create spawner.
Step 2) double click the red spawner, if you don't see it hit the '[' key to toggle nodraws on and off.
Step 3) on the spawner user interface you can modify the spawner behavior, lets add a monster.
Step 4) Click the gear box icon next to the Templates.
Step 5) Select a category of monster to spawn, scroll down to Undead
Step 6) Select skeleton from the list

There are other options you can change in the spawner. Hover your mouse over the question marks by the spawner options to get a tooltip on what the variables do. Also you can set the values by selecting the gear box on the right side of the user interface. That is it!! Enjoy!