قديم 2020-02-04, 04:15 PM
المشاركة 2
ElSaher
.:: مشرف قسم المشاكل ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
اتفضل يصطي اضافت الnopc

كود:
                #region TreasureThief
                
case 16970:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("I have lost all my treasure boxes inside the DisCity map when I was doing the quest! now you'll need to find them for me!");
                                    
dialog.Option("Send me there."1);
                                    
dialog.Option("Meh!"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
TreasureBox.OnGoing)
                                    {
                                        
client.Entity.Teleport(3820, (ushort)Kernel.Random.Next(87212), (ushort)Kernel.Random.Next(114200));
                                    }
                                    else
                                    {
                                        
dialog.Text("I can only send you there when it's xx:32 To xx:37 ");
                                        
dialog.Option("Oh I See!."255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 


قديم 2020-02-04, 04:52 PM
المشاركة 3
AliNasser
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
انا ضايفها عندي
في اضافه تانيه في ملف npc خاصه بالصناديق ذات نفسها دي الانا عنذي مشكله فيا متوضحه فوق في الصوره

قديم 2020-02-05, 02:24 AM
المشاركة 4
neno2052
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
انا عملت كل حاجه بس وقفت هنا في npc في سورس رايزو




مع العلم ان الكود دا متجرب في سورس 3 دي MSG غيرو واشتغل تمام
اتفضل دا ديفولت كلها من السورس بتاعي + ياريت تكلمني عشان نشتغل معا بعض في سورس رايزو هنضيف حجات حلوه



default:
{
#region TreeCatcher
//if (Copra.New_Quests.TreeCatcher.IsON)
//{
// if (Copra.New_Quests.TreeCatcher.Map != null)
// {
// if (client.Entity.MapID == Copra.New_Quests.TreeCatcher.Map.ID)
// {
// if (Copra.New_Quests.TreeCatcher.Npc != null)
// {
// if (client.ActiveNpc == Copra.New_Quests.TreeCatcher.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did :P.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// Copra.New_Quests.TreeCatcher.Catched(client);
// dialog.Text("Begginer Luck , try to do it again.");
// dialog.Option("ok", 255);
// dialog.Send();
// break;
// }
// }
// }
// }
// }
// }
//}
#endregion
#region Chase
//if (World.Chase.IsWar)
//{
// if (client.ActiveNpc == Chase.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// if (!World.Chase.End(client))
// {
// dialog.Text("u had to w8.");
// dialog.Option("ok", 255);
// dialog.Send();
// }
// break;
// }
// }
// }
//}
#endregion Chase

client.Send(new Message("NpcID[" + client.ActiveNpc + "]", System.Drawing.Color.Red, Message.TopLeft));
if (client.ActiveNpc >= 101002 && client.Entity.MapID == 3820)
{
MsgActionProto Action = new MsgActionProto();
Action.UID = client.ActiveNpc;
Action.TimeStamp = (uint)Time32.Now.GetHashCode();
Action.ID = MsgActionEmulator.RemoveEntity;
client.SendScreen(MsgActionEmulator.SendPacket(Act ion));
Rayzo.Game.TreasureBox.Reward(client);
client.Map.RemoveNpc(client.Map.Npcs[client.ActiveNpc]);
}
break;
}

قديم 2020-02-05, 02:25 AM
المشاركة 5
neno2052
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
انا عملت كل حاجه بس وقفت هنا في npc في سورس رايزو




مع العلم ان الكود دا متجرب في سورس 3 دي MSG غيرو واشتغل تمام
default:
{
#region TreeCatcher
//if (Copra.New_Quests.TreeCatcher.IsON)
//{
// if (Copra.New_Quests.TreeCatcher.Map != null)
// {
// if (client.Entity.MapID == Copra.New_Quests.TreeCatcher.Map.ID)
// {
// if (Copra.New_Quests.TreeCatcher.Npc != null)
// {
// if (client.ActiveNpc == Copra.New_Quests.TreeCatcher.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did :P.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// Copra.New_Quests.TreeCatcher.Catched(client);
// dialog.Text("Begginer Luck , try to do it again.");
// dialog.Option("ok", 255);
// dialog.Send();
// break;
// }
// }
// }
// }
// }
// }
//}
#endregion
#region Chase
//if (World.Chase.IsWar)
//{
// if (client.ActiveNpc == Chase.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// if (!World.Chase.End(client))
// {
// dialog.Text("u had to w8.");
// dialog.Option("ok", 255);
// dialog.Send();
// }
// break;
// }
// }
// }
//}
#endregion Chase

client.Send(new Message("NpcID[" + client.ActiveNpc + "]", System.Drawing.Color.Red, Message.TopLeft));
if (client.ActiveNpc >= 101002 && client.Entity.MapID == 3820)
{
MsgActionProto Action = new MsgActionProto();
Action.UID = client.ActiveNpc;
Action.TimeStamp = (uint)Time32.Now.GetHashCode();
Action.ID = MsgActionEmulator.RemoveEntity;
client.SendScreen(MsgActionEmulator.SendPacket(Act ion));
Rayzo.Game.TreasureBox.Reward(client);
client.Map.RemoveNpc(client.Map.Npcs[client.ActiveNpc]);
}
break;
}

قديم 2020-02-05, 02:26 AM
المشاركة 6
neno2052
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
انا عملت كل حاجه بس وقفت هنا في npc في سورس رايزو




مع العلم ان الكود دا متجرب في سورس 3 دي MSG غيرو واشتغل تمام
default:
{
#region TreeCatcher
//if (Copra.New_Quests.TreeCatcher.IsON)
//{
// if (Copra.New_Quests.TreeCatcher.Map != null)
// {
// if (client.Entity.MapID == Copra.New_Quests.TreeCatcher.Map.ID)
// {
// if (Copra.New_Quests.TreeCatcher.Npc != null)
// {
// if (client.ActiveNpc == Copra.New_Quests.TreeCatcher.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did :P.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// Copra.New_Quests.TreeCatcher.Catched(client);
// dialog.Text("Begginer Luck , try to do it again.");
// dialog.Option("ok", 255);
// dialog.Send();
// break;
// }
// }
// }
// }
// }
// }
//}
#endregion
#region Chase
//if (World.Chase.IsWar)
//{
// if (client.ActiveNpc == Chase.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// if (!World.Chase.End(client))
// {
// dialog.Text("u had to w8.");
// dialog.Option("ok", 255);
// dialog.Send();
// }
// break;
// }
// }
// }
//}
#endregion Chase

client.Send(new Message("NpcID[" + client.ActiveNpc + "]", System.Drawing.Color.Red, Message.TopLeft));
if (client.ActiveNpc >= 101002 && client.Entity.MapID == 3820)
{
MsgActionProto Action = new MsgActionProto();
Action.UID = client.ActiveNpc;
Action.TimeStamp = (uint)Time32.Now.GetHashCode();
Action.ID = MsgActionEmulator.RemoveEntity;
client.SendScreen(MsgActionEmulator.SendPacket(Act ion));
Rayzo.Game.TreasureBox.Reward(client);
client.Map.RemoveNpc(client.Map.Npcs[client.ActiveNpc]);
}
break;
}

قديم 2020-02-05, 02:28 AM
المشاركة 7
neno2052
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
انا عملت كل حاجه بس وقفت هنا في npc في سورس رايزو




مع العلم ان الكود دا متجرب في سورس 3 دي MSG غيرو واشتغل تمام
default:
{
#region TreeCatcher
//if (Copra.New_Quests.TreeCatcher.IsON)
//{
// if (Copra.New_Quests.TreeCatcher.Map != null)
// {
// if (client.Entity.MapID == Copra.New_Quests.TreeCatcher.Map.ID)
// {
// if (Copra.New_Quests.TreeCatcher.Npc != null)
// {
// if (client.ActiveNpc == Copra.New_Quests.TreeCatcher.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did :P.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// Copra.New_Quests.TreeCatcher.Catched(client);
// dialog.Text("Begginer Luck , try to do it again.");
// dialog.Option("ok", 255);
// dialog.Send();
// break;
// }
// }
// }
// }
// }
// }
//}
#endregion
#region Chase
//if (World.Chase.IsWar)
//{
// if (client.ActiveNpc == Chase.Npc.UID)
// {
// switch (npcRequest.OptionID)
// {
// case 0:
// {
// dialog.Text("Hello " + client.Entity.Name + " Wanna catch me.");
// dialog.Option("I Already Did.", 1);
// dialog.Option("No", 255);
// dialog.Send();
// break;
// }
// case 1:
// {
// if (!World.Chase.End(client))
// {
// dialog.Text("u had to w8.");
// dialog.Option("ok", 255);
// dialog.Send();
// }
// break;
// }
// }
// }
//}
#endregion Chase

client.Send(new Message("NpcID[" + client.ActiveNpc + "]", System.Drawing.Color.Red, Message.TopLeft));
if (client.ActiveNpc >= 101002 && client.Entity.MapID == 3820)
{
MsgActionProto Action = new MsgActionProto();
Action.UID = client.ActiveNpc;
Action.TimeStamp = (uint)Time32.Now.GetHashCode();
Action.ID = MsgActionEmulator.RemoveEntity;
client.SendScreen(MsgActionEmulator.SendPacket(Act ion));
Rayzo.Game.TreasureBox.Reward(client);
client.Map.RemoveNpc(client.Map.Npcs[client.ActiveNpc]);
}
break;
}

قديم 2020-02-05, 02:25 PM
المشاركة 8
AliNasser
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: مساعده في تركيب كوسته treasurebox في سورس رايزو
تسلم با صحبي هو اشتغل بس لسه في مشكله صغيره بس تتحل

دا رابط الفيس بتاعي
https://www.facebook.com/profile.php?id=100002517845927


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: مساعده في تركيب كوسته treasurebox في سورس رايزو
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
دا شرح تركيب اوبن سورس بوكر ElSaher تطوير سيرفرات كونكر 35 2024-04-10 01:35 PM
طلب شرح او مساعده في تركيب مابات.. AhmedGadd مشكلات السيرفيرات كونكر الشخصيه 2 2020-04-13 05:39 PM
طلب شرح او مساعده في تركيب لودر ميجو AhmedGadd مشكلات السيرفيرات كونكر الشخصيه 4 2020-04-03 06:06 AM
شرح طريقة تركيب سورس مستر خالد الجديد nova مشكلات السيرفيرات كونكر الشخصيه 2 2020-02-15 08:35 PM
في مشكلة في تركيب سورس viploader kotb مشكلات السيرفيرات كونكر الشخصيه 2 2019-07-13 07:10 AM


الساعة الآن 11:10 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.