Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[RotMG] How to add a Dungeon MMOE source (Detailed)

Newbie Spellweaver
Joined
Jan 27, 2016
Messages
50
Reaction score
32
Firstly
Go to editor and make your map, save it to your server folder and run worldconverter.exe and make a wmap. (Make sure you have rebuilt the source before you use worldconverter or it will not work)

Then Open your server solution and find the "worlds" folder wich is located in:
Wserver>Realm>worlds.

paste your .jm(Ragezonemap.jm) file and .wmap(Ragezonemap.wmap) file in there and make a new .cs file called: RagezonemapMap.cs

Replace everything inside there with this:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System****;


namespace wServer.realm.worlds
{
    public class Ragezone : World
    {
        public RagezoneMap()
        {
            Name = "Ragezone Test Dungeon";
            Background = 0;
        //  Difficulty = 5;
        //  SetMusic("test music");
            AllowTeleport = true;
            base.FromWorldMap(typeof(RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.Ragezonemap.wmap"));
        }


        public override World GetInstance(ClientProcessor psr)
        {
            return RealmManager.AddWorld(new RagezoneMap());
        }
    }
}

You then Go to Wserver>Realm and go in World.cs


When your in there find this:
Code:
protected World(){[COLOR=#333333]
[/COLOR]

Right above that add this code:
Code:
public const int RAGEZONEMAP = -38;[COLOR=#333333]
[/COLOR]


Go to Wserver>Realm and go into RealmManager.cs

when your inside that find this code:
Code:
Monitor = new RealmPortalMonitor(Worlds[World.NEXUS_ID] as Nexus);[COLOR=#333333]
[/COLOR]

Right above that add this code:
Code:
Worlds[World.RAGEZONEMAP] = new RagezoneMap();[COLOR=#333333]
[/COLOR]

Now go to Wserver>Realm>Entities>Player and go into player.cs

When your in that find this code:
Code:
default: SendError("Portal Not Implemented!"); break;[COLOR=#333333]
[/COLOR]

Right above that add this code:
Code:
case [COLOR=#0000FF]0x969ab[/COLOR]:
          world = RealmManager.AddWorld(new RagezoneMap()); break;

NOTE! The "0x969ab:" is the obj id of my dungeon portal. This will not be the same for every dungeon as that index will now be used.
To make the xml of the portal and key copy and paste this xml at the bottom of addition2 ontop of this code:
Code:
</addition>
The xml template for the portal and key is

Code:
   [COLOR=#8b008b]<Object [COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="0x969ab"[/COLOR] [COLOR=#ff0000]id[/COLOR][COLOR=#0000ff]="Ragezone Portal"[/COLOR]>[/COLOR]
    [COLOR=#8b008b]<Class>[/COLOR]Portal[COLOR=#8b008b]</Class>[/COLOR]
    [COLOR=#8b008b]<IntergamePortal/>[/COLOR]
    [COLOR=#8b008b]<DungeonName>[/COLOR]Ragezone[COLOR=#8b008b]</DungeonName>[/COLOR]
    [COLOR=#8b008b]<RemoteTexture>[/COLOR]
      [COLOR=#8b008b]<Instance>[/COLOR]draw[COLOR=#8b008b]</Instance>[/COLOR]
      [COLOR=#8b008b]<Id>[/COLOR]17593131[COLOR=#8b008b]</Id>[/COLOR]
    [COLOR=#8b008b]</RemoteTexture>[/COLOR]
  [COLOR=#8b008b]</Object>[/COLOR]
  [COLOR=#8b008b]<Object [COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="0x969ac"[/COLOR] [COLOR=#ff0000]id[/COLOR][COLOR=#0000ff]="Ragezone Key"[/COLOR]>[/COLOR]
    [COLOR=#8b008b]<Class>[/COLOR]Equipment[COLOR=#8b008b]</Class>[/COLOR]
    [COLOR=#8b008b]<Item/>[/COLOR]
    [COLOR=#8b008b]<RemoteTexture>[/COLOR]
      [COLOR=#8b008b]<Instance>[/COLOR]draw[COLOR=#8b008b]</Instance>[/COLOR]
      [COLOR=#8b008b]<Id>[/COLOR]17587037[COLOR=#8b008b]</Id>[/COLOR]
    [COLOR=#8b008b]</RemoteTexture>[/COLOR]
    [COLOR=#8b008b]<SlotType>[/COLOR]10[COLOR=#8b008b]</SlotType>[/COLOR]
    [COLOR=#8b008b]<Description>[/COLOR]A key that opens a portal to your very own Dungeon.[COLOR=#8b008b]</Description>[/COLOR]
    [COLOR=#8b008b]<Sound>[/COLOR]use_key[COLOR=#8b008b]</Sound>[/COLOR]
    [COLOR=#8b008b]<Consumable/>[/COLOR]
    [COLOR=#8b008b]<Soulbound/>[/COLOR]
    [COLOR=#8b008b]<Activate [COLOR=#ff0000]id[/COLOR][COLOR=#0000ff]="Ragezone Portal"[/COLOR]>[/COLOR]Create[COLOR=#8b008b]</Activate>[/COLOR]
  [COLOR=#8b008b]</Object>
[/COLOR]
When this is done, save all and rebuild the project(YOU HAVE TO REBUILD!)
If this helped you please leave a like :)

Also please show your support and help us make a section on here :)

http://forum.ragezone.com/f600/section-request-realm-mad-god-1092999/index2.html#post8626505
 
Last edited:
Joined
Dec 10, 2011
Messages
476
Reaction score
27
@Glorious
--------------------------------
Now go to Wserver>Realm>Entities>Player and go into player.cs

When your in that find this code:
Code:
default: SendError("Portal Not Implemented!"); break;
------------------------
excause me,i can't find this code in player.cs file
maybe is wServer\networking\handlers\UsePortalPacketHandler.cs ??
i find that code in this file,does it really??
 
Joined
Dec 10, 2011
Messages
476
Reaction score
27
excause me,why my vs show me this error?

Method must have a return type wServer
H:\thunder2\VoOoLoX-project-v-b22b9583a641\Server\wServer\realm\worlds\RagezonemapMap.cs 12

and what is the last using System****; ??
i fix it with //System****; maybe it cause this error.
 
Last edited:
Back
Top