منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   Vip Quest (https://code.vpscairo.com/showthread.php?t=109)

محمد ياسر 2019-04-21 04:45 PM

Vip Quest
 

هتكلم الانبسى هيدخلك ماب تموت 50 وحش كل وحش هيديك توكن فى الايتمز هتلم 50 تروح لراجل جوا تكلمو هيطلعك وحش الدراجون تموتو يديك الهديه ويوديك التون كوسته سهله كنت عاوز اصعبها اكتر من كدا بس ضيق الوقت بقى
الاكواد
Npcs.cs
كود PHP:

#region Vip Quest
                    
case 180810:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Huh its you  are you afraid!");
                                        
dialog.Text("~is about to wake from its slumber. Soldier, if you want to go eliminate it, you have to use 50  OwlToken  to summon it out first");
                                        
dialog.Text("~Lets Try your Power.");
                                        
dialog.Option("Summon~the~Evil!"1);
                                        
dialog.Option("I~see."255);
                                        
dialog.Avatar(44);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
client.Inventory.Contains(300446250))
                                        {
                                            if (
Kernel.Spawn == false && !Kernel.Maps[1045].Dragon.ContainsKey(client.ActiveNpc))
                                            {
                                                
client.Inventory.Remove(300446250);

                                                if (
client.Player.MapID == 1045)
                                                {
                                                    
Kernel.Spawn true;
                                                    
Database.MonsterInformation mob;
                                                    
Database.MonsterInformation.MonsterInformations.TryGetValue(4152out mob);//4152 teratodragon
                                                    
client.Map.Spawnthis(mobclient10453886);
                                                    var 
Map Kernel.Maps[1045];
                                                    
Kernel.Maps[1045].Dragon.Add(client.ActiveNpcMap.Npcs[client.ActiveNpc]);
                                                    
client.SendScreen(new MsgAction(true)
                                                    {
                                                        
UID client.ActiveNpc,
                                                        
ID MsgAction.Mode.RemoveEntity
                                                        
//client.Player.Teleport(1011, 211, 194);
                                                    
}, true);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("You need to get 50 OwlToken  to summon the Evil.");
                                            
dialog.Option("Okay."255);
                                            
dialog.Avatar(44);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 

كود PHP:

#region owl-co quest
                    
case 600050:
                        {
                            
dialog.Avatar(101);
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        if (
client.Player.PheasantPoint >= 1)
                                        {
                                            
dialog.Text("Good day, my friend, I`m the TC Captain. I`m in charge of the public security around here. It is indeed an important job, isn`t it? Well, ever thinking about contributing a bit to the public? You`ll be rewarded.");
                                            
dialog.Option("What~can~I~do~for~you?"19);
                                            
//dialog.Option("I~want~to~take~a~Daily~Quest.", 1);
                                            
dialog.Avatar(75);
                                        }
                                        else
                                        {
                                            
dialog.Text("Hello " client.Player.Name ", Have you heard of the palace method?");
                                            
dialog.Option("Palace method?.."1);
                                            
dialog.Option("Don't care!"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
19:
                                    {

                                        
dialog.Text("I discovered a mystical tactic, but I was not able to solve it.\nI almost died! It's very dangerous.");

                                        
dialog.Option("Sounds like my kind of fun."20);
                                        
dialog.Option("Too dangerous"255);
                                        
dialog.Send();
                                        break;

                                    }

                                case 
1:
                                    {
                                        
dialog.Text("I discovered a mystical tactic, but I was not able to solve it.\nI almost died! It's very dangerous.");
                                        
dialog.Option("Sounds like my kind of fun."2);
                                        
dialog.Option("Too dangerous"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
2:
                                    {

                                        
dialog.Text("I'm serious! You don't understand it's very dangerous...");
                                        
dialog.Option("Yea yea. Just take my there."3);
                                        
dialog.Option("Nevermind... o.o"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
3:
                                    {
                                        
client.Player.Teleport(1045050050);
                                        
dialog.Text("I warned you....");
                                        
dialog.Option("I think you're full of it.\nThere's nothing here."255);
                                        
dialog.Send();
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 

كلاس map.cs لو عندك الكود دا متحطوش لو مش موجود حطو
كود PHP:

public Dictionary<uintINpcDragon = new Dictionary<uintINpc>(); 

فى MonsterTable.cs حط الوحوش دى
كود PHP:

#region TeratoDragon
            
if (Name == "TeratoDragon")
            {
              
               
//killer.Owner.Send(new MsgTalk("You have killed OwlDragon And Get Vip 4 For 7 Days Gratz!", System.Drawing.Color.Azure, MsgTalk.Center));
               
Kernel.SendWorldMessage(new MsgTalk(""killer.Name "have killed OwlDragon And Get Vip 4 For 7 Days Gratz!."System.Drawing.Color.BlackMsgTalk.Talk), Server.GamePool);
               
//MsgMailList.AddPrize(killer.Owner, "TeratoDragon", "Prize TeratoDragon", "You Have Claim Prize For kill teratodragon Enjoy", 5000000);
               //killer.ClaimKillDragon = true;
               
killer.Owner.Inventory.Add(300412301);
                {
                   
// var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
                    
killer.Teleport(1002413353);
                    
ushort X Owner.XOwner.Y;
                    
Game.Map Map Kernel.Maps[Owner.MapID];
                    if (
Map.SelectCoordonates(ref Xref Y))
                    {
                        
MsgMapItem floorItem = new MsgMapItem(true);
                        
floorItem.Item = new MsgItemInfo(true);
                        
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(48);
                       
// floorItem.Item.ID = ItemID;
                        
floorItem.Item.Plus floorItem.Item.Plus;
                      
//  floorItem.Item.MaximDurability = infos.Durability;
                      //  floorItem.Item.Durability = infos.Durability;
                        
floorItem.Item.MobDropped true;
                        
floorItem.ValueType MsgMapItem.FloorValueType.Item;
                       
// floorItem.ItemID = ItemID;
                        
floorItem.MapID Owner.MapID;
                        
floorItem.MapObjType Game.MapObjectType.Item;
                        
floorItem.X;
                        
floorItem.Y;
                        
floorItem.Type MsgMapItem.Drop;
                        
floorItem.OnFloor Time32.Now;
                        
floorItem.ItemColor floorItem.Item.Color;
                        
floorItem.UID MsgMapItem.FloorUID.Next;
                        while (
Map.Npcs.ContainsKey(floorItem.UID))
                            
floorItem.UID MsgMapItem.FloorUID.Next;
                        
Map.AddFloorItem(floorItem);
                        
SendScreenSpawn(floorItem);
                        
Kernel.Spawn false;
                        
Kernel.SpawnDragon false;
                    }
                }
                if (
Owner.MonsterInfo.ID == 4152)
                {
                    if (
Owner.MapID == 1045)
                    {
                        if (
Kernel.Maps[1045].Dragon[180810] != null)
                        {
                            
Kernel.Maps[1045].AddNpc(Kernel.Maps[1045].Dragon[180810]);
                            
Kernel.Maps[1045].Dragon.Remove(180810);
                            var 
Kernel.Maps[1045].Npcs[180810] as Interfaces.IMapObject;
                            
killer.Owner.SendScreen(new MsgAction(true)
                            {
                                
UID 180810,
                                
ID MsgAction.Mode.SpawnEffect
                            
}, true);
                        }
                    }
                    foreach (var 
Ownerr in Server.GamePool)
                    {
                        if (
Ownerr.Player.MapID == 1045)
                        {
                            foreach (
Interfaces.INpc npc in Kernel.Maps[1045].Npcs.Values)
                            {
                                if (
npc != null)
                                {
                                    if (
npc.UID == 180810)
                                    {
                                        if (
Kernel.GetDistance(npc.Xnpc.YOwnerr.Player.XOwnerr.Player.Y) < 16)
                                        {
                                            
npc.SendSpawn(Ownerrfalse);
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                return;
            }
            
#endregion
            #region ToughHorn
            
if (Name == "ToughHorn")
            {
                
killer.ConquerPoints += 10;
                
killer.Owner.Inventory.Add(300446201);
                
uint ItemID 0;
                
byte type 9;
                for (
int i 01i++)
                {
                    
type = (byte)Kernel.Random.Next(19);
                    switch (
type)
                    {
                        
#region all
                        
case 1:
                            
ItemID 722093;//50token
                            
break;

                        case 
2:
                            
ItemID 720659;//50 cps
                            
break;
                        case 
3:
                            
ItemID 723051;//token 7
                            
break;
                        case 
4:
                            
ItemID 722870;//token 7
                            
break;
                        case 
5:
                            
ItemID 722601;//token 7
                            
break;
                        case 
6:
                            
ItemID 722091;//token 7
                            
break;
                        case 
7:
                            
ItemID 722092;//token 7
                            
break;
                        case 
8:
                            
ItemID 722093;//token 7
                            
break;
                        
#endregion

                    
}
                    var 
infos Database.ConquerItemInformation.BaseInformations[ItemID];
                    
ushort X Owner.XOwner.Y;
                    
Game.Map Map Kernel.Maps[Owner.MapID];
                    if (
Map.SelectCoordonates(ref Xref Y))
                    {
                        
MsgMapItem floorItem = new MsgMapItem(true);
                        
floorItem.Item = new MsgItemInfo(true);
                        
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(48);
                        
floorItem.Item.ID ItemID;
                        
floorItem.Item.Plus floorItem.Item.Plus;
                        
floorItem.Item.MaximDurability infos.Durability;
                        
floorItem.Item.Durability infos.Durability;
                        
floorItem.Item.MobDropped true;
                        
floorItem.ValueType MsgMapItem.FloorValueType.Item;
                        
floorItem.ItemID ItemID;
                        
floorItem.MapID Owner.MapID;
                        
floorItem.MapObjType Game.MapObjectType.Item;
                        
floorItem.X;
                        
floorItem.Y;
                        
floorItem.Type MsgMapItem.Drop;
                        
floorItem.OnFloor Time32.Now;
                        
floorItem.ItemColor floorItem.Item.Color;
                        
floorItem.UID MsgMapItem.FloorUID.Next;
                        while (
Map.Npcs.ContainsKey(floorItem.UID))
                            
floorItem.UID MsgMapItem.FloorUID.Next;
                        
Map.AddFloorItem(floorItem);
                        
SendScreenSpawn(floorItem);
                        
Kernel.Spawn false;
                        
Kernel.SpawnDragon false;
                    }
                }
                if (
Owner.MonsterInfo.ID == 6000)
                {
                    if (
Owner.MapID == 1045)
                    {
                        if (
Kernel.Maps[1045].Dragon[180810] != null)
                        {
                            
Kernel.Maps[1045].AddNpc(Kernel.Maps[1045].Dragon[180810]);
                            
Kernel.Maps[1045].Dragon.Remove(180810);
                            var 
Kernel.Maps[1045].Npcs[180810] as Interfaces.IMapObject;
                            
killer.Owner.SendScreen(new MsgAction(true)
                            {
                                
UID 180810,
                                
ID MsgAction.Mode.SpawnEffect
                            
}, true);
                        }
                    }
                    foreach (var 
Ownerr in Server.GamePool)
                    {
                        if (
Ownerr.Player.MapID == 1045)
                        {
                            foreach (
Interfaces.INpc npc in Kernel.Maps[1045].Npcs.Values)
                            {
                                if (
npc != null)
                                {
                                    if (
npc.UID == 180810)
                                    {
                                        if (
Kernel.GetDistance(npc.Xnpc.YOwnerr.Player.XOwnerr.Player.Y) < 16)
                                        {
                                            
npc.SendSpawn(Ownerrfalse);
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                return;
            }
            
#endregion 

النافى كات npcs
كود PHP:

180810 OwlQuest 2 6127 1045 36 83 
600050 OwlQuest 2 6207 1002 459 360 

maps
كود PHP:

1045 1045 8258 0 

لو فى حد جالو ايرور فحاجه يقول وهتتحل


Mero 2019-04-21 05:07 PM

الله ينور
 
عــــــــــــــــــــاش

ahmedfarouk 2023-07-25 04:42 AM

رد: Vip Quest
 
الله ينور جاري التجربه بس هو بيدي في اي بي ولا اي


الساعة الآن 11:15 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب