05-20-2017, 07:41 AM
(This post was last modified: 05-20-2017, 02:30 PM by Seadragon91.)
@Boo
I created a plugin that should do what you want. It's ready for testing.
https://github.com/Seadragon91/ItemSpawner
The damage value is optional.
The file ItemSpawner.lua contains at top the variables:
Here a basic usage. The args in square brackets are optional and the values from the variables above are used.
Well then please test it . Discover the plugin and the commands.
If an error occurs. the stack trace should be then in the console.
Edit, problem fixed:
- Fixed crash, item list was empty
- Close database, if plugin gets disabled.
I created a plugin that should do what you want. It's ready for testing.
https://github.com/Seadragon91/ItemSpawner
- The README on the github page contains the command and what it do, also "/itemspawner help" in-game will list them
- The storage of the spawners is done in a sqlite db
- The items for the spawner is in file file drop_items.ini in plugin folder in , a example one will be generated at server startup (Plugin name has to be in settings.ini)
Code:
<item type>:<amount>:<damage value>
The damage value is optional.
The file ItemSpawner.lua contains at top the variables:
- g_DefaultRadius
- g_DefaultInterval
Here a basic usage. The args in square brackets are optional and the values from the variables above are used.
- /itemspawner create test
- /itemspawner enable test
Well then please test it . Discover the plugin and the commands.
If an error occurs. the stack trace should be then in the console.
Edit, problem fixed:
- Fixed crash, item list was empty
- Close database, if plugin gets disabled.