Here is a quick guide on adding custom items into a Realm of the Mad God private server

For this tutorial you will need:- Visual C# 2010 Express (or better)- Any RotMG Private Server

Credits to Owlupus

Let's begin.

0. Make sure the server is completely OFF.

1. Open up the solution in Visual C# by selecting the project file in the private server folder.

2. Navigate to db/data/additions.xml. Also open up dat20.xml.

3. Copy an object (item) from dat20.xml into additions.xml. Edit the stats, etc. This part should be pretty straight forward. You can also look at some other items and add in special abilities, etc.

4. Google "(decimal) to hex", replacing (decimal) with a number ID you think will be unique (start with about 5500 and go up). When you get the hex ID, search for it in both addtions.xml and dat20.xml. If there are no results, it is unique and you can use it. Put the hex code where it says "type=" at the top of the object.

5. Make sure you remember what the name of your item is so you can spawn it. The name is where it says "ID=" at the top of the object.

2. Choose a monster to add your drop to (ex. "BehaviorDb.CubeGod" for Cube God). Lesser monsters are classified by region (ex. "BehaviorDb.Highlands" for monsters in the highlands), and miscellaneous in misc, etc.

3. Find the part where it sets the loot drops. For the Cube God it looks like this:

4. Copy one of the Tuple.Create lines, preferably one that has the name of the item in quotes, but it is not necessary.

5. If it says "TierLoot" before parenthesis, change it to "ItemLoot". Then add the name of your item into the parenthesis, with quotes. For example:

Code

Tuple.Create(0.05, (ILoot)new ItemLoot("Sword of Owlupus")),

6. Edit the decimal number for the drop chance. It is a percentage. In my example, there is a 5% chance of a Cube God to drop a "Sword of Owlupus". For first test use 1.00 so it is a 100% chance your item will drop.

6 1/2. Remember to add the comma at the end of line, unless it is the last loot drop line! Notice how the stat potion loot line does not have the comma.

Can you PM me a LifetimeMS chart / list which converts numbers to range?e.g. 400 = 5 range? (or something along those lines)Thanks,~JC

Feel Free to PM me if you need helpFor joining my guild: Just drop a PMGuild Removal/Ranking Inquiries: Send a PM (here or Discord)Any Rude PMs and i will block you, or ban youMy Staff Life:

Helper Since 16th September 2015Moderator Since 2nd October 2015Global Moderator Since 20th May 2016Staff Manager Since 14th October 2016Renowned Commanding High Councillor of The Legendary Dark RidersLeader of The Dark Riders Initiative.