|
المشاركات 1,941 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#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(3004462, 50))
{
if (Kernel.Spawn == false && !Kernel.Maps[1045].Dragon.ContainsKey(client.ActiveNpc))
{
client.Inventory.Remove(3004462, 50);
if (client.Player.MapID == 1045)
{
Kernel.Spawn = true;
Database.MonsterInformation mob;
Database.MonsterInformation.MonsterInformations.TryGetValue(4152, out mob);//4152 teratodragon
client.Map.Spawnthis(mob, client, 1045, 38, 86);
var Map = Kernel.Maps[1045];
Kernel.Maps[1045].Dragon.Add(client.ActiveNpc, Map.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
#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(1045, 050, 050);
dialog.Text("I warned you....");
dialog.Option("I think you're full of it.\nThere's nothing here.", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
public Dictionary<uint, INpc> Dragon = new Dictionary<uint, INpc>();
#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.Black, MsgTalk.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(3004123, 0, 1);
{
// var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
killer.Teleport(1002, 413, 353);
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
MsgMapItem floorItem = new MsgMapItem(true);
floorItem.Item = new MsgItemInfo(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
// 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 = X;
floorItem.Y = 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 n = 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.X, npc.Y, Ownerr.Player.X, Ownerr.Player.Y) < 16)
{
npc.SendSpawn(Ownerr, false);
}
}
}
}
}
}
}
return;
}
#endregion
#region ToughHorn
if (Name == "ToughHorn")
{
killer.ConquerPoints += 10;
killer.Owner.Inventory.Add(3004462, 0, 1);
uint ItemID = 0;
byte type = 9;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 9);
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.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
MsgMapItem floorItem = new MsgMapItem(true);
floorItem.Item = new MsgItemInfo(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
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 = X;
floorItem.Y = 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 n = 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.X, npc.Y, Ownerr.Player.X, Ownerr.Player.Y) < 16)
{
npc.SendSpawn(Ownerr, false);
}
}
}
}
}
}
}
return;
}
#endregion
180810 OwlQuest 2 6127 1045 36 83
600050 OwlQuest 2 6207 1002 459 360
1045 1045 8258 0
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Creazy War Quest | karem010 | تطوير سيرفرات كونكر | 4 | 2020-05-12 04:18 PM |
Quest TreasureBox | youssefabdelmanam | تطوير سيرفرات كونكر | 17 | 2019-07-12 11:16 PM |