feast

last built 3 weeks ago
Build #232
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Community Plugin
This plugin is maintained by the RocketMod Community.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

ZaupFeast

As of 3.0.0.0 which I made available 9 July 2015, there are some changes to the configuration file. Please update your files accordingly. If you decide to use SkyDrop, please follow my instructions below on how to get and setup the RocketEffects Plane Bundle (thanks Sven!) for use on your server.

Here is my take on the old Feast that was available for 2.2.5. My version, you have a little bit more configuration options.

Most of the configurations should be self explanatory.

Enabled: set to false if you really want to turn the feast off but not remove it from your server.

MinDropTime and MaxDropTime is the range of time between feast drops in seconds. If you set both to the same number, it will be a set time.

DropRadius is how far from the location point they should randomly drop. Default is 20 spaces.

MinItemsDrop and MaxItemsDrop is the range of number of items to be dropped each time.

SkyDrop: If set to true, a series of effects will run and show an airdrop. (Thank you Sven!!) Needs the RocketEffects Plane Bundle located at http://steamcommunity.com/sharedfiles/filedetails/?id=461458943. Just subscribe to it and it will be downloaded to your client side. Then copy the 461458943 folder located in you client workshop folder (on windows usually C:\Program Files (x86)\Steam\steamapps\workshop\content\304930) to the server workshop folder in Bundles\Workshop\Content. The server will then send it to the players as needed. Also requires Debris graphic setting to be on to be seen. (Will not work if on Off.)

PlaneEffectId and SkydropEffectId are needed if SkyDrop is set true. The planes are from 1001 to 1005. SkydropEffect is only 1006 right now.

MessageColor: Set to a color by name or hex to give the feast messages sent to chat it’s own color.

FeastItem is a required piece. It gives all the info the feast needs to drop a certain type. Name doesn’t have to be exact (only for your reference), but id does. Chance is how many times to add that id into the pot. 10 is default for 10 types. (10 items, 10 times each, makes it 10% chance each item will be this specific item.)

Locations is the most configurable. Just put all, and that item will drop at all locations, or you can specify 1 or more locations for that item to drop. So you can have items drop in one location and not another. The names come from the map nodes, and they do have to be exact to take.

All items are set to be removed when Unturned itself looks to sweep items that have been moved. A message will be printed to the console that has the time and location of the next feast for logging purposes.

If you delete the configuration file, the system will recreate it on a restart but it will print a warning that it could not find it and disable the feast. Just edit your config and restart the server.

Now includes a translation file for the two messages sent to chat.

<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TranslationEntry Id="coming_feast_msg" Value="The feast is beginning at {0} in {1} minutes!" />
  <TranslationEntry Id="now_feast_msg" Value="The feast is now at {0}!" />
</Translations>

As of version 2.0.0.2, the item dropped in the chance list is removed upon being selected and dropped. So if you set chance to 1 and that item is dropped, it cannot drop again during that feast. To avoid any errors, make sure your total chances are equal to or more than your max items dropped.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<FeastConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Enabled>true</Enabled>
  <MinDropTime>600</MinDropTime>
  <MaxDropTime>1200</MaxDropTime>
  <DropRadius>20</DropRadius>
  <MinItemsDrop>10</MinItemsDrop>
  <MaxItemsDrop>25</MaxItemsDrop>
  <SkyDrop>false</SkyDrop>
  <PlaneEffectId>1001</PlaneEffectId>
  <SkydropEffectId>1006</SkydropEffectId>
  <MessageColor>red</MessageColor>
  <Items>
    <FeastItem>
      <Id>66</Id>
      <Name>Cloth</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>43</Id>
      <Name>Military Ammunition Box</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>44</Id>
      <Name>Civilian Ammunition Box</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>13</Id>
      <Name>Canned Beans</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>14</Id>
      <Name>Bottled Water</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>10</Id>
      <Name>Police Vest</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>251</Id>
      <Name>White Travelpack</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>223</Id>
      <Name>Police Top</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>224</Id>
      <Name>Police Bottom</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
    <FeastItem>
      <Id>366</Id>
      <Name>Maple Crate</Name>
      <Chance>10</Chance>
      <Locations>
        <string>all</string>
      </Locations>
    </FeastItem>
  </Items>
</FeastConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="coming_feast_msg" Value="The feast is beginning at {0} in {1} minutes!" />
  <Translation Id="now_feast_msg" Value="The feast is now at {0}!" />
</Translations>

Commands and permissions


/runfeast

Permissions: runfeast

Immediately starts the feast


Git changelog


76dd160d9c1d06b 2019-05-01 11:20:17

