Results 1 to 3 of 3
  1. #1
    MSDTorque's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Need Help Changing Nexus In Fabiano Source

    Hey guys, I've just recently got my private server running but I have looked everywhere for a tutorial on changing the nexus map and I cant find one that works.

    If anyone could help point me in the right direction that would be great, thanks.

  2. #2
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed

  3. #3
    MrchickenWingz's Avatar
    Join Date
    Sep 2014
    Gender
    male
    Posts
    174
    Reputation
    10
    Thanks
    152
    So copy this into your nexus.cs
    Code:
    #region
    
    using System.Collections.Generic;
    using System****;
    using wServer.realm.entities;
    using wServer.realm.entities.player;
    using wServer.realm.terrain;
    
    #endregion
    
    namespace wServer.realm.worlds
    {
        public class Nexus : World
        {
            public const string nexus = "wServer.realm.worlds.maps.nexus.jm";
    
            public Nexus()
            {
                Id = NEXUS_ID;
                Name = "Nexus";
                ClientWorldName = "server.nexus";
                Background = 2;
                AllowTeleport = false;
                Difficulty = -1;
            }
    
            protected override void Init()
            {
                LoadMap(nexus, MapType.Json);
            }
    
            public override void Tick(RealmTime time)
            {
                base.Tick(time); //normal world tick
    
                CheckDupers();
                UpdatePortals();
            }
    
            private void CheckDupers()
            {
                foreach (KeyValuePair<int, World> w in Manager.Worlds)
                {
                    foreach (KeyValuePair<int, World> x in Manager.Worlds)
                    {
                        foreach (KeyValuePair<int, Player> y in w.Value.Players)
                        {
                            foreach (KeyValuePair<int, Player> z in x.Value.Players)
                            {
                                if (y.Value.AccountId == z.Value.AccountId && y.Value != z.Value)
                                {
                                    y.Value.Client.Disconnect();
                                    z.Value.Client.Disconnect();
                                }
                            }
                        }
                    }
                }
            }
    
            private void UpdatePortals()
            {
                foreach (var i in Manager.Monitor.portals)
                {
                    foreach (var j in RealmManager.CurrentRealmNames)
                    {
                        if (i.Value.Name.StartsWith(j))
                        {
                            if (i.Value.Name == j) (i.Value as Portal).PortalName = i.Value.Name;
                            i.Value.Name = j + " (" + i.Key.Players.Count + "/" + RealmManager.MAX_REALM_PLAYERS + ")";
                            i.Value.UpdateCount++;
                            break;
                        }
                    }
                }
            }
        }
    }
    and toss a nexus.jm map in your worlds folder, set build action to embedded resource.

    IMPORTANT Also theres a **** at the top, use whatever is there in your nexus.cs
    Last edited by MrchickenWingz; 06-04-2016 at 05:06 PM.

Similar Threads

  1. [Help Request] Need Help! [Changing the nexus]
    By kristianq in forum Realm of the Mad God Private Servers Help
    Replies: 4
    Last Post: 07-11-2015, 08:46 AM
  2. [Help Request] I need Help with publishing the Fabiano server of doom
    By Dimi7799 in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 05-22-2015, 09:44 AM
  3. [Help Request] I need help changing 3 simple things in a mod I have.
    By b4xter in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 04-14-2014, 02:33 PM
  4. [Help Request] Need help changing Private Military Key
    By resausk in forum DayZ Help & Requests
    Replies: 9
    Last Post: 03-10-2013, 03:16 AM
  5. [Help Request] need help changing sabotage script
    By pyrozombie in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 05-22-2011, 06:32 AM