Random spwn items
#16
@Boo 

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)
Format of drop_items.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
As the name indicate this are default values, they are used for the command '/itemspawner create'.
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
This two commands will create a item spawner at your location and enable it, currently there is nothing placed, write if you want something placed

Well then please test it  Smile  . 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.
Reply
Thanks given by:


Messages In This Thread
Random spwn items - by Boo - 03-22-2017, 05:28 PM
RE: Random spwn items - by Boo - 05-14-2017, 04:38 AM
RE: Random spwn items - by Seadragon91 - 05-14-2017, 04:49 AM
RE: Random spwn items - by Boo - 05-14-2017, 04:51 AM
RE: Random spwn items - by xoft - 05-14-2017, 05:01 AM
RE: Random spwn items - by Seadragon91 - 05-14-2017, 05:17 AM
RE: Random spwn items - by Boo - 05-14-2017, 07:08 PM
RE: Random spwn items - by Seadragon91 - 05-15-2017, 09:35 PM
RE: Random spwn items - by Boo - 05-16-2017, 01:24 AM
RE: Random spwn items - by Seadragon91 - 05-16-2017, 02:01 AM
RE: Random spwn items - by Boo - 05-16-2017, 02:07 AM
RE: Random spwn items - by xoft - 05-16-2017, 07:44 AM
RE: Random spwn items - by Boo - 05-16-2017, 05:30 PM
RE: Random spwn items - by xoft - 05-16-2017, 08:35 PM
RE: Random spwn items - by Boo - 05-16-2017, 08:45 PM
RE: Random spwn items - by Seadragon91 - 05-20-2017, 07:41 AM
RE: Random spwn items - by Cl1608Ho - 05-20-2017, 04:03 PM



Users browsing this thread: 2 Guest(s)