Milva

Moderator
Posted By-Asmir3 from Runuo

Removing Facts From Public Moongate


How to Remove Trammel/Felucca/Ilshenar/Mallas/Tokuno from public Moongate

I see lot of ppl asking how to remove facts from publicmoongate

First Open PublicMoongate.cs
Find That line
Code:
[Usage( "MoonGen" )]
[Description( "Generates public moongates. Removes all old moongates." )]
public static void MoonGen_OnCommand( CommandEventArgs e )
{
DeleteAll();

int count = 0;

count += MoonGen( PMList.Trammel );
count += MoonGen( PMList.Felucca );
count += MoonGen( PMList.Ilshenar );
count += MoonGen( PMList.Malas );
count += MoonGen( PMList.Tokuno );

World.Broadcast( 0x35, true, "{0} moongates generated.", count );
}

Next
What ever fact u dont want just put // those in the front
Example 1 say u dont want Trammel
Code:
[Usage( "MoonGen" )]
[Description( "Generates public moongates. Removes all old moongates." )]
public static void MoonGen_OnCommand( CommandEventArgs e )
{
DeleteAll();

int count = 0;

//count += MoonGen( PMList.Trammel );
count += MoonGen( PMList.Felucca );
count += MoonGen( PMList.Ilshenar );
count += MoonGen( PMList.Malas );
count += MoonGen( PMList.Tokuno );

World.Broadcast( 0x35, true, "{0} moongates generated.", count );
}

That is how is should look!

Now Step #2
Find this code
Code:
public static readonly PMList[] UORLists = new PMList[] { Trammel, Felucca };
public static readonly PMList[] UORListsYoung = new PMList[] { Trammel };
public static readonly PMList[] LBRLists = new PMList[] { Trammel, Felucca, Ilshenar };
public static readonly PMList[] LBRListsYoung = new PMList[] { Trammel, Ilshenar };
public static readonly PMList[] AOSLists = new PMList[] { Trammel, Felucca, Ilshenar, Malas };
public static readonly PMList[] AOSListsYoung = new PMList[] { Trammel, Ilshenar, Malas };
public static readonly PMList[] SELists = new PMList[] { Trammel, Felucca, Ilshenar, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = new PMList[] { Trammel, Ilshenar, Malas, Tokuno };
public static readonly PMList[] RedLists = new PMList[] { Felucca };
public static readonly PMList[] SigilLists = new PMList[] { Felucca };

Say ur still removing just trammel well where ever u see trammel take it out and sometimes u if it only says trammel then rename with Felucca
Example Here I'm still just removing trammel
Code:
public static readonly PMList[] UORLists = new PMList[] { Felucca };
public static readonly PMList[] UORListsYoung = new PMList[] { Felucca };
public static readonly PMList[] LBRLists = new PMList[] { Felucca, Ilshenar };
public static readonly PMList[] LBRListsYoung = new PMList[] { Ilshenar };
public static readonly PMList[] AOSLists = new PMList[] { Felucca, Ilshenar, Malas };
public static readonly PMList[] AOSListsYoung = new PMList[] { Trammel Ilshenar, Malas };
public static readonly PMList[] SELists = new PMList[] { Felucca, Ilshenar, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = new PMList[] { Trammel Ilshenar, Malas, Tokuno };
public static readonly PMList[] RedLists = new PMList[] { Felucca };
public static readonly PMList[] SigilLists = new PMList[] { Felucca };

That is how it should look notice that I removed the , too.
---------------------------------------------------------------------
Updated with : this so it works now i forgot u got to keep trammel because of EnchantedSextant.cs
Info link: http://www.runuo.com/community/threads/removing-facts-from-public-moongate.65136/
 
Back