ROTMG free hack Hack ROTMG and Private Server
   Realm of the Mad God Hacks, Cheats and Private Server
Private Server
Hacked Client

Follow us on Facebook!
Please Register and Login to our forum to access all features!

[TUT] Adding Custom Items To Your Private Server - ROTMG Tool

Get help with your own Realm of the Mad God private server. Lean how to set up server files, add content and more!

[TUT] Adding Custom Items To Your Private Server

Postby Hai » Fri 01 Aug 14 - 20:51

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.

Here's an example of an object:

<Object type="0x15B5" id="Sword of Owlupus">
    <Description>A sword crafted from the bones of Owlupus.</Description>
      <ObjectId>Blue Bolt</ObjectId>

The item will have the following stats:

Type: Sword
Tier: 18
Name: Sword of Owlupus
ID: 5557
Damage: 500-750
Description: A sword crafted from the bones of Owlupus.
Rate of Fire: 200%
Fame Bonus: 20%
Lifetime of projectiles: 600 ms
Speed of projectiles: 150
Dropped in a white bag
Skysplitter sword texture
Blue bolt projectile texture

6. Save all.

7. Right click on db and rebuild.

8. Right click on wServer and rebuild.

9. Start up the server and join it. Spawn your item and have fun!

Optional: Add your item to a monster's drop tables!

1. Navigate to wServer/logic/db

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:

loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 5, 0, 8,
       Tuple.Create(0.05, (ILoot)new ItemLoot("Dirk of Cronus")), //5% de chance de loot Cronus
       Tuple.Create(0.05, (ILoot)new ItemLoot("Amulet of Resurrection")), //5% de chance de loot Ammy

       Tuple.Create(0.05, (ILoot)new TierLoot(11, ItemType.Weapon)),
       Tuple.Create(0.05, (ILoot)new TierLoot(12, ItemType.Armor)),
       Tuple.Create(0.05, (ILoot)new TierLoot(5, ItemType.Ring)),

       Tuple.Create(1.0, (ILoot)new StatPotionsLoot(1, 2))

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:

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.

7. Save.

8. Rebuild wServer like before.

9. Run server and test it by killing the monster.

Have fun!
User avatar
Hai  <i> Offline</i>
Posts: 2533
Joined: Apr '13
PS Name: Hai
Location: England
Thanks: 120
Member of the Quarter Nuclear Award Dev Award Created Award Great Ideas Award
YouTube Medal Bug Zapper Award LMAO Award 20k Posts Day! [OLD] Member of the Month

Postby Terrmany » Tue 28 Apr 15 - 14:47

Can you also make a tut on adding classes? I am very confused about it.
Terrmany  <i> Offline</i>
Posts: 4
Joined: May '13
PS Name: Terrm
Thanks: 0

Postby AncientEvil » Tue 10 Nov 15 - 14:29

Can you PM me a LifetimeMS chart / list which converts numbers to range?
e.g. 400 = 5 range? (or something along those lines)
Feel Free to PM me if you need help
For joining my guild: Just drop a PM
Guild Removal/Ranking Inquiries: Send a PM (here or Discord)
Any Rude PMs and i will block you, or ban you
My Staff Life:

Helper Since 16th September 2015
Moderator Since 2nd October 2015
Global Moderator Since 20th May 2016
Staff Manager Since 14th October 2016
Renowned Commanding High Councillor of The Legendary Dark Riders
Leader of The Dark Riders Initiative.
User avatar
AncientEvil  <i> Offline</i>
Posts: 1357
Joined: Jul '15
PS Name: AncientEvil
Location: The Throne room of Darkrise Island
Thanks: 93
Member of the Quarter Dev Award Created Award Great Ideas Award Bug Zapper Award
[OLD] Member of the Month


Postby Cirno » Tue 01 Dec 15 - 19:56

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

go to and follow the steps.


pls dont open spoiler

User avatar
Cirno  <i> Offline</i>
Learning the Ropes
Learning the Ropes
Posts: 19
Joined: Feb '15
PS Name: Huntresss
Location: the trashcan
Thanks: 0

Related topics

 Topic Name    Author   Replies   Views 
This topic is locked, you cannot edit posts or make further replies. Help with custom dungeon and custom boss




This topic is locked, you cannot edit posts or make further replies. What private server should i use?




There are no new unread posts for this topic. Private Server Help