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!

Source Phoenix 3.11.0 [Organized / Fixed Source / Without Backdoors]

Status
Not open for further replies.
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
If you want me to help you guys I'd be glad to help, I already did this sometime ago and it was pretty funny to see Aaron's secure source getting remade

First File (Originally NET/Class321.cs)

PHP:
using System;
using System.Net.Sockets;
using Phoenix.Core;
using Phoenix.Util;
namespace Phoenix.Net
{
	internal sealed class AntiDDoS
	{
		private static string[] Connections;
		private static string LastConnection;

		internal static void Load(int int_0)
		{
			AntiDDoS.Connections = new string[int_0];
		}

		internal static bool Check(Socket Connection)
		{
			string IP = Connection.RemoteEndPoint.ToString().Split(new char[]
			{
				':'
			})[0];
			if (IP == AntiDDoS.LastConnection)
			{
				return false;
			}
			else
			{
				if (AntiDDoS.CheckConnections(IP) > 10 && IP != "127.0.0.1" && !Class13.AntiDDoSOff)
				{
					Console.ForegroundColor = ConsoleColor.Blue;
					Console.WriteLine(IP + " was banned by Anti-DDoS system.");
					Console.ForegroundColor = ConsoleColor.White;
                    Logging.LogDDoS(IP + " - " + DateTime.Now.ToString());
					AntiDDoS.LastConnection = IP;
					return false;
				}
				else
				{
					int EmptySpot = AntiDDoS.GetEmptySpot();

					if (EmptySpot < 0)
					{
						return false;
					}
					else
					{
						AntiDDoS.Connections[EmptySpot] = IP;
						return true;
					}
				}
			}
		}
		private static int CheckConnections(string IP)
		{
			int num = 0;
			for (int i = 0; i < AntiDDoS.Connections.Length; i++)
			{
				if (AntiDDoS.Connections[i] == IP)
				{
					num++;
				}
			}
			return num;
		}
		internal static void RemoveIP(string IP)
		{
			for (int i = 0; i < AntiDDoS.Connections.Length; i++)
			{
				if (AntiDDoS.Connections[i] == IP)
				{
					AntiDDoS.Connections[i] = null;
					return;
				}
			}
		}
		private static int GetEmptySpot()
		{
			for (int i = 0; i < AntiDDoS.Connections.Length; i++)
			{
				if (AntiDDoS.Connections[i] == null)
				{
					return i;
				}
			}

			return -1;
		}
	}
}

I'm working on renaming as much as possible, if you have any specific file for me to rename tell me
 
Last edited:
Skilled Illusionist
Joined
Nov 27, 2012
Messages
316
Reaction score
270
The Emu doesn't seem to be the most stable, I was using another edit with no issues, and this one seems to crash ever hr
 
Banned
Banned
Joined
Feb 9, 2007
Messages
1,313
Reaction score
177
I have the same problem here - It won't even boot up because it stops at roles...

Verstuurd van mijn GT-I9070 met Tapatalk
 
Banned
Banned
Joined
Feb 9, 2007
Messages
1,313
Reaction score
177
Eh no, i didn't thank you for mentioning me. I will do that tommorow

Verstuurd van mijn GT-I9070 met Tapatalk
 
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
To not need fix.sql find "cmd_dance_name"

Replace
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_dance_name"), 71);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_rave_name"), 72);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_roll_name"), 73);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_control_name"), 74);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_makesay_name"), 75);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_sitdown_name"), 76);
with

this.dictionary_4.Add("dance", 71);
this.dictionary_4.Add("rave", 72);
this.dictionary_4.Add("roll", 73);
this.dictionary_4.Add("control", 74);
this.dictionary_4.Add("makesay", 75);
this.dictionary_4.Add("sitdown", 76);
 
Experienced Elementalist
Joined
Oct 5, 2010
Messages
260
Reaction score
109
If you want me to help you guys I'd be glad to help, I already did this sometime ago and it was pretty funny to see Aaron's secure source getting remade

First File (Originally NET/Class321.cs)

PHP:
using System;
using System.Net.Sockets;
using Phoenix.Core;
using Phoenix.Util;
namespace Phoenix.Net
{
	internal sealed class AntiDDoS
	{
		private static string[] Connections;
		private static string LastConnection;

		internal static void Load(int int_0)
		{
			AntiDDoS.Connections = new string[int_0];
		}

