Decompiled source of TheAdminPack v0.0.29

plugins/ValheimQualityOfLife.dll

Decompiled 6 months ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("ValheimCreativeMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ValheimCreativeMod")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("5d0d61ba-f678-4bdb-b8e3-f9c1c17447f5")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.5.2", FrameworkDisplayName = ".NET Framework 4.5.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace ValheimQualityOfLife
{
	[BepInPlugin("com.maxbridgland.ValheimQualityOfLife", "Valheim Quality of Life", "1.1.3")]
	public class Main : BaseUnityPlugin
	{
		public const string pluginGuid = "com.maxbridgland.ValheimQualityOfLife";

		public const string pluginName = "Valheim Quality of Life";

		public const string pluginVersion = "1.1.3";

		public static Harmony harmony;

		public static Menu modInstance;

		public static Logger logger;

		public static ConfigEntry<KeyboardShortcut> showMenuHotkey;

		public static ConfigEntry<KeyboardShortcut> godModeHotkey;

		public static ConfigEntry<KeyboardShortcut> quickHealKey;

		public static ConfigEntry<KeyboardShortcut> debugModeKey;

		public static ConfigEntry<KeyboardShortcut> staminaModeKey;

		public static ConfigEntry<KeyboardShortcut> freeCamKey;

		public static ConfigEntry<KeyboardShortcut> getPlayerNames;

		public static ConfigEntry<KeyboardShortcut> flyMode;

		public static ConfigEntry<KeyboardShortcut> noClip;

		public void Awake()
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_0117: Unknown result type (might be due to invalid IL or missing references)
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			//IL_016d: Unknown result type (might be due to invalid IL or missing references)
			//IL_017d: Unknown result type (might be due to invalid IL or missing references)
			//IL_019b: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a5: Expected O, but got Unknown
			showMenuHotkey = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Show Menu", new KeyboardShortcut((KeyCode)284, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			godModeHotkey = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "God Mode Key", new KeyboardShortcut((KeyCode)291, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			quickHealKey = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Quick Heal Key", new KeyboardShortcut((KeyCode)104, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			debugModeKey = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Debug Mode Key", new KeyboardShortcut((KeyCode)290, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			staminaModeKey = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Unlimited Stamina Key", new KeyboardShortcut((KeyCode)289, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			freeCamKey = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Free Cam Key", new KeyboardShortcut((KeyCode)288, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			getPlayerNames = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Get Player Names", new KeyboardShortcut((KeyCode)110, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			noClip = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "No Clip", new KeyboardShortcut((KeyCode)292, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			flyMode = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Enable Fly Without Debug", new KeyboardShortcut((KeyCode)293, (KeyCode[])(object)new KeyCode[0]), (ConfigDescription)null);
			modInstance = new GameObject().AddComponent<Menu>();
			Object.DontDestroyOnLoad((Object)(object)modInstance);
			harmony = new Harmony("com.maxbridgland.ValheimQualityOfLife");
			harmony.PatchAll(Assembly.GetExecutingAssembly());
		}
	}
	public class Menu : MonoBehaviour
	{
		private Rect MainMenuRect;

		private Rect PlayerMenuRect;

		private Rect SpawnMenuRect;

		private Rect EntityMenuRect;

		private Rect SettingsMenuRect;

		private Rect MiscMenuRect;

		public static bool shouldDisplayMainMenu;

		public static bool shouldDisplayPlayerMenu;

		public static bool shouldDisplaySpawnMenu;

		public static bool shouldDisplayEntityMenu;

		public static bool shouldDisplayMiscMenu;

		public static bool shouldDisplayMenuSettings;

		public static bool enableDebugMode;

		public static bool enableGodMode;

		public static bool enableNoCarryLimit;

		public static bool enableFreecam;

		public static bool enableUnlimitedStamina;

		public static bool noFoodDegrade;

		public static bool enableNoClip;

		public static bool enableFlyMode;

		public static bool enableNoPlacementCost;

		private List<PlayerInfo> players = new List<PlayerInfo>();

		private string customPlayerName;

		private float freecamSmoothness;

		private string currentItem;

		private string level;

		private GUIStyle disabledButton;

		private GUIStyle enabledButton;

		private GUIStyle titleText;

		private GUIStyle yellowTitle;

		private GUIStyle greenTitle;

		private GUIStyle purpleTitle;

		private GUIStyle blueTitle;

		private GUIStyle redTitle;

		private GUIStyle cyanTitle;

		private GUIStyle normalText;

		private GUIStyle normalButton;

		private bool highContrast;

		private int fontSize = 14;

		private float mult = 1f;

		private void Start()
		{
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f6: Unknown result type (might be due to invalid IL or missing references)
			level = "1";
			float num = 200f * mult;
			float num2 = 800f * mult;
			MainMenuRect = new Rect(10f, 150f, num, num2 - 450f);
			PlayerMenuRect = new Rect(num + 25f, 150f, num, num2 - 375f);
			SpawnMenuRect = new Rect(num * 2f + 40f, 150f, num, num2 - 250f);
			EntityMenuRect = new Rect(num * 3f + 55f, 150f, num * 2f, num2 - 75f);
			MiscMenuRect = new Rect(num * 5f + 70f, 150f, num, num2 - 300f);
			SettingsMenuRect = new Rect(num * 6f + 85f, 150f, num, num2 - 600f);
		}

		private void LateUpdate()
		{
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0080: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0121: Unknown result type (might be due to invalid IL or missing references)
			//IL_0126: Unknown result type (might be due to invalid IL or missing references)
			//IL_0162: Unknown result type (might be due to invalid IL or missing references)
			//IL_0167: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0244: Unknown result type (might be due to invalid IL or missing references)
			//IL_0249: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f4: Unknown result type (might be due to invalid IL or missing references)
			KeyboardShortcut value = Main.showMenuHotkey.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				customPlayerName = ((Character)Player.m_localPlayer).m_name;
				shouldDisplayMainMenu = !shouldDisplayMainMenu;
				ShowCursor(shouldDisplayMainMenu);
			}
			value = Main.quickHealKey.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				((Character)Player.m_localPlayer).SetHealth(((Character)Player.m_localPlayer).GetMaxHealth());
				((Character)Player.m_localPlayer).Message((MessageType)1, "<color=\"blue\">Healing Player</color>", 0, (Sprite)null);
			}
			value = Main.godModeHotkey.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				enableGodMode = !enableGodMode;
				Player.m_localPlayer.SetGodMode(enableGodMode);
				((Character)Player.m_localPlayer).Message((MessageType)1, enableGodMode ? "<color=\"green\">Enabled God Mode</color>" : "<color=\"red\">Disabled God Mode</color>", 0, (Sprite)null);
			}
			value = Main.debugModeKey.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				enableDebugMode = !enableDebugMode;
				if (enableDebugMode)
				{
					Player.m_debugMode = true;
				}
				else
				{
					Player.m_debugMode = false;
				}
				((Character)Player.m_localPlayer).Message((MessageType)1, enableDebugMode ? "<color=\"green\">Enabled Debug Mode</color>" : "<color=\"red\">Disabled Debug Mode</color>", 0, (Sprite)null);
			}
			value = Main.staminaModeKey.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				enableUnlimitedStamina = !enableUnlimitedStamina;
				((Character)Player.m_localPlayer).Message((MessageType)1, enableUnlimitedStamina ? "<color=\"green\">Enabled Unlimited Stamina</color>" : "<color=\"red\">Disabled Unlimited Stamina</color>", 0, (Sprite)null);
			}
			value = Main.freeCamKey.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				enableFreecam = !enableFreecam;
				GameCamera.instance.ToggleFreeFly();
				if (enableFreecam)
				{
					freecamSmoothness = GameCamera.instance.GetFreeFlySmoothness();
					((Character)Player.m_localPlayer).Message((MessageType)1, enableFreecam ? "<color=\"green\">Enabled Freefly Camera</color>" : "<color=\"red\">Disabled Freefly Camera</color>", 0, (Sprite)null);
				}
			}
			value = Main.getPlayerNames.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				List<string> list = new List<string>();
				foreach (PlayerInfo player in ZNet.instance.GetPlayerList())
				{
					list.Add(player.m_name);
				}
				((Character)Player.m_localPlayer).Message((MessageType)1, "<color=\"yellow\">" + string.Join("\n", list) + "</color>", 0, (Sprite)null);
			}
			value = Main.noClip.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				enableNoClip = !enableNoClip;
				Player.m_localPlayer.m_debugFly = enableNoClip;
				Collider[] componentsInChildren = ((Component)Player.m_localPlayer).GetComponentsInChildren<Collider>();
				for (int i = 0; i < componentsInChildren.Length; i++)
				{
					componentsInChildren[i].enabled = !enableNoClip;
				}
				((Character)Player.m_localPlayer).Message((MessageType)1, enableGodMode ? "<color=\"green\">Enabled No Clip</color>" : "<color=\"red\">Disabled No Clip</color>", 0, (Sprite)null);
			}
			value = Main.flyMode.Value;
			if (((KeyboardShortcut)(ref value)).IsDown())
			{
				enableFlyMode = !enableFlyMode;
				Player.m_localPlayer.m_debugFly = enableFlyMode;
				((Character)Player.m_localPlayer).Message((MessageType)1, enableGodMode ? "<color=\"green\">Enabled Fly Mode</color>" : "<color=\"red\">Disabled Fly Mode</color>", 0, (Sprite)null);
			}
		}

		private void OnGUI()
		{
			//IL_0037: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0080: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_011c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0115: Unknown result type (might be due to invalid IL or missing references)
			//IL_012d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0139: Unknown result type (might be due to invalid IL or missing references)
			//IL_0148: Expected O, but got Unknown
			//IL_0143: Unknown result type (might be due to invalid IL or missing references)
			//IL_0148: Unknown result type (might be due to invalid IL or missing references)
			//IL_0170: Unknown result type (might be due to invalid IL or missing references)
			//IL_0169: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0181: Unknown result type (might be due to invalid IL or missing references)
			//IL_018d: Unknown result type (might be due to invalid IL or missing references)
			//IL_019c: Expected O, but got Unknown
			//IL_0197: Unknown result type (might be due to invalid IL or missing references)
			//IL_019c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0218: Unknown result type (might be due to invalid IL or missing references)
			//IL_0211: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f0: Expected O, but got Unknown
			//IL_01eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_026c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0265: Unknown result type (might be due to invalid IL or missing references)
			//IL_0229: Unknown result type (might be due to invalid IL or missing references)
			//IL_0235: Unknown result type (might be due to invalid IL or missing references)
			//IL_0244: Expected O, but got Unknown
			//IL_023f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0244: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_027d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0289: Unknown result type (might be due to invalid IL or missing references)
			//IL_0298: Expected O, but got Unknown
			//IL_0293: Unknown result type (might be due to invalid IL or missing references)
			//IL_0298: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_02dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ec: Expected O, but got Unknown
			//IL_02e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ec: Unknown result type (might be due to invalid IL or missing references)
			if (shouldDisplayMainMenu)
			{
				float num = 200f * mult;
				float num2 = 800f * mult;
				MainMenuRect = new Rect(10f, 150f, num, num2 - 450f);
				PlayerMenuRect = new Rect(num + 25f, 150f, num, num2 - 375f);
				SpawnMenuRect = new Rect(num * 2f + 40f, 150f, num, num2 - 250f);
				EntityMenuRect = new Rect(num * 3f + 55f, 150f, num * 2f, num2 - 75f);
				MiscMenuRect = new Rect(num * 5f + 70f, 150f, num, num2 - 300f);
				SettingsMenuRect = new Rect(num * 6f + 85f, 150f, num, num2 - 600f);
				SetGUIStyles();
				if ((Object)(object)Player.m_localPlayer != (Object)null)
				{
					GUI.backgroundColor = (highContrast ? Color.white : Color.black);
					MainMenuRect = GUI.Window(1337, MainMenuRect, new WindowFunction(MainMenu), "Valheim: QoL - Main Menu");
				}
				if ((Object)(object)Player.m_localPlayer != (Object)null && shouldDisplayPlayerMenu)
				{
					GUI.backgroundColor = (highContrast ? Color.white : Color.black);
					PlayerMenuRect = GUI.Window(1338, PlayerMenuRect, new WindowFunction(PlayerMenu), "Valheim: QoL - Player Menu");
				}
				if ((Object)(object)Player.m_localPlayer != (Object)null && shouldDisplaySpawnMenu)
				{
					GUI.backgroundColor = (highContrast ? Color.white : Color.black);
					SpawnMenuRect = GUI.Window(1339, SpawnMenuRect, new WindowFunction(SpawnMenu), "Valheim: QoL - Spawn Menu");
				}
				if ((Object)(object)Player.m_localPlayer != (Object)null && shouldDisplayEntityMenu)
				{
					GUI.backgroundColor = (highContrast ? Color.white : Color.black);
					EntityMenuRect = GUI.Window(1330, EntityMenuRect, new WindowFunction(EntityMenu), "Valheim: QoL - Entity Menu");
				}
				if ((Object)(object)Player.m_localPlayer != (Object)null && shouldDisplayMiscMenu)
				{
					GUI.backgroundColor = (highContrast ? Color.white : Color.black);
					MiscMenuRect = GUI.Window(1331, MiscMenuRect, new WindowFunction(MiscMenu), "Valheim: QoL - Misc. Menu");
				}
				if ((Object)(object)Player.m_localPlayer != (Object)null && shouldDisplayMenuSettings)
				{
					GUI.backgroundColor = (highContrast ? Color.white : Color.black);
					SettingsMenuRect = GUI.Window(1332, SettingsMenuRect, new WindowFunction(SettingsMenu), "Valheim: QoL - Settings");
				}
			}
		}

		private void MainMenu(int windowId)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_0136: Unknown result type (might be due to invalid IL or missing references)
			//IL_013c: Expected O, but got Unknown
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			GUI.DragWindow(new Rect(0f, 0f, 200f * mult, 25f));
			GUILayout.BeginArea(new Rect(10f, 25f, 200f * mult - 20f, 800f * mult - 50f - 450f));
			if (GUILayout.Button("Player Menu", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplayPlayerMenu = !shouldDisplayPlayerMenu;
			}
			if (GUILayout.Button("Spawn Menu", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplaySpawnMenu = !shouldDisplaySpawnMenu;
			}
			if (GUILayout.Button("Entity Menu", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplayEntityMenu = !shouldDisplayEntityMenu;
			}
			if (GUILayout.Button("Misc Menu", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplayMiscMenu = !shouldDisplayMiscMenu;
			}
			if (GUILayout.Button("Settings Menu", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplayMenuSettings = !shouldDisplayMenuSettings;
			}
			GUILayout.Label("", (GUILayoutOption[])(object)new GUILayoutOption[0]);
			GUIStyle val = new GUIStyle(GUI.skin.button);
			val.normal.textColor = Color.cyan;
			val.fontSize = fontSize;
			if (GUILayout.Button("Support Mod Creator", val, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				Process.Start("https://paypal.me/maxbridgland");
			}
			if (GUILayout.Button("Follow Me On Twitter", val, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				Process.Start("https://twitter.com/maxbridgland");
			}
			GUILayout.Label("Discord: macs#0420", normalText, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			GUILayout.EndArea();
		}

		private void PlayerMenu(int windowId)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			GUI.DragWindow(new Rect(0f, 0f, 200f * mult, 25f));
			GUILayout.BeginArea(new Rect(10f, 25f, 200f * mult - 20f, 800f * mult - 50f - 375f));
			if (GUILayout.Button(enableGodMode ? "Disable God Mode" : "Enable God Mode", enableGodMode ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableGodMode = !enableGodMode;
				Player.m_localPlayer.m_godMode = enableGodMode;
			}
			if (GUILayout.Button(enableDebugMode ? "Disable Debug Mode" : "Enable Debug Mode", enableDebugMode ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableDebugMode = !enableDebugMode;
				Player.m_debugMode = enableDebugMode;
			}
			if (GUILayout.Button(enableUnlimitedStamina ? "Disable Unlimited Stamina" : "Enable Unlimited Stamina", enableUnlimitedStamina ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableUnlimitedStamina = !enableUnlimitedStamina;
			}
			if (GUILayout.Button(enableFreecam ? "Disable Freecam" : "Enable Freecam", enableFreecam ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableFreecam = !enableFreecam;
				GameCamera.instance.ToggleFreeFly();
				if (enableFreecam)
				{
					freecamSmoothness = GameCamera.instance.GetFreeFlySmoothness();
				}
			}
			if (enableFreecam)
			{
				GUILayout.Label("Camera Smoothing", normalText, (GUILayoutOption[])(object)new GUILayoutOption[0]);
				freecamSmoothness = GUILayout.HorizontalSlider(freecamSmoothness, 0f, 0.5f, (GUILayoutOption[])(object)new GUILayoutOption[0]);
				if (GUILayout.Button("Update Smoothing", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
				{
					GameCamera.instance.SetFreeFlySmoothness(freecamSmoothness);
				}
			}
			if (GUILayout.Button(enableFlyMode ? "Disable Fly Mode" : "Enable Fly Mode", enableFlyMode ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableFlyMode = !enableFlyMode;
				Player.m_localPlayer.m_debugFly = enableFlyMode;
			}
			if (GUILayout.Button(enableNoClip ? "Disable Noclip" : "Enable Noclip", enableNoClip ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableNoClip = !enableNoClip;
				Player.m_localPlayer.m_debugFly = enableNoClip;
				Collider[] componentsInChildren = ((Component)Player.m_localPlayer).GetComponentsInChildren<Collider>();
				for (int i = 0; i < componentsInChildren.Length; i++)
				{
					componentsInChildren[i].enabled = !enableNoClip;
				}
			}
			if (GUILayout.Button(enableNoPlacementCost ? "Disable No Placement Cost" : "Enable No Placement Cost", enableNoPlacementCost ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableNoPlacementCost = !enableNoPlacementCost;
				Player.m_localPlayer.m_noPlacementCost = enableNoPlacementCost;
			}
			if (GUILayout.Button("Food Doesn't Degrade", noFoodDegrade ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				noFoodDegrade = !noFoodDegrade;
			}
			if (GUILayout.Button("No Carry Limit", enableNoCarryLimit ? enabledButton : disabledButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				enableNoCarryLimit = !enableNoCarryLimit;
			}
			if (GUILayout.Button("Quick Heal", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				((Character)Player.m_localPlayer).SetHealth(((Character)Player.m_localPlayer).GetMaxHealth());
			}
			if (GUILayout.Button("Explore Map", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				Minimap.instance.ExploreAll();
			}
			if (GUILayout.Button("Reset Map", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				Minimap.instance.Reset();
			}
			GUILayout.Label("", (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Close", (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplayPlayerMenu = !shouldDisplayPlayerMenu;
			}
			GUILayout.EndArea();
		}

		private void SpawnMenu(int windowId)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00db: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0150: Unknown result type (might be due to invalid IL or missing references)
			//IL_015a: Unknown result type (might be due to invalid IL or missing references)
			//IL_015f: Unknown result type (might be due to invalid IL or missing references)
			//IL_016b: Unknown result type (might be due to invalid IL or missing references)
			//IL_017a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0184: Unknown result type (might be due to invalid IL or missing references)
			//IL_0189: Unknown result type (might be due to invalid IL or missing references)
			//IL_018e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0193: Unknown result type (might be due to invalid IL or missing references)
			//IL_0198: Unknown result type (might be due to invalid IL or missing references)
			//IL_0199: Unknown result type (might be due to invalid IL or missing references)
			//IL_019e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0201: Unknown result type (might be due to invalid IL or missing references)
			//IL_020b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0210: Unknown result type (might be due to invalid IL or missing references)
			//IL_021e: Unknown result type (might be due to invalid IL or missing references)
			//IL_022d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0237: Unknown result type (might be due to invalid IL or missing references)
			//IL_023c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0241: Unknown result type (might be due to invalid IL or missing references)
			//IL_0246: Unknown result type (might be due to invalid IL or missing references)
			//IL_024b: Unknown result type (might be due to invalid IL or missing references)
			//IL_024d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0252: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_02fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0302: Unknown result type (might be due to invalid IL or missing references)
			//IL_0304: Unknown result type (might be due to invalid IL or missing references)
			//IL_0309: Unknown result type (might be due to invalid IL or missing references)
			//IL_0384: Unknown result type (might be due to invalid IL or missing references)
			//IL_038e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0393: Unknown result type (might be due to invalid IL or missing references)
			//IL_03a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_03ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_03bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_03ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_042b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0435: Unknown result type (might be due to invalid IL or missing references)
			//IL_043a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0448: Unknown result type (might be due to invalid IL or missing references)
			//IL_0457: Unknown result type (might be due to invalid IL or missing references)
			//IL_0461: Unknown result type (might be due to invalid IL or missing references)
			//IL_0466: Unknown result type (might be due to invalid IL or missing references)
			//IL_046b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0470: Unknown result type (might be due to invalid IL or missing references)
			//IL_0475: Unknown result type (might be due to invalid IL or missing references)
			//IL_0477: Unknown result type (might be due to invalid IL or missing references)
			//IL_047c: Unknown result type (might be due to invalid IL or missing references)
			//IL_04d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_04dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_04e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_04fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0508: Unknown result type (might be due to invalid IL or missing references)
			//IL_050d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0512: Unknown result type (might be due to invalid IL or missing references)
			//IL_0517: Unknown result type (might be due to invalid IL or missing references)
			//IL_051c: Unknown result type (might be due to invalid IL or missing references)
			//IL_051e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0523: Unknown result type (might be due to invalid IL or missing references)
			//IL_0579: Unknown result type (might be due to invalid IL or missing references)
			//IL_0583: Unknown result type (might be due to invalid IL or missing references)
			//IL_0588: Unknown result type (might be due to invalid IL or missing references)
			//IL_0596: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_05af: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_05be: Unknown result type (might be due to invalid IL or missing references)
			//IL_05c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_05c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_0620: Unknown result type (might be due to invalid IL or missing references)
			//IL_062a: Unknown result type (might be due to invalid IL or missing references)
			//IL_062f: Unknown result type (might be due to invalid IL or missing references)
			//IL_063d: Unknown result type (might be due to invalid IL or missing references)
			//IL_064c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0656: Unknown result type (might be due to invalid IL or missing references)
			//IL_065b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0660: Unknown result type (might be due to invalid IL or missing references)
			//IL_0665: Unknown result type (might be due to invalid IL or missing references)
			//IL_066a: Unknown result type (might be due to invalid IL or missing references)
			//IL_066c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0671: Unknown result type (might be due to invalid IL or missing references)
			//IL_06c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_06fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0702: Unknown result type (might be due to invalid IL or missing references)
			//IL_0707: Unknown result type (might be due to invalid IL or missing references)
			//IL_070c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0711: Unknown result type (might be due to invalid IL or missing references)
			//IL_0713: Unknown result type (might be due to invalid IL or missing references)
			//IL_0718: Unknown result type (might be due to invalid IL or missing references)
			//IL_076e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0778: Unknown result type (might be due to invalid IL or missing references)
			//IL_077d: Unknown result type (might be due to invalid IL or missing references)
			//IL_078b: Unknown result type (might be due to invalid IL or missing references)
			//IL_079a: Unknown result type (might be due to invalid IL or missing references)
			//IL_07a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_07a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_07bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0815: Unknown result type (might be due to invalid IL or missing references)
			//IL_081f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0824: Unknown result type (might be due to invalid IL or missing references)
			//IL_0832: Unknown result type (might be due to invalid IL or missing references)
			//IL_0841: Unknown result type (might be due to invalid IL or missing references)
			//IL_084b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0850: Unknown result type (might be due to invalid IL or missing references)
			//IL_0855: Unknown result type (might be due to invalid IL or missing references)
			//IL_085a: Unknown result type (might be due to invalid IL or missing references)
			//IL_085f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0861: Unknown result type (might be due to invalid IL or missing references)
			//IL_0866: Unknown result type (might be due to invalid IL or missing references)
			//IL_08bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_08c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_08cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_08d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_08e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_08f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_08f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_08fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0901: Unknown result type (might be due to invalid IL or missing references)
			//IL_0906: Unknown result type (might be due to invalid IL or missing references)
			//IL_0908: Unknown result type (might be due to invalid IL or missing references)
			//IL_090d: Unknown result type (might be due to invalid IL or missing references)
			GUI.DragWindow(new Rect(0f, 0f, 200f * mult, 25f));
			GUILayout.BeginArea(new Rect(10f, 25f, 200f * mult - 20f, 800f * mult - 50f - 250f));
			GUILayout.Label("Item Name", titleText, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			currentItem = GUILayout.TextField(currentItem, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Spawn 1 of Named Item", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab = ZNetScene.instance.GetPrefab(currentItem);
				if (Object.op_Implicit((Object)(object)prefab))
				{
					Object.Instantiate<GameObject>(prefab, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity);
				}
				else
				{
					((Character)Player.m_localPlayer).Message((MessageType)2, "<color=\"red\">That is not a valid name!</color>", 0, (Sprite)null);
				}
			}
			if (GUILayout.Button("Spawn 10 of Named Item", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab2 = ZNetScene.instance.GetPrefab(currentItem);
				if (Object.op_Implicit((Object)(object)prefab2))
				{
					for (int i = 0; i < 10; i++)
					{
						Vector3 val = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab2, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val, Quaternion.identity);
					}
				}
				else
				{
					((Character)Player.m_localPlayer).Message((MessageType)2, "<color=\"red\">That is not a valid name!</color>", 0, (Sprite)null);
				}
			}
			if (GUILayout.Button("Spawn 25 of Named Item", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab3 = ZNetScene.instance.GetPrefab(currentItem);
				if (Object.op_Implicit((Object)(object)prefab3))
				{
					for (int j = 0; j < 25; j++)
					{
						Vector3 val2 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab3, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val2, Quaternion.identity);
					}
				}
				else
				{
					((Character)Player.m_localPlayer).Message((MessageType)2, "<color=\"red\">That is not a valid name!</color>", 0, (Sprite)null);
				}
			}
			if (GUILayout.Button("Spawn 50 of Named Item", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab4 = ZNetScene.instance.GetPrefab(currentItem);
				if (Object.op_Implicit((Object)(object)prefab4))
				{
					for (int k = 0; k < 50; k++)
					{
						Vector3 val3 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab4, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val3, Quaternion.identity);
					}
				}
				else
				{
					((Character)Player.m_localPlayer).Message((MessageType)2, "<color=\"red\">That is not a valid name!</color>", 0, (Sprite)null);
				}
			}
			GUILayout.Label("Quick Spawn Materials:", yellowTitle, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Spawn 50 Wood", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab5 = ZNetScene.instance.GetPrefab("Wood");
				if (Object.op_Implicit((Object)(object)prefab5))
				{
					for (int l = 0; l < 50; l++)
					{
						Vector3 val4 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab5, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val4, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 50 Stone", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab6 = ZNetScene.instance.GetPrefab("Stone");
				if (Object.op_Implicit((Object)(object)prefab6))
				{
					for (int m = 0; m < 50; m++)
					{
						Vector3 val5 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab6, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val5, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 30 Copper", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab7 = ZNetScene.instance.GetPrefab("Copper");
				if (Object.op_Implicit((Object)(object)prefab7))
				{
					for (int n = 0; n < 30; n++)
					{
						Vector3 val6 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab7, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val6, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 30 Bronze", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab8 = ZNetScene.instance.GetPrefab("Bronze");
				if (Object.op_Implicit((Object)(object)prefab8))
				{
					for (int num = 0; num < 30; num++)
					{
						Vector3 val7 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab8, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val7, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 30 Iron", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab9 = ZNetScene.instance.GetPrefab("Iron");
				if (Object.op_Implicit((Object)(object)prefab9))
				{
					for (int num2 = 0; num2 < 30; num2++)
					{
						Vector3 val8 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab9, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val8, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 30 Tin", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab10 = ZNetScene.instance.GetPrefab("Tin");
				if (Object.op_Implicit((Object)(object)prefab10))
				{
					for (int num3 = 0; num3 < 30; num3++)
					{
						Vector3 val9 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab10, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val9, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 50 Obsidian", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab11 = ZNetScene.instance.GetPrefab("Obsidian");
				if (Object.op_Implicit((Object)(object)prefab11))
				{
					for (int num4 = 0; num4 < 50; num4++)
					{
						Vector3 val10 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab11, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val10, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 30 Silver", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab12 = ZNetScene.instance.GetPrefab("Silver");
				if (Object.op_Implicit((Object)(object)prefab12))
				{
					for (int num5 = 0; num5 < 30; num5++)
					{
						Vector3 val11 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab12, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val11, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			if (GUILayout.Button("Spawn 30 Blackmetal", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab13 = ZNetScene.instance.GetPrefab("BlackMetal");
				if (Object.op_Implicit((Object)(object)prefab13))
				{
					for (int num6 = 0; num6 < 30; num6++)
					{
						Vector3 val12 = Random.insideUnitSphere * 0.5f;
						Object.Instantiate<GameObject>(prefab13, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up + val12, Quaternion.identity).GetComponent<Character>();
					}
				}
			}
			GUILayout.Label("", (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Close", (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				shouldDisplaySpawnMenu = !shouldDisplaySpawnMenu;
			}
			GUILayout.EndArea();
		}

		private void EntityMenu(int windowId)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_0063: Unknown result type (might be due to invalid IL or missing references)
			//IL_0069: Expected O, but got Unknown
			//IL_0145: Unknown result type (might be due to invalid IL or missing references)
			//IL_0154: Unknown result type (might be due to invalid IL or missing references)
			//IL_015e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0163: Unknown result type (might be due to invalid IL or missing references)
			//IL_0168: Unknown result type (might be due to invalid IL or missing references)
			//IL_016d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0172: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0201: Unknown result type (might be due to invalid IL or missing references)
			//IL_0206: Unknown result type (might be due to invalid IL or missing references)
			//IL_0270: Unknown result type (might be due to invalid IL or missing references)
			//IL_027f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0289: Unknown result type (might be due to invalid IL or missing references)
			//IL_028e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0293: Unknown result type (might be due to invalid IL or missing references)
			//IL_0298: Unknown result type (might be due to invalid IL or missing references)
			//IL_029d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0307: Unknown result type (might be due to invalid IL or missing references)
			//IL_0316: Unknown result type (might be due to invalid IL or missing references)
			//IL_0320: Unknown result type (might be due to invalid IL or missing references)
			//IL_0325: Unknown result type (might be due to invalid IL or missing references)
			//IL_032a: Unknown result type (might be due to invalid IL or missing references)
			//IL_032f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0334: Unknown result type (might be due to invalid IL or missing references)
			//IL_03af: Unknown result type (might be due to invalid IL or missing references)
			//IL_03be: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0446: Unknown result type (might be due to invalid IL or missing references)
			//IL_0455: Unknown result type (might be due to invalid IL or missing references)
			//IL_045f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0464: Unknown result type (might be due to invalid IL or missing references)
			//IL_0469: Unknown result type (might be due to invalid IL or missing references)
			//IL_046e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0473: Unknown result type (might be due to invalid IL or missing references)
			//IL_04dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_04fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0500: Unknown result type (might be due to invalid IL or missing references)
			//IL_0505: Unknown result type (might be due to invalid IL or missing references)
			//IL_050a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0574: Unknown result type (might be due to invalid IL or missing references)
			//IL_0583: Unknown result type (might be due to invalid IL or missing references)
			//IL_058d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0592: Unknown result type (might be due to invalid IL or missing references)
			//IL_0597: Unknown result type (might be due to invalid IL or missing references)
			//IL_059c: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_061c: Unknown result type (might be due to invalid IL or missing references)
			//IL_062b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0635: Unknown result type (might be due to invalid IL or missing references)
			//IL_063a: Unknown result type (might be due to invalid IL or missing references)
			//IL_063f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0644: Unknown result type (might be due to invalid IL or missing references)
			//IL_0649: Unknown result type (might be due to invalid IL or missing references)
			//IL_06b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_06c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_06cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_06db: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_074a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0759: Unknown result type (might be due to invalid IL or missing references)
			//IL_0763: Unknown result type (might be due to invalid IL or missing references)
			//IL_0768: Unknown result type (might be due to invalid IL or missing references)
			//IL_076d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0772: Unknown result type (might be due to invalid IL or missing references)
			//IL_0777: Unknown result type (might be due to invalid IL or missing references)
			//IL_07e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_07f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_07fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_07ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0804: Unknown result type (might be due to invalid IL or missing references)
			//IL_0809: Unknown result type (might be due to invalid IL or missing references)
			//IL_080e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0889: Unknown result type (might be due to invalid IL or missing references)
			//IL_0898: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_08ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_08b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_08b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0920: Unknown result type (might be due to invalid IL or missing references)
			//IL_092f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0939: Unknown result type (might be due to invalid IL or missing references)
			//IL_093e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0943: Unknown result type (might be due to invalid IL or missing references)
			//IL_0948: Unknown result type (might be due to invalid IL or missing references)
			//IL_094d: Unknown result type (might be due to invalid IL or missing references)
			//IL_09b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_09c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_09d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_09da: Unknown result type (might be due to invalid IL or missing references)
			//IL_09df: Unknown result type (might be due to invalid IL or missing references)
			//IL_09e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a4e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a5d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a67: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a6c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a71: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a76: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a7b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0af6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b05: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b0f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b14: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b19: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b1e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b23: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b9c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ba6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bab: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bb0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bb5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bba: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c24: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c33: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c3d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c42: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c47: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c4c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c51: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cbb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cca: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cd4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cd9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cde: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ce3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ce8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d63: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d72: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d7c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d81: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d86: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d8b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d90: Unknown result type (might be due to invalid IL or missing references)
			//IL_0dfa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e09: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e13: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e18: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e22: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e27: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e91: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ea0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eaa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eaf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eb4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eb9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ebe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f28: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f37: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f41: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f46: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f4b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f50: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f55: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fdf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fe9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fee: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ff3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ff8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ffd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1067: Unknown result type (might be due to invalid IL or missing references)
			//IL_1076: Unknown result type (might be due to invalid IL or missing references)
			//IL_1080: Unknown result type (might be due to invalid IL or missing references)
			//IL_1085: Unknown result type (might be due to invalid IL or missing references)
			//IL_108a: Unknown result type (might be due to invalid IL or missing references)
			//IL_108f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1094: Unknown result type (might be due to invalid IL or missing references)
			//IL_10fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_110d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1117: Unknown result type (might be due to invalid IL or missing references)
			//IL_111c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1121: Unknown result type (might be due to invalid IL or missing references)
			//IL_1126: Unknown result type (might be due to invalid IL or missing references)
			//IL_112b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1195: Unknown result type (might be due to invalid IL or missing references)
			//IL_11a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_11ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_11b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_11b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_11bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_11c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_123d: Unknown result type (might be due to invalid IL or missing references)
			//IL_124c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1256: Unknown result type (might be due to invalid IL or missing references)
			//IL_125b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1260: Unknown result type (might be due to invalid IL or missing references)
			//IL_1265: Unknown result type (might be due to invalid IL or missing references)
			//IL_126a: Unknown result type (might be due to invalid IL or missing references)
			//IL_12d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_12e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_12ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_12fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_1301: Unknown result type (might be due to invalid IL or missing references)
			//IL_136b: Unknown result type (might be due to invalid IL or missing references)
			//IL_137a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1384: Unknown result type (might be due to invalid IL or missing references)
			//IL_1389: Unknown result type (might be due to invalid IL or missing references)
			//IL_138e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1393: Unknown result type (might be due to invalid IL or missing references)
			//IL_1398: Unknown result type (might be due to invalid IL or missing references)
			//IL_1402: Unknown result type (might be due to invalid IL or missing references)
			//IL_1411: Unknown result type (might be due to invalid IL or missing references)
			//IL_141b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1420: Unknown result type (might be due to invalid IL or missing references)
			//IL_1425: Unknown result type (might be due to invalid IL or missing references)
			//IL_142a: Unknown result type (might be due to invalid IL or missing references)
			//IL_142f: Unknown result type (might be due to invalid IL or missing references)
			//IL_14aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_14b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_14c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_14c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_14cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_14d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_14d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_1541: Unknown result type (might be due to invalid IL or missing references)
			//IL_1550: Unknown result type (might be due to invalid IL or missing references)
			//IL_155a: Unknown result type (might be due to invalid IL or missing references)
			//IL_155f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1564: Unknown result type (might be due to invalid IL or missing references)
			//IL_1569: Unknown result type (might be due to invalid IL or missing references)
			//IL_156e: Unknown result type (might be due to invalid IL or missing references)
			//IL_15d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_15e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_15f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_15f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_15fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1600: Unknown result type (might be due to invalid IL or missing references)
			//IL_1605: Unknown result type (might be due to invalid IL or missing references)
			//IL_166f: Unknown result type (might be due to invalid IL or missing references)
			//IL_167e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1688: Unknown result type (might be due to invalid IL or missing references)
			//IL_168d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1692: Unknown result type (might be due to invalid IL or missing references)
			//IL_1697: Unknown result type (might be due to invalid IL or missing references)
			//IL_169c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1724: Unknown result type (might be due to invalid IL or missing references)
			//IL_1733: Unknown result type (might be due to invalid IL or missing references)
			//IL_173d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1742: Unknown result type (might be due to invalid IL or missing references)
			//IL_1747: Unknown result type (might be due to invalid IL or missing references)
			//IL_174c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1751: Unknown result type (might be due to invalid IL or missing references)
			//IL_17c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_17d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_17df: Unknown result type (might be due to invalid IL or missing references)
			//IL_17e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_17e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_17ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_17f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_1868: Unknown result type (might be due to invalid IL or missing references)
			//IL_1877: Unknown result type (might be due to invalid IL or missing references)
			//IL_1881: Unknown result type (might be due to invalid IL or missing references)
			//IL_1886: Unknown result type (might be due to invalid IL or missing references)
			//IL_188b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1890: Unknown result type (might be due to invalid IL or missing references)
			//IL_1895: Unknown result type (might be due to invalid IL or missing references)
			//IL_1940: Unknown result type (might be due to invalid IL or missing references)
			//IL_194a: Unknown result type (might be due to invalid IL or missing references)
			//IL_194f: Unknown result type (might be due to invalid IL or missing references)
			//IL_195d: Unknown result type (might be due to invalid IL or missing references)
			//IL_196c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1976: Unknown result type (might be due to invalid IL or missing references)
			//IL_197b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1980: Unknown result type (might be due to invalid IL or missing references)
			//IL_1985: Unknown result type (might be due to invalid IL or missing references)
			//IL_198a: Unknown result type (might be due to invalid IL or missing references)
			//IL_198c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1991: Unknown result type (might be due to invalid IL or missing references)
			//IL_19a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_19b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_19c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_19c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_19cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_19d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_19d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_19d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_19dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_19f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a02: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a11: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a16: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a1b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a20: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a22: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a27: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a3e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a4d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a57: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a5c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a61: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a66: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a6b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a6d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1a72: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bdb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bea: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bf4: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bf9: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bfe: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ad1: Unknown result type (might be due to invalid IL or missing references)
			//IL_1adb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ae0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1aee: Unknown result type (might be due to invalid IL or missing references)
			//IL_1afd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b07: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b11: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b16: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b1b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b22: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b39: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b48: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b52: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b57: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b5c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b61: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b66: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b68: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b6d: Unknown result type (might be due to invalid IL or missing references)
			GUI.DragWindow(new Rect(0f, 0f, 400f * mult, 25f));
			GUILayout.BeginArea(new Rect(10f, 25f, 400f * mult - 20f, 800f * mult - 50f - 75f));
			GUIStyle val = new GUIStyle();
			val.fixedWidth = 380f * mult;
			GUILayout.Label("Level To Spawn", titleText, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			level = GUILayout.TextField(level, (GUILayoutOption[])(object)new GUILayoutOption[0]).ToLower();
			for (char c = 'a'; c <= 'z'; c = (char)(c + 1))
			{
				if (level.Contains(c.ToString()))
				{
					level.Replace(c.ToString(), "");
				}
			}
			GUILayout.Label("Wild/Enemy:", redTitle, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Blob", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab = ZNetScene.instance.GetPrefab("Blob");
				if (Object.op_Implicit((Object)(object)prefab))
				{
					Character component = Object.Instantiate<GameObject>(prefab, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component))
					{
						component.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Elite Blob", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab2 = ZNetScene.instance.GetPrefab("BlobElite");
				if (Object.op_Implicit((Object)(object)prefab2))
				{
					Character component2 = Object.Instantiate<GameObject>(prefab2, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component2))
					{
						component2.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Boar", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab3 = ZNetScene.instance.GetPrefab("Boar");
				if (Object.op_Implicit((Object)(object)prefab3))
				{
					Character component3 = Object.Instantiate<GameObject>(prefab3, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component3))
					{
						component3.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Crow", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab4 = ZNetScene.instance.GetPrefab("Crow");
				if (Object.op_Implicit((Object)(object)prefab4))
				{
					Character component4 = Object.Instantiate<GameObject>(prefab4, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component4))
					{
						component4.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Deathsquito", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab5 = ZNetScene.instance.GetPrefab("Deathsquito");
				if (Object.op_Implicit((Object)(object)prefab5))
				{
					Character component5 = Object.Instantiate<GameObject>(prefab5, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component5))
					{
						component5.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Deer", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab6 = ZNetScene.instance.GetPrefab("Deer");
				if (Object.op_Implicit((Object)(object)prefab6))
				{
					Character component6 = Object.Instantiate<GameObject>(prefab6, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component6))
					{
						component6.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Deathsquito", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab7 = ZNetScene.instance.GetPrefab("Deathsquito");
				if (Object.op_Implicit((Object)(object)prefab7))
				{
					Character component7 = Object.Instantiate<GameObject>(prefab7, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component7))
					{
						component7.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Deer", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab8 = ZNetScene.instance.GetPrefab("Deer");
				if (Object.op_Implicit((Object)(object)prefab8))
				{
					Character component8 = Object.Instantiate<GameObject>(prefab8, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component8))
					{
						component8.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Draugr", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab9 = ZNetScene.instance.GetPrefab("Draugr");
				if (Object.op_Implicit((Object)(object)prefab9))
				{
					Character component9 = Object.Instantiate<GameObject>(prefab9, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component9))
					{
						component9.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Draugr Elite", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab10 = ZNetScene.instance.GetPrefab("Draugr_Elite");
				if (Object.op_Implicit((Object)(object)prefab10))
				{
					Character component10 = Object.Instantiate<GameObject>(prefab10, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component10))
					{
						component10.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Draugr Ranged", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab11 = ZNetScene.instance.GetPrefab("Draugr_Ranged");
				if (Object.op_Implicit((Object)(object)prefab11))
				{
					Character component11 = Object.Instantiate<GameObject>(prefab11, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component11))
					{
						component11.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Fenring", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab12 = ZNetScene.instance.GetPrefab("Fenring");
				if (Object.op_Implicit((Object)(object)prefab12))
				{
					Character component12 = Object.Instantiate<GameObject>(prefab12, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component12))
					{
						component12.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Ghost", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab13 = ZNetScene.instance.GetPrefab("Ghost");
				if (Object.op_Implicit((Object)(object)prefab13))
				{
					Character component13 = Object.Instantiate<GameObject>(prefab13, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component13))
					{
						component13.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Goblin", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab14 = ZNetScene.instance.GetPrefab("Goblin");
				if (Object.op_Implicit((Object)(object)prefab14))
				{
					Character component14 = Object.Instantiate<GameObject>(prefab14, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component14))
					{
						component14.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("G. Shaman", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab15 = ZNetScene.instance.GetPrefab("GoblinShaman");
				if (Object.op_Implicit((Object)(object)prefab15))
				{
					Character component15 = Object.Instantiate<GameObject>(prefab15, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component15))
					{
						component15.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("G. Brute", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab16 = ZNetScene.instance.GetPrefab("GoblinBrute");
				if (Object.op_Implicit((Object)(object)prefab16))
				{
					Character component16 = Object.Instantiate<GameObject>(prefab16, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component16))
					{
						component16.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Greydwarf", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab17 = ZNetScene.instance.GetPrefab("Greydwarf");
				if (Object.op_Implicit((Object)(object)prefab17))
				{
					Character component17 = Object.Instantiate<GameObject>(prefab17, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component17))
					{
						component17.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Greydwarf E.", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab18 = ZNetScene.instance.GetPrefab("Greydwarf_Elite");
				if (Object.op_Implicit((Object)(object)prefab18))
				{
					Character component18 = Object.Instantiate<GameObject>(prefab18, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component18))
					{
						component18.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Greydwarf R.", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab19 = ZNetScene.instance.GetPrefab("GreydwarfRoot");
				if (Object.op_Implicit((Object)(object)prefab19))
				{
					Character component19 = Object.Instantiate<GameObject>(prefab19, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component19))
					{
						component19.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Greydwarf S.", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab20 = ZNetScene.instance.GetPrefab("GreydwarfShaman");
				if (Object.op_Implicit((Object)(object)prefab20))
				{
					Character component20 = Object.Instantiate<GameObject>(prefab20, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component20))
					{
						component20.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Greyling", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab21 = ZNetScene.instance.GetPrefab("Greyling");
				if (Object.op_Implicit((Object)(object)prefab21))
				{
					Character component21 = Object.Instantiate<GameObject>(prefab21, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component21))
					{
						component21.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Leech", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab22 = ZNetScene.instance.GetPrefab("Leech");
				if (Object.op_Implicit((Object)(object)prefab22))
				{
					Character component22 = Object.Instantiate<GameObject>(prefab22, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component22))
					{
						component22.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Lox", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab23 = ZNetScene.instance.GetPrefab("Lox");
				if (Object.op_Implicit((Object)(object)prefab23))
				{
					Character component23 = Object.Instantiate<GameObject>(prefab23, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component23))
					{
						component23.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Neck", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab24 = ZNetScene.instance.GetPrefab("Neck");
				if (Object.op_Implicit((Object)(object)prefab24))
				{
					Character component24 = Object.Instantiate<GameObject>(prefab24, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component24))
					{
						component24.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Seagull", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab25 = ZNetScene.instance.GetPrefab("Seagal");
				if (Object.op_Implicit((Object)(object)prefab25))
				{
					Character component25 = Object.Instantiate<GameObject>(prefab25, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component25))
					{
						component25.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Serpent", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab26 = ZNetScene.instance.GetPrefab("Serpent");
				if (Object.op_Implicit((Object)(object)prefab26))
				{
					Character component26 = Object.Instantiate<GameObject>(prefab26, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component26))
					{
						component26.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Skeleton", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab27 = ZNetScene.instance.GetPrefab("Skeleton");
				if (Object.op_Implicit((Object)(object)prefab27))
				{
					Character component27 = Object.Instantiate<GameObject>(prefab27, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component27))
					{
						component27.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Poison Skele", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab28 = ZNetScene.instance.GetPrefab("Skeleton_Poison");
				if (Object.op_Implicit((Object)(object)prefab28))
				{
					Character component28 = Object.Instantiate<GameObject>(prefab28, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component28))
					{
						component28.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Stone Golem", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab29 = ZNetScene.instance.GetPrefab("StoneGolem");
				if (Object.op_Implicit((Object)(object)prefab29))
				{
					Character component29 = Object.Instantiate<GameObject>(prefab29, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component29))
					{
						component29.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Surtling", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab30 = ZNetScene.instance.GetPrefab("Surtling");
				if (Object.op_Implicit((Object)(object)prefab30))
				{
					Character component30 = Object.Instantiate<GameObject>(prefab30, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component30))
					{
						component30.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Troll", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab31 = ZNetScene.instance.GetPrefab("Troll");
				if (Object.op_Implicit((Object)(object)prefab31))
				{
					Character component31 = Object.Instantiate<GameObject>(prefab31, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component31))
					{
						component31.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Valkyrie", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab32 = ZNetScene.instance.GetPrefab("Valkyrie");
				if (Object.op_Implicit((Object)(object)prefab32))
				{
					Character component32 = Object.Instantiate<GameObject>(prefab32, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component32))
					{
						component32.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(val, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Wolf", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab33 = ZNetScene.instance.GetPrefab("Wolf");
				if (Object.op_Implicit((Object)(object)prefab33))
				{
					Character component33 = Object.Instantiate<GameObject>(prefab33, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component33))
					{
						component33.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Wraith", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab34 = ZNetScene.instance.GetPrefab("Wraith");
				if (Object.op_Implicit((Object)(object)prefab34))
				{
					Character component34 = Object.Instantiate<GameObject>(prefab34, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component34))
					{
						component34.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Cub", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab35 = ZNetScene.instance.GetPrefab("Wolf_cub");
				if (Object.op_Implicit((Object)(object)prefab35))
				{
					Character component35 = Object.Instantiate<GameObject>(prefab35, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component35))
					{
						component35.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Piggy", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab36 = ZNetScene.instance.GetPrefab("Boar_piggy");
				if (Object.op_Implicit((Object)(object)prefab36))
				{
					Character component36 = Object.Instantiate<GameObject>(prefab36, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component36))
					{
						component36.SetLevel(int.Parse(level));
					}
				}
			}
			GUILayout.EndHorizontal();
			GUILayout.Label("Tamed Animals:", greenTitle, (GUILayoutOption[])(object)new GUILayoutOption[0]);
			if (GUILayout.Button("Spawn Tamed Boar", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab37 = ZNetScene.instance.GetPrefab("Boar");
				if (Object.op_Implicit((Object)(object)prefab37))
				{
					Character component37 = Object.Instantiate<GameObject>(prefab37, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component37))
					{
						component37.SetTamed(true);
						component37.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Spawn Tamed Wolf", normalButton, (GUILayoutOption[])(object)new GUILayoutOption[0]))
			{
				GameObject prefab38 = ZNetScene.instance.GetPrefab("Wolf");
				if (Object.op_Implicit((Object)(object)prefab38))
				{
					Character component38 = Object.Instantiate<GameObject>(prefab38, ((Component)Player.m_localPlayer).transform.position + ((Component)Player.m_localPlayer).transform.forward * 2f + Vector3.up, Quaternion.identity).GetComponent<Character>();
					if (Object.op_Implicit((Object)(object)component38))
					{
						component38.SetTamed(true);
						component38.SetLevel(int.Parse(level));
					}
				}
			}
			if (GUILayout.Button("Spa