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

Results 1 to 3 of 3
  1. #1
    Member Glorious is offline
    MemberRank
    Jan 2016 Join Date
    51Posts

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

    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(){
    

    Right above that add this code:
    Code:
    public const int RAGEZONEMAP = -38;
    


    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);
    

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

    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;
    

    Right above that add this code:
    Code:
    case 0x969ab:
              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:
       <Object type="0x969ab" id="Ragezone Portal">
        <Class>Portal</Class>
        <IntergamePortal/>
        <DungeonName>Ragezone</DungeonName>
        <RemoteTexture>
          <Instance>draw</Instance>
          <Id>17593131</Id>
        </RemoteTexture>
      </Object>
      <Object type="0x969ac" id="Ragezone Key">
        <Class>Equipment</Class>
        <Item/>
        <RemoteTexture>
          <Instance>draw</Instance>
          <Id>17587037</Id>
        </RemoteTexture>
        <SlotType>10</SlotType>
        <Description>A key that opens a portal to your very own Dungeon.</Description>
        <Sound>use_key</Sound>
        <Consumable/>
        <Soulbound/>
        <Activate id="Ragezone Portal">Create</Activate>
      </Object>
    
    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 :)

    [Section Request]Realm of the Mad God private servers!
    Last edited by Glorious; 26-04-16 at 07:05 PM.


  2. #2
    Account Upgraded | Title Enabled! exe19890522 is offline
    True MemberRank
    Dec 2011 Join Date
    chinaLocation
    375Posts

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

    @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??

  3. #3
    Account Upgraded | Title Enabled! exe19890522 is offline
    True MemberRank
    Dec 2011 Join Date
    chinaLocation
    375Posts

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

    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 by exe19890522; 04-06-16 at 04:01 PM.



Advertisement