|
![]() |
انا عملت كل حاجه بس وقفت هنا في 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; } |
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
دا شرح تركيب اوبن سورس بوكر | ElSaher | تطوير سيرفرات كونكر | 36 | 2024-10-31 02:31 AM |
ده اوبن سورس بوكر | ElSaher | تطوير سيرفرات كونكر | 40 | 2024-06-29 08:53 PM |
حل لو سمحت مشكله ف الكلينت | tekatop0 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-04-21 11:22 AM |
عاوز شرح ازاى اضيف طربيزه بوكر ف التون | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-15 11:57 AM |
اضيف طربيزة بوكر ف التون ازاى؟ | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-03-13 12:01 AM |