arkadaşlar runuo 2.0 kurdum gm olarak gırdım world uzerındekı calısmalarımı bıtırdım sımdı player olarak gırıp bakmak ıstıyorum ama bısı anlayamadım iplimier.cs uzerınde oynamalar yaptım bozuldu sımdılık eskı halıne getırdım ben sonsuz yapmak ıstıyorum lımıtı yardımcı olurmusunuz ?
Master
59.2997
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using Server;
using Server.Network;

namespace Server.Misc
{
	public class IPLimiter
	{
		public static bool Enabled = true;
		public static bool SocketBlock = true; // true to block at connection, false to block at login request

		public const int MaxAddresses = 10;
		
		public static IPAddress[] Exemptions = new IPAddress[]	//For hosting services where there are cases where IPs can be proxied
		{
			//IPAddress.Parse( "127.0.0.1" ),
		};

		public static bool IsExempt( IPAddress ip )
		{
			for ( int i = 0; i < Exemptions.Length; i++ )
			{
				if ( ip.Equals( Exemptions[i] ) )
					return true;
			}

			return false;
		}

		public static bool Verify( IPAddress ourAddress )
		{
			if ( !Enabled || IsExempt( ourAddress ) )
				return true;

			List<NetState> netStates = NetState.Instances;

			int count = 0;

			for ( int i = 0; i < netStates.Count; ++i )
			{
				NetState compState = (NetState)netStates[i];

				if ( ourAddress.Equals( compState.Address ) )
				{
					++count;

					if ( count > MaxAddresses )
						return false;
				}
			}

			return true;
		}
	}
}

Buradaki public const int MaxAddresses = 10; 10 sayısını düzeltmen gerekli sanırım.

Hem bildiğim kadarıyla RunUO da free account yani istediğin hesapla girebiliyordun.

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.