Difference between revisions of "Project Phoenix 2 Spawners"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Files)
Line 12: Line 12:
 
Below is a list of all the files that involve the spawner save system.
 
Below is a list of all the files that involve the spawner save system.
 
*scripts\commands\spawning\spawner.lua
 
*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

Revision as of 14:25, 30 July 2019

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