Update README.md

    6a877de52230309 2019-05-01 11:17:15

    fixing build for newest unturned

      6e2e2ecf68505ba 2016-12-05 18:21:40

      ..

        8ba91699388f26d 2016-11-06 18:21:09

        ..

          c8932d5d17d039c 2016-11-06 18:01:47

          Possible fix

            fb84e68f967879f 2016-11-04 18:10:48

            ..

              cbe1ff0a0b8df47 2016-05-29 09:59:17

              Fixing exception if plane bundle is not found

                5c22e674e84410d 2015-12-23 18:24:36

                Fix

                  3f5cf3018edde1f 2015-11-11 14:28:47

                  adding 20 logs

                    b630a1dfdd64f65 2015-11-11 14:20:41

                    BAM!

                      ddaf1b4582f2d12 2015-11-10 18:01:34

                      ..

                        be0a4eb94b8aa18 2015-11-10 17:33:35

                        dayum zami

                          cc337cd06443bf9 2015-11-10 16:20:53

                          #fail

                            2ea4c114e1089da 2015-11-10 12:40:40

                            Delay start to have all nodes in the list (Fixing System.InvalidOperationException: Collection was modified). Thanks to Long Pig for repoting.

                              1487eec12407f17 2015-10-05 11:38:24

                              Fixing LocationNode

                                90ae690ba10560b 2015-09-26 10:44:39

                                Try more fixes

                                  7830563948aeb2b 2015-09-25 21:07:06

                                  Fixing references

                                    0bb538cf2922270 2015-08-25 06:55:27

                                    Should fix using specified locations instead of all

                                      853f0f1d2a2ac3c 2015-08-25 06:26:30

                                      Fix for still glitched items with skydrop true

                                        252f9c7331a1283 2015-07-31 04:37:32

                                        Fixed config

                                          f938962304b2ab7 2015-07-27 01:37:00

                                          Update to Rocket 4.6

                                            22be0d212fb99e4 2015-07-20 18:35:28

                                            Changed version number because I forgot.

                                              ff5fa9b0a5cc0ed 2015-07-20 18:34:38

                                              Update to work on maps with safe zones.

                                                335d1603983e39a 2015-07-18 20:10:57

                                                Updated libs

                                                  3e29b612060f4e3 2015-07-18 20:07:06

                                                  Update to Unturned 3.11.7.0

                                                    bf943fe87107c56 2015-07-18 19:41:22

                                                    Fix reloading issues

                                                      89203ba87b015b7 2015-07-09 22:04:52

                                                      Added runfeast command to force feast to run

                                                        47aaf1650a2eef4 2015-07-09 21:58:48

                                                        Update README.md

                                                          7b4f99b409d480e 2015-07-09 21:56:03

                                                          Update README.md

                                                            123efadcb093bd9 2015-07-09 21:39:57

                                                            Typo in config

                                                              bd789ad26eb4fc0 2015-07-09 21:37:12

                                                              Fixed my file organization

                                                                0c0fe7dbc18231e 2015-07-09 21:14:49

                                                                Major update to include effects

                                                                  34e3f928c27f0ee 2015-07-03 00:56:46

                                                                  Syntax highlighting for XML

                                                                    e76c3a2a359a52a 2015-06-23 22:04:25

                                                                    Update for Unturned 3.11.0.0 and Rocket 4.5.0.0

                                                                      953af462388451b 2015-06-04 00:05:12

                                                                      Changed file structure

                                                                        76031100543abe3 2015-06-03 21:54:30

                                                                        Updated project

                                                                          13f09200d71d2aa 2015-05-26 20:22:21

                                                                          Fix error when catching invalid items in config

                                                                            72cbd70f2f23ef2 2015-05-23 19:27:29

                                                                            Removes invalid items from drop list

                                                                              1b42dc994db374f 2015-05-17 03:39:21

                                                                              Update to Rocket 4.0

                                                                                0f7d58ef662f95f 2015-05-05 21:43:57

                                                                                Update to Rocket 3.8.0.0

                                                                                  440e23eab47a7bd 2015-04-28 02:54:53

                                                                                  Bug fix

                                                                                    a6a3460c9dce906 2015-04-24 23:50:20

                                                                                    Fix Item drops not working

                                                                                      2a6c9ef6acd2823 2015-04-17 22:52:24

                                                                                      Delete item chance on use.

                                                                                        ea81aad13c652b8 2015-03-23 18:54:06

                                                                                        Added License.

                                                                                          38d3adc447685bd 2015-03-23 18:13:57

                                                                                          Create README.md