المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : مشكله الوحوش في سورس ماتريكس


AliNasser
2020-02-14, 01:30 PM
مشكله ان الوحوش البتظلع في الديتي لاند بتطلعش وبيجيلي بدالها ايرور في القنصل ده

at ConquerVirusX.Database.MonsterSpawn.SpawnSnowBansh ee() in C:\Users\alinaser\Desktop\Source\MonsterSpawn.cs:l ine 28
at ConquerVirusX.World.WorldTournaments(Int32 time) in C:\Users\alinaser\Desktop\Source\World.cs:line 1695
at Class4.vmethod_0()
at System.Threading.StaticPool.method_2()
System.NullReferenceException: Object reference not set to an instance of an object.

دا الكود بتاعها في monster spawn

public static void SpawnSnowBanshee()
{
Kernel.SpawnBanshee = true;
LastSnowBanshee = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(4171, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 502, 240);
}

في كلاس الورلد

#region SnowBanshee
if (Copra_Times.Start.SnowBanshee && Kernel.SpawnBanshee == false)
{
MonsterSpawn.SpawnSnowBanshee();
foreach (var client in Program.Values)
{
client.MessageBox("The SnowBanshee appeared in Deityland. Would you like to Defeat it?",
p => { p.Entity.Teleport(10250, 1010, 1280); }, null);
}
Kernel.SendWorldMessage(new Message("The Snow Banshee appeared in Deityland Defeat it!", Color.White, Message.System));
}
#endregion


انا جربت اغير مكانها للدراجون ايلنتد واشتغلت عادي ..

بس انا عاوز اسبها مكانها في المابه الجديده

AliNasser
2020-02-15, 03:45 AM
ايه يا جماعه ؟؟

محمودمحمدسالم
2020-02-15, 06:08 AM
ايه يا جماعه ؟؟

غير MonsterSpawn
بي namespace ConquerVirusX.Database
{
using Game;
using Client;
using System;
using System.Linq;
using System.Drawing;
using Network.GamePackets;

public class MonsterSpawn
{
public static ushort nemesisX = 0, nemesisY = 0;
public static Time32 LastDragonWraith, LastQueenofEvil, LastNetherTyrant, LastBloodyBanshee, LastChillingSpook, LastThrillingSpook, LastSnowBanshee, LastNemesisTyrant, GoldenOctopustime;
public static void SpawnThrillingSpook()
{
Kernel.ThrillingSpook = true;
LastThrillingSpook = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(4172, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 1020, 697);
}
public static void ChillingSpook()
{
Kernel.ChillingSpook = true;
LastChillingSpook = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(3977, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 1020, 697);
}
public static void SpawnSnowBanshee()
{
Kernel.SpawnBanshee = true;
LastSnowBanshee = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(4171, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 496, 189);
}
public static void SpawnNemesisTyrant()
{
Kernel.SpawnNemesis = true;
LastNemesisTyrant = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(4220, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 190, 450);
}
public static void NetherTyrant()
{
Kernel.NetherTyrant = true;
LastNetherTyrant = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(3978, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 190, 450);
}
public static void QueenofEvil()
{
Kernel.QueenofEvil = true;
LastQueenofEvil = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(3970, out mob);
Kernel.Maps[1002].Spawnthiskingdom(mob, 509, 747);
}
public static void DragonWraith()
{
Kernel.DragonWraith = true;
LastDragonWraith = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(3970, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 509, 747);
}
public static void BloodyBanshee()
{
Kernel.BloodyBanshee = true;
LastBloodyBanshee = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(3972, out mob);
Kernel.Maps[10250].Spawnthiskingdom(mob, 496, 189);
}
public static void GoldenOctopus(ushort x, ushort y)
{
Kernel.GoldenOctopus = true;
GoldenOctopustime = Time32.Now;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.Tr yGetValue(2700, out mob);
Kernel.Maps[3071].Spawnthiskingdom(mob, x, y);
}
}
}

و روح علي World.cs

و روح علي #region The-Monster

غيرز كله بي ده #region The-Monster
#region SnowBanshee
if (Copra_Times.Start.SnowBanshee && Kernel.SpawnBanshee == false)
{
MonsterSpawn.SpawnSnowBanshee();
foreach (var client in Program.Values)
{
client.MessageBox("The SnowBanshee appeared in Deityland. Would you like to Defeat it?",
p => { p.Entity.Teleport(10250, 496, 189); }, null);
}
Kernel.SendWorldMessage(new Message("The Snow Banshee appeared in Deityland (496,189)! Defeat it!", Color.White, Message.System));
}
#endregion
#region NemesisTyrant
if (Copra_Times.Start.NemesisTyrant && Kernel.SpawnNemesis == false)
{
MonsterSpawn.SpawnNemesisTyrant();
foreach (var client in Program.Values)
{
client.MessageBox("The NemesisTyrant appeared in Deityland Island. Would you like to Defeat it?",
p => { p.Entity.Teleport(10250, 190, 450); }, null);
}
Kernel.SendWorldMessage(new Message("The NemesisTyrant has shown up in Deityland in (190, 450)", Color.White, Message.System));
}
#endregion
#region ThrillingSpook
if (Copra_Times.Start.ThrillingSpook && Kernel.ThrillingSpook == false)
{
MonsterSpawn.SpawnThrillingSpook();
foreach (var client in Program.Values)
{
client.MessageBox("The ThrillingSpook appeared in Deityland. Would you like to Defeat it?",
p => { p.Entity.Teleport(10250, 1017, 700); }, null);
}
Kernel.SendWorldMessage(new Message("The ThrillingSpook appeared in Deityland (" + 1017 + ", " + 700 + ")! Defeat it!", Color.White, Message.System));
}
#endregion


#region NetherTyrant
if (Copra_Times.Start.NetherTyrant && Kernel.NetherTyrant == false)
{
MonsterSpawn.NetherTyrant();
foreach (var client in Program.Values)
{
client.MessageBox("The NetherTyrant appeared in Deityland. Would you like to Defeat it?",
p => { p.Entity.Teleport(10250, 190, 450); }, null);
}
Kernel.SendWorldMessage(new Message("The NetherTyrant appeared in Deityland (" + 190 + ", " + 450 + ")! Defeat it!", Color.White, Message.System));
}
#endregion
#endregion

AliNasser
2020-02-15, 04:35 PM
جاري التجربه

AliNasser
2020-02-15, 06:02 PM
للاسف المشكله متحلتش لسا زي ما هي

الكونصول سعات بيطلع الايرور والوحوش متطلعش وسعات سعات لما اقفله وافتحه من جديد الايرور ميطلعش والوحوش تطلع عادي الكلام دا كان من الاول ولسا متغيرش

Users
2020-02-16, 10:13 AM
اعمل منشور جديد جديد واعملى فى اشاره عشان مبتابعش التعليقات
واكتبلى ايه الوحوش بتاعتك الى عاوزها تطلع
1/ اسماء الوحوش
2/ رقم المايه
3/ اماكن الى هتطلع فيه
4/ الجايزه بتاعتهم
5/ التوقيت الى عاوزه