عرض مشاركة واحدة
قديم 2020-03-15, 09:15 PM
المشاركة 3
magdy
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: عايز حل الوحوش الكبيره في سورس رايزو
شيك علي true و false بتوع اتشيك لما بيطلع الوحش و بتوع لما الوحش يموت world - monstertable
انا عندي نقس المشكله ديه

وديه الاكواد اللي عندي مش كدا مظبوطه ؟؟
دا World.cs

كود:
#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.Entity.Teleport(10250496189); }, null);
                }
                
Kernel.SendWorldMessage(new Message("The Snow Banshee appeared in Deityland (496,189)! Defeat it!"Color.WhiteMessage.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.Entity.Teleport(10250190450); }, null);
                }
                
Kernel.SendWorldMessage(new Message("The NemesisTyrant has shown up in Deityland in (190, 450)"Color.WhiteMessage.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.Entity.Teleport(102501017700); }, null);
                }
                
Kernel.SendWorldMessage(new Message("The ThrillingSpook appeared in Deityland  (" 1017 ", " 700 ")! Defeat it!"Color.WhiteMessage.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.Entity.Teleport(10250190450); }, null);
                }
                
Kernel.SendWorldMessage(new Message("The NetherTyrant appeared in Deityland  (" 190 ", " 450 ")! Defeat it!"Color.WhiteMessage.System));
            }
            
#endregion
            #endregion 


ودا 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 0nemesisY 0;
        public static 
Time32 LastDragonWraithLastQueenofEvilLastNetherTyrantLastBloodyBansheeLastChillingSpookLastThrillingSpookLastSnowBansheeLastNemesisTyrantGoldenOctopustime;
        public static 
void SpawnThrillingSpook()
        {
            
Kernel.ThrillingSpook true;
            
LastThrillingSpook Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(4172out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob1020697);
        }
        public static 
void ChillingSpook()
        {
            
Kernel.ChillingSpook true;
            
LastChillingSpook Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(3977out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob1020697);
        }
        public static 
void SpawnSnowBanshee()
        {
            
Kernel.SpawnBanshee true;
            
LastSnowBanshee Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(4171out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob496189);
        }
        public static 
void SpawnNemesisTyrant()
        {
            
Kernel.SpawnNemesis true;
            
LastNemesisTyrant Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(4220out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob190450);
        }
        public static 
void NetherTyrant()
        {
            
Kernel.NetherTyrant true;
            
LastNetherTyrant Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(3978out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob190450);
        }
        public static 
void QueenofEvil()
        {
            
Kernel.QueenofEvil true;
            
LastQueenofEvil Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(3970out mob);
            
Kernel.Maps[1002].Spawnthiskingdom(mob509747);
        }
        public static 
void DragonWraith()
        {
            
Kernel.DragonWraith true;
            
LastDragonWraith Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(3970out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob509747);
        }
        public static 
void BloodyBanshee()
        {
            
Kernel.BloodyBanshee true;
            
LastBloodyBanshee Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(3972out mob);
            
Kernel.Maps[10250].Spawnthiskingdom(mob496189);
        }
        public static 
void GoldenOctopus(ushort xushort y)
        {
            
Kernel.GoldenOctopus true;
            
GoldenOctopustime Time32.Now;
            
Database.MonsterInformation mob;
            
Database.MonsterInformation.MonsterInformations.TryGetValue(2700out mob);
            
Kernel.Maps[3071].Spawnthiskingdom(mobxy);
        }
    }