|
المشاركات 1,940 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
public static void Send_Effect(Client.GameState Client, uint data_8, ushort Type, ushort direction, uint LoopTime, string EffectName)
{
// Send_Effect(Client, 220, 164, 1, 5, "Pick");
//38 + 1 + 8 + EffectName.Length = 47 + EffectName.Length
//Where 38 is the normal 10010 packet length, 1 for the extra byte at offset 38, 8 for the Server Stamp
byte[] Packet = new byte[47 + EffectName.Length];
Writer.WriteUInt16((ushort)(Packet.Length - 8), 0, Packet);
Writer.WriteUInt16(10010, 2, Packet);
Writer.WriteUInt32(Client.Entity.UID, 4, Packet);
Writer.WriteUInt32(data_8, 8, Packet);
Writer.WriteUInt16(Type, 20, Packet);
Writer.WriteUInt16(direction, 22, Packet);
Writer.WriteUInt32(LoopTime, 32, Packet);
Writer.WriteByte(1, 37, Packet);
Writer.WriteByte((byte)(EffectName.Length), 38, Packet);
Writer.WriteString(EffectName, 39, Packet);
Client.Send(Packet);
}
public byte AncestorHonored = 0;
#region DailyQuest [*******]
#region DailyQuestEnvoy
case 1994://my birth date :P
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("All hereoesn can talk to me to learn about the daily tasks,");
dialogs.Text("And go to the required places to accept work");
dialogs.Option("Honoring The Ancestors[L50]", 1);
dialogs.Option("Everything Has A Price[L60]", 2);
dialogs.Option("Release The Souls[L70]", 3);
dialogs.Option("Magnolias All Around[L80]", 4);
dialogs.Option("Everything Has A Price[L60]", 5);
dialogs.Option("Exorcism[L90]", 6);
dialogs.Option("Spirit Beads.[L100]", 7);
dialogs.Option("Leave.", 255);
dialogs.Send();
break;
}
case 1:
{
dialogs.Text("Go to the Ancestral Hall and worship the Ancestors.");
dialogs.Text("Then you will recive a reward.");
dialogs.Text("If you've devoted enough, you will have the chance to receive 200 study points and 20 CPS (B) as a bonus Blessing!");
dialogs.Option("Go to the Ancestral Hall", 8);
dialogs.Option("Leave.", 255);
dialogs.Send();
break;
}
case 8:
{
client.Entity.Teleport(3081, 53, 56);
Kernel.SendWorldMessage(new Message("You were teleported to the Ancestral Hall. what a respectful and solmen place! [Team-Xor]", System.Drawing.Color.White, Message.System), Kernel.GamePool.Values);
break;
}
}
break;
}
#endregion
#region Honoring Ancestors
#region goodmanLui
case 1995:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("When You finish i can send you back to town.if you want if you want to back to twin city, I can send you back.");
dialogs.Option("How to worship them?", 1);
dialogs.Option(" Back to Twin City.", 2);
dialogs.Option("Im just passing by.", 255);
dialogs.Send();
break;
}
case 1:
{
dialogs.Text("When You enter the Hall. you will see the images of Nuwa,HuangDi and YanDi , Diffrent Ancestors will grant you diffrent Blessing.");
dialogs.Option("Worship HuangDi", 3);
dialogs.Option("Worship Nuwa", 4);
dialogs.Option("WorshipYangDi", 5);
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
case 2:
{
client.Entity.Teleport(1002, 421, 377);
break;
}
case 3:
{
dialogs.Text("HuangDi is a legendary Chinese sovereign and cultral hero. if you worship him, you'll recieve 60 minutes of EXP, 50 Study points and 1 Chi Token. ");
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
case 4:
{
dialogs.Text("Nuwa is known for creating mankind and repairing the wall of heaven . if you worship her, you'll recieve 5 hours of blessing of EXP, 60 minutes of EXP and 1 Chi Token. ");
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
case 5:
{
dialogs.Text("YanDi is another Legendary ruler of Ancient China. if you worship him, you'll recieve 5 hours of blessing of EXP, 50 study points and 1 Chi Token. ");
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
}
break;
}
#endregion
#region HuanDi
case 1996:
case 1997:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("HuangDi is a legendary Chinese sovereign and cultral hero. if you worship him, you'll recieve 60 minutes of EXP, 50 Study points and 1 Chi Token. ");
dialogs.Option("Worship him.", 1);
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
case 1:
{
if (client.Entity.AncestorHonored == 0)
{
if (client.Entity.Y <= 55)
{
PacketHandler.Send_Effect(client, 220, 164, 1, 5, "worship");
client.IncreaseExperience(client.ExpBalls += 1, false);
client.Entity.SubClasses.StudyPoints += 50;
client.Inventory.Add(729304, 0, 1);
client.Entity.AncestorHonored++;
}
else
{
dialogs.Text(" You must stand infront of the Ancestor to Honor Him![Team-Xor]");
dialogs.Send();
}
break;
}
else
{
dialogs.Text(" you have honored the ancestor today please come back tomorrow");
dialogs.Send();
}
}
break;
}
break;
}
#endregion
#region Nuwa
case 1998:
case 19991:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("Nuwa is known for creating mankind and repairing the wall of heaven . if you worship her, you'll recieve 5 hours of blessing of EXP, 60 minutes of EXP and 1 Chi Token.");
dialogs.Option("Worship her.", 1);
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
case 1:
{
if (client.Entity.AncestorHonored == 0)
{
if (client.Entity.Y <= 55)
{
PacketHandler.Send_Effect(client, 220, 164, 1, 5, "worship");
uint value = (uint)(5 * 60 * 60);
client.AddBless(value);
client.Entity.Update(Network.GamePackets.Update.OnlineTraining, client.OnlineTrainingPoints, false);
client.Inventory.Add(729304, 0, 1);
client.IncreaseExperience(client.ExpBall, false);
client.Entity.Update(10, "end_task", true);
client.Entity.AncestorHonored++;
}
else
{
dialogs.Text(" You must stand infront of the Ancestor to Honor Him![Team-Xor]");
dialogs.Send();
}
}
else
{
dialogs.Text(" you have honored the ancestor today please come back tomorrow");
dialogs.Send();
}
break;
}
}
break;
}
#endregion
#region YanDi
case 1999:
case 199922:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("YanDi is another Legendary ruler of Ancient China. if you worship him, you'll recieve 5 hours of blessing of EXP, 50 study points and 1 Chi Token. ");
dialogs.Option("Worship him", 1);
dialogs.Option("I see.", 255);
dialogs.Send();
break;
}
case 1:
{
if (client.Entity.AncestorHonored == 0)
{
if (client.Entity.Y <= 55)
{
PacketHandler.Send_Effect(client, 220, 164, 1, 5, "worship");
uint value = (uint)(5 * 60 * 60);
client.AddBless(value);
client.Entity.Update(Network.GamePackets.Update.OnlineTraining, client.OnlineTrainingPoints, false);
client.Inventory.Add(729304, 0, 1);
client.Entity.SubClasses.StudyPoints += 50;
client.Entity.Update(10, "end_task", true);
client.Entity.AncestorHonored++;
}
else
{
dialogs.Text(" You must stand infront of the Ancestor to Honor Him![Team-Xor]");
dialogs.Send();
}
}
else
{
dialogs.Text(" you have honored the ancestor today please come back tomorrow");
dialogs.Send();
}
break;
}
}
break;
}
#endregion
#endregion
#endregion
19992 0 0 YanDi 2 19450 -1 3081 61 44
1999 0 0 CenserYandi 2 19490 -1 3081 63 51
19991 0 0 Nuwa 2 19310 -1 3081 52 44
1998 0 0 CenserNuwa 2 19490 -1 3081 54 51
1997 0 0 HuangDi 2 19440 -1 3081 43 44
1996 0 0 CenserHuangDi 2 19490 -1 3081 45 51
1994 0 0 DailyQuestEnvoy 2 19930 -1 1002 426 396
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سيستم Epic Quests Full Like TQ | khaledxodia | تطوير سيرفرات كونكر | 17 | 2024-07-03 01:32 AM |
Hell Quests | محمد ياسر | تطوير سيرفرات كونكر | 10 | 2023-10-11 10:03 PM |