EOSERV Wiki > Page: Guide: NPCs Dropping Items > History > View Revision

View Revision: Guide: NPCs Dropping Items

'''Requirements'''

  • Text Editor (Such as Notepad++)
  • EOServ server
  • Endless Online client (to test)

'''Instructions'''

  1. Go to where you server is located, mine would be: E:\Games\EO Server\
  2. Go into the folder 'eoserv-0.6.0' and then into 'data' you will find the file 'drops.ini'
  3. Open 'drops.ini' in your text editor
  4. If you do not see a few lines of writing then you must have already played around with it, the release already has the instructions there.
  5. If for some reason you do not have them or understand them here is an example:

7 = 2,1,1,50, 258,1,1,50

To break this down:

7 - This is the NPC ID, you can find this by opening your NPC file in a pub editor. The NPC file is located in 'data\pub\' and is called 'dtn001.enf'. In this instance it is the goat by default.

2,1,1,50, - This means that the goat may drop item ID 2, if it does it will drop between 1 and 1 of them. That's the minimum and maximum and the 50 is the percentage of chance for the drop. The reason 50 is followed by a comma is that another item is going to be dropped. If there is no other item for this NPC then you do not need the additional comma. Item ID 2 is a small health potion by default.

258,1,1,50 - As you can see there is no comma at the end. This is item ID 258, the goat horn by default, it will drop a minimum of 1 and a maximum of 1 50% of the time.

That's it. If you are adding more than 1 NPC which hopefully you are or you'll have a rather boring server, then make sure you add it on a new line! Like this:

7 = 2,1,1,100, 258,1,1,50
8 = 3,1,1,100
10 = 21,1,1,1

</pre>

Finally, save the text file and you should be good to go.

Test this by spawning a monster on a map and killing it several times. Remember if the % isn't 100 you may not get the drop first time.

'''Guide by EmrysDSD'''

EOSERV Wiki > Page: Guide: NPCs Dropping Items > History > View Revision