		internal static bool Check(Socket Connection)
		{
			string IP = Connection.RemoteEndPoint.ToString().Split(new char[]
			{
				':'
			})[0];
			if (IP == AntiDDoS.LastConnection)
			{
				return false;
			}
			else
			{
				if (AntiDDoS.CheckConnections(IP) > 10 && IP != "127.0.0.1" && !Class13.AntiDDoSOff)
				{
					Console.ForegroundColor = ConsoleColor.Blue;
					Console.WriteLine(IP + " was banned by Anti-DDoS system.");
					Console.ForegroundColor = ConsoleColor.White;
                    Logging.LogDDoS(IP + " - " + DateTime.Now.ToString());
					AntiDDoS.LastConnection = IP;
					return false;
				}
				else
				{
					int EmptySpot = AntiDDoS.GetEmptySpot();

					if (EmptySpot < 0)
					{
						return false;
					}
					else
					{
						AntiDDoS.Connections[EmptySpot] = IP;
						return true;
					}
				}
			}
		}
		private static int CheckConnections(string IP)
		{
			int num = 0;
			for (int i = 0; i < AntiDDoS.Connections.Length; i++)
			{
				if (AntiDDoS.Connections[i] == IP)
				{
					num++;
				}
			}
			return num;
		}
		internal static void RemoveIP(string IP)
		{
			for (int i = 0; i < AntiDDoS.Connections.Length; i++)
			{
				if (AntiDDoS.Connections[i] == IP)
				{
					AntiDDoS.Connections[i] = null;
					return;
				}
			}
		}
		private static int GetEmptySpot()
		{
			for (int i = 0; i < AntiDDoS.Connections.Length; i++)
			{
				if (AntiDDoS.Connections[i] == null)
				{
					return i;
				}
			}

			return -1;
		}
	}
}

I'm working on renaming as much as possible, if you have any specific file for me to rename tell me

and the (int int_0) of internal static void Load?
 
Experienced Elementalist
Joined
Aug 28, 2011
Messages
211
Reaction score
240
Just a few questions.

Why is everyone praising this release like its the best thing that happened to this community? There are a lot of better releases around that only need a few things fixed...

When Phoenix was licensed half the people here used to say how crap it is and how other emulators are better... Why the change of heart?

I also imagine this still has the crash issue for big hotels. But eh.
 
Joined
Aug 10, 2011
Messages
7,398
Reaction score
3,301
Just a few questions.

Why is everyone praising this release like its the best thing that happened to this community? There are a lot of better releases around that only need a few things fixed...

When Phoenix was licensed half the people here used to say how crap it is and how other emulators are better... Why the change of heart?

I also imagine this still has the crash issue for big hotels. But eh.

As they found out when they moved away from phoenix that the other emulators are pretty crappy and unstable (not many people used butterfly as it had less features) and people wanted R63b. Now they realise they need a stable emulator without exploits and broken stuff that bugg people. Yet some people stick to phoenix and some are moving back because of this release.

Wonder how the community react as the real phoenix source gets released. (which wont happen obviously)
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
Just a few questions.

Why is everyone praising this release like its the best thing that happened to this community? There are a lot of better releases around that only need a few things fixed...

When Phoenix was licensed half the people here used to say how crap it is and how other emulators are better... Why the change of heart?

I also imagine this still has the crash issue for big hotels. But eh.

Yet you're answering your own questions.
 
Not so spooky...
Loyal Member
Joined
May 22, 2010
Messages
1,017
Reaction score
276
To not need fix.sql find "cmd_dance_name"

Replace
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_dance_name"), 71);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_rave_name"), 72);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_roll_name"), 73);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_control_name"), 74);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_makesay_name"), 75);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_sitdown_name"), 76);
with

this.dictionary_4.Add("dance", 71);
this.dictionary_4.Add("rave", 72);
this.dictionary_4.Add("roll", 73);
this.dictionary_4.Add("control", 74);
this.dictionary_4.Add("makesay", 75);
this.dictionary_4.Add("sitdown", 76);

that also fixed my problem of it not loading past rolls! thanks man
 
Skilled Illusionist
Joined
Jan 23, 2012
Messages
301
Reaction score
164
Is anyone else curious on why Shorty was helping / helped with this?
yOPyzQb - Source Phoenix 3.11.0 [Organized / Fixed Source / Without Backdoors] - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
My last version updated some minutes ago:

I'm not going to continue today, if anyone wants to continue post it here when you're done so others can continue
 
Status
Not open for further replies.
Back
Top