|
المشاركات 1,940 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#region Gates
#region Gates
case 516076:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper3)
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Select the option you want to pursue.");
if (client.AsMember.Rank != Conquer_Online_Server.Game.Enums.GuildMemberRank.Member)
{
dialog.Option("Open gate.", 1);
dialog.Option("Close gate.", 2);
}
dialog.Option("Get inside.", 3);
dialog.Option("Nothing.", 255);
dialog.Send();
break;
case 1:
{
if (Game.PoleTwin.LeftGate.Mesh == (ushort)(240 + PoleTwin.LeftGate.Mesh % 10))
{
Conquer_Online_Server.Game.PoleTwin.LeftGate.Mesh = (ushort)(250 + Conquer_Online_Server.Game.PoleTwin.LeftGate.Mesh % 10);
Update upd = new Update(true);
upd.UID = Conquer_Online_Server.Game.PoleTwin.LeftGate.UID;
upd.Append(Update.Mesh, Conquer_Online_Server.Game.PoleTwin.LeftGate.Mesh);
client.SendScreen(upd, true);
break;
}
break;
}
case 2:
{
if (Game.PoleTwin.LeftGate.Mesh == (ushort)(250 + PoleTwin.LeftGate.Mesh % 10))
{
Game.PoleTwin.LeftGate.Mesh = (ushort)(240 + Game.PoleTwin.LeftGate.Mesh % 10);
Game.PoleTwin.LeftGate.Hitpoints = Game.PoleTwin.LeftGate.MaxHitpoints;
Update upd = new Update(true);
upd.UID = Conquer_Online_Server.Game.PoleTwin.LeftGate.UID;
upd.Append(Update.Mesh, Conquer_Online_Server.Game.PoleTwin.LeftGate.Mesh);
upd.Append(Update.Hitpoints, Conquer_Online_Server.Game.PoleTwin.LeftGate.Hitpoints);
client.SendScreen(upd, true);
break;
}
break;
}
case 3:
{
client.Entity.Teleport(2072, 439, 407);
break;
}
}
}
}
break;
}
case 516077:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper3)
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Select the option you want to pursue.");
if (client.AsMember.Rank != Conquer_Online_Server.Game.Enums.GuildMemberRank.Member)
{
dialog.Option("Open gate.", 1);
dialog.Option("Close gate.", 2);
}
dialog.Option("Get inside.", 3);
dialog.Option("Nothing.", 255);
dialog.Send();
break;
case 1:
{
if (Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh == (ushort)(270 + Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh % 10))
{
Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh = (ushort)(280 + Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh % 10);
Update upd = new Update(true);
upd.UID = Conquer_Online_Server.Game.PoleTwin.RightGate.UID;
upd.Append(Update.Mesh, Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh);
client.SendScreen(upd, true);
break;
}
break;
}
case 2:
{
if (Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh == (ushort)(280 + Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh % 10))
{
Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh = (ushort)(270 + Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh % 10);
Game.PoleTwin.RightGate.Hitpoints = Game.PoleTwin.RightGate.MaxHitpoints;
Update upd = new Update(true);
upd.UID = Conquer_Online_Server.Game.PoleTwin.RightGate.UID;
upd.Append(Update.Mesh, Conquer_Online_Server.Game.PoleTwin.RightGate.Mesh);
upd.Append(Update.Hitpoints, Conquer_Online_Server.Game.PoleTwin.RightGate.Hitpoints);
client.SendScreen(upd, true);
break;
}
break;
}
case 3:
{
client.Entity.Teleport(2072, 485, 356);
break;
}
}
}
}
break;
}
#endregion
#region ElitePole
#region PoleTwin
case 1155220:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Join PoleTwin?.");
dialog.Text("or claim the Prize?, you can join Every day expect Saturday and Sunday At 18:00 to 19:00.");
dialog.Text("and the winner Guild Leader will get 5M cps after it finish u have 5 minutes to claim?.");
dialog.Option("Join PoleTwin", 1);
dialog.Option("Claim Prize.", 5);
dialog.Send();
break;
}
case 1:
{
if (PoleTwin.IsWar)
{
client.Entity.Teleport(2072, 440, 474);
}
else
{
dialog.Text("The war is not held now! It will start every day expect Saturday and Sunday at 18:00");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
case 5:
{
if (!PoleTwin.IsWar)
{
if (client.Guild != null)
{
if (PoleTwin.KeeperID != 0)
{
if (PoleTwin.Claim && client.AsMember.Rank == Game.Enums.GuildMemberRank.GuildLeader && client.Guild.ID == PoleTwin.KeeperID)
{
PoleTwin.Claim = false;
PoleTwin.KeeperID = 0;
Conquer_Online_Server.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 5M ConquerPoints for winning the PoleTwin.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
client.Entity.ConquerPoints += 5000000;
Program.AddWarLog("PoleTwin", "5M CPS", client.Entity.Name);
}
else
{
dialog.Text("sorry u dont have any prize to claim....");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
}
else
{
dialog.Text("sorry u dont have any prize to claim");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + " You can't get the prize while the war is on!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region PoleTwin
case 818:
{
dialog.Text("Welcome in PoleTwin HaveFun!.");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Conquer_Online_Server.Network.GamePackets;
using Conquer_Online_Server.Game.ConquerStructures.Society;
namespace Conquer_Online_Server.Game
{
public class PoleTwin
{
public static SobNpcSpawn Pole, RightGate, LeftGate;
public static SobNpcSpawn Poles;
public static SafeDictionary<uint, Guild> Scores = new SafeDictionary<uint, Guild>(100);
public static bool IsWar = false, Flame10th = false, FirstRound = false;
public static Time32 ScoreSendStamp, LastWin;
public static Guild PoleKeeper, CurrentTopLeader;
private static bool changed = false;
private static string[] scoreMessages;
public static DateTime StartTime;
public static bool Claim
{
get { return Program.Vars["pwclaim"]; }
set { Program.Vars["pwclaim"] = value; }
}
public static uint KeeperID
{
get { return Program.Vars["pwkeeperid"]; }
set { Program.Vars["pwkeeperid"] = value; }
}
public static void PoleTwinIni()
{
var Map = Kernel.Maps[2072];
Pole = (SobNpcSpawn)Map.Npcs[819];
LeftGate = (SobNpcSpawn)Map.Npcs[516076];
RightGate = (SobNpcSpawn)Map.Npcs[516077];
}
public static void Start()
{
object[] name;
if (LeftGate == null) return;
Scores = new SafeDictionary<uint, Guild>(100);
StartTime = DateTime.Now;
LeftGate.Mesh = (ushort)(240 + LeftGate.Mesh % 10);
RightGate.Mesh = (ushort)(270 + LeftGate.Mesh % 10);
name = new object[] { "Quest PoleTwin Has Started Go To Guild Controller At TwinCity (352,337)" };
Kernel.SendWorldMessage(new Message(string.Concat(name), "ALLUSERS", "PoleTwin", System.Drawing.Color.Red, 2500), Program.GamePool);
Kernel.SendWorldMessage(new Message("PoleTwin has began!", System.Drawing.Color.Red, Message.Center), Program.GamePool);
FirstRound = true;
foreach (Guild guild in Kernel.Guilds.Values)
{
guild.PTScore = 0;
}
Update upd = new Update(true);
upd.UID = LeftGate.UID;
upd.Append(Update.Mesh, LeftGate.Mesh);
upd.Append(Update.Hitpoints, LeftGate.Hitpoints);
Kernel.SendWorldMessage(upd, Program.GamePool, (ushort)2072);
upd.Clear();
upd.UID = RightGate.UID;
upd.Append(Update.Mesh, RightGate.Mesh);
upd.Append(Update.Hitpoints, RightGate.Hitpoints);
Kernel.SendWorldMessage(upd, Program.GamePool, (ushort)2072);
Claim = false;
IsWar = true;
}
public static void Reset()
{
Scores = new SafeDictionary<uint, Guild>(100);
LeftGate.Mesh = (ushort)(240 + LeftGate.Mesh % 10);
RightGate.Mesh = (ushort)(270 + LeftGate.Mesh % 10);
LeftGate.Hitpoints = LeftGate.MaxHitpoints;
RightGate.Hitpoints = RightGate.MaxHitpoints;
Pole.Hitpoints = Pole.MaxHitpoints;
Update upd = new Update(true);
upd.UID = LeftGate.UID;
upd.Append(Update.Mesh, LeftGate.Mesh);
upd.Append(Update.Hitpoints, LeftGate.Hitpoints);
Kernel.SendWorldMessage(upd, Program.GamePool, (ushort)2072);
upd.Clear();
upd.UID = RightGate.UID;
upd.Append(Update.Mesh, RightGate.Mesh);
upd.Append(Update.Hitpoints, RightGate.Hitpoints);
Kernel.SendWorldMessage(upd, Program.GamePool, (ushort)2072);
foreach (Guild guild in Kernel.Guilds.Values)
{
guild.PTScore = 0;
}
IsWar = true;
}
public static void FinishRound()
{
if (PoleKeeper != null && !FirstRound)
{
if (PoleKeeper.Wins == 0)
PoleKeeper.Losts++;
else
PoleKeeper.Wins--;
Database.GuildTable.UpdateGuildWarStats(PoleKeeper);
}
LastWin = Time32.Now;
FirstRound = false;
SortScores(out PoleKeeper);
if (PoleKeeper != null)
{
KeeperID = PoleKeeper.ID;
Kernel.SendWorldMessage(new Message("The guild, " + PoleKeeper.Name + ", owned by " + PoleKeeper.LeaderName + " has won this PoleTwin round!", System.Drawing.Color.Red, Message.Center), Program.GamePool);
Kernel.SendWorldMessage(new Message("It is generald pardon time. You have 5 minutes to leave, run for your life!", System.Drawing.Color.White, Message.TopLeft), Program.GamePool, (ushort)6001);
if (PoleKeeper.Losts == 0)
PoleKeeper.Wins++;
else
PoleKeeper.Losts--;
Database.GuildTable.UpdateGuildWarStats(PoleKeeper);
Pole.Name = PoleKeeper.Name;
}
Pole.Hitpoints = Pole.MaxHitpoints;
Kernel.SendWorldMessage(Pole, Program.GamePool, (ushort)2072);
Reset();
}
public static void End()
{
if (PoleKeeper != null)
{
Kernel.SendWorldMessage(new Message("The guild, " + PoleKeeper.Name + ", owned by " + PoleKeeper.LeaderName + " has won this PoleTwin!---PoleTwin has ended!", System.Drawing.Color.White, Message.Center), Program.GamePool);
//Conquer_Online_Server.Database.EntityTable.Status2();
}
else
{
Kernel.SendWorldMessage(new Message("PoleTwin has ended and there was no winner!", System.Drawing.Color.Red, Message.Center), Program.GamePool);
//Conquer_Online_Server.Database.EntityTable.Status2();
}
IsWar = false;
Claim = true;
UpdatePole(Pole);
foreach (Client.GameClient client in Program.GamePool)
{
//client.Entity.Status2 = 0;
//client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.TopDeputyLeader);
//client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.TopGuildLeader);
}
}
public static void AddScore(uint addScore, Guild guild)
{
if (guild != null)
{
guild.PTScore += addScore;
changed = true;
if (!Scores.ContainsKey(guild.ID))
Scores.Add(guild.ID, guild);
if ((int)Pole.Hitpoints <= 0)
{
FinishRound();
return;
}
}
}
public static void SendScores()
{
if (scoreMessages == null)
scoreMessages = new string[0];
if (Scores.Count == 0)
return;
if (changed)
SortScores(out CurrentTopLeader);
for (int c = 0; c < scoreMessages.Length; c++)
{
Message msg = new Message(scoreMessages[c], System.Drawing.Color.Red, c == 0 ? Message.FirstRightCorner : Message.ContinueRightCorner);
Kernel.SendWorldMessage(msg, Program.GamePool, (ushort)2072);
//Kernel.SendWorldMessage(msg, Program.GamePool, (ushort)6001);
}
}
private static void SortScores(out Guild winner)
{
winner = null;
List<string> ret = new List<string>();
int Place = 0;
foreach (Guild guild in Scores.Values.OrderByDescending((p) => p.PTScore))
{
if (Place == 0)
winner = guild;
string str = "No " + (Place + 1).ToString() + ": " + guild.Name + "(" + guild.PTScore + ")";
ret.Add(str);
Place++;
if (Place == 4)
break;
}
changed = false;
scoreMessages = ret.ToArray();
}
private static void UpdatePole(SobNpcSpawn pole)
{
new Database.MySqlCommand(Conquer_Online_Server.Database.MySqlCommandType.UPDATE)
.Update("sobnpcs").Set("name", pole.Name).Set("life", Pole.Hitpoints).Where("id", pole.UID).Execute();
}
}
}
public static void ReceiveAttack(Game.Entity attacker, SobNpcSpawn attacked, Attack attack, uint damage, Database.SpellInformation spell)
if (attacker.MapID == 2072)
{
if (attacked.UID == 819)
{
if (Game.PoleTwin.PoleKeeper == attacker.Owner.Guild)
return;
if (attacked.Hitpoints <= damage)
attacked.Hitpoints = 0;
attacker.Money += 1000;
Game.PoleTwin.AddScore(damage, attacker.Owner.Guild);
}
}
public static bool CanAttack(Game.Entity attacker, SobNpcSpawn attacked, Database.SpellInformation spell)
if (attacker.MapID == 2072)
{
if (attacker.GuildID == 0 || !Game.PoleTwin.IsWar)
{
if (attacked.UID == 819)
{
return false;
}
}
if (Game.PoleTwin.PoleKeeper != null)
{
if (Game.PoleTwin.PoleKeeper == attacker.Owner.Guild)
{
if (attacked.UID == 819)
{
return false;
}
}
else if (attacked.UID == 516077 || attacked.UID == 516076)
{
if (Game.PoleTwin.PoleKeeper == attacker.Owner.Guild)
{
if (attacker.PKMode == Enums.PKMode.Team)
return false;
}
}
}
}
Network.GamePackets.SubNpcsSpawn
private Client.GameClient owner_null = null;
if (MapID == 2072)
{
if (UID != 819)
{
if (Hitpoints != 0 || Mesh != 251 && Mesh != 281)
{
if (Mesh == 241)
Mesh = (ushort)(250 + Mesh % 10);
else
Mesh = (ushort)(280 + Mesh % 10);
Update upd = new Update(true);
upd.UID = UID;
upd.Append(Update.Mesh, Mesh);
killer.Owner.SendScreen(upd, true);
Hitpoints = 0;
}
Attack attack = new Attack(true);
attack.Attacker = killer.UID;
attack.Attacked = UID;
attack.AttackType = Network.GamePackets.Attack.Kill;
attack.X = X;
attack.Y = Y;
killer.Owner.Send(attack);
killer.KOCount++;
}
}
else
{
Attack attack = new Attack(true);
attack.Attacker = killer.UID;
attack.Attacked = UID;
attack.AttackType = Network.GamePackets.Attack.Kill;
attack.X = X;
attack.Y = Y;
killer.Owner.Send(attack);
Hitpoints = MaxHitpoints;
Update upd = new Update(true);
upd.UID = UID;
upd.Append(Update.Hitpoints, MaxHitpoints);
killer.Owner.SendScreen(upd, true);
}
public uint EWarScore;
public uint PTScore;
public bool PoleKeeper3
{
get
{
return PoleTwin.Poles.Name == Name;
}
}
#region Dis City
#region PoleTwin
if (DateTime.Now.DayOfWeek != DayOfWeek.Saturday && DateTime.Now.DayOfWeek != DayOfWeek.Sunday)
if (!Game.PoleTwin.IsWar)
{
if (Now64.Hour == 18 && Now64.Minute == 00 && Now64.Second == 04)
{
Game.PoleTwin.Start();
//Kernel.SendWorldMessage(new Message("Elite GW began!", Color.White, Message.Center), Program.GamePool);
foreach (var client in Program.GamePool)
if (client.Entity.MapID == 6000 || client.Entity.MapID == 6001 || client.Entity.MapID == 6002 || client.Entity.MapID == 6003 || client.Entity.MapID == 6004)
return;
foreach (var client in Program.GamePool)
if (client.Entity.GuildID != 0)
client.MessageBox("PoleTwin has begun! Would you like to join? ",
p => { p.Entity.Teleport(1002, 453, 342); }, null);
}
}
if (Game.PoleTwin.IsWar)
{
if (Time32.Now > Game.PoleTwin.ScoreSendStamp.AddSeconds(3))
{
Game.PoleTwin.ScoreSendStamp = Time32.Now;
Game.PoleTwin.SendScores();
}
if (Now64.Hour == 18 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("10 Minutes left till PoleTwin End Hurry kick other Guild's Ass!.", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
}
if (Game.PoleTwin.IsWar)
{
if (Now64.Hour == 19 && Now64.Minute == 00 && Now64.Second == 04)
{
Game.PoleTwin.End();
{
//Kernel.SendWorldMessage(new Network.GamePackets.Message("Elite GW has Ended", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
}
}
#endregion
Game.ClanWar.Initiate();
Game.PoleTwin.PoleTwinIni();
Console.WriteLine("PoleTwin initializated.");
516076 iii 26 251 2072 439 424 10000000 10000000 24 21 0 0
516077 iii 26 277 2072 501 355 10000000 10000000 27 21 0 0
819 FlagBase 10 1137 2072 438 377 10000000 10000000 0 17 1 0
1155220 0 0 PoleTwin 2 28080 -1 1002 349 342 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4178 FoxMajor 5 1003 10000000 0 4294967295 4294967295 50000 99 99 0 0 0 0 10 10 0 2000 1000 200 39 0 0 0 0 500 0 0 0 0 0 0 0 0 0 1002 0 100 1 10000 0 0 0 0 0 0 0
4179 LionMajor 6 1003 10000000 0 4294967295 4294967295 50000 99 99 0 0 0 0 3 3 0 20 1000 200 39 0 0 0 0 500 0 0 0 0 0 0 0 0 0 10381 0 100 1 10000 0 0 0 0 0 0 0
4180 DogMajor 7 1003 10000000 0 4294967295 4294967295 50000 99 99 0 0 0 0 10 10 0 2000 1000 200 39 0 0 0 0 500 0 0 0 0 0 0 0 0 0 11110 0 100 1 10000 0 0 0 0 0 0 0
4181 CatMajor 8 1003 10000000 0 4294967295 4294967295 50000 99 99 0 0 0 0 10 10 0 200 1000 200 39 0 0 0 0 500 0 0 0 0 0 0 0 0 0 11660 0 100 1 10000 0 0 0 0 0 0 0
4182 EagleMajor 9 1003 10000000 0 4294967295 4294967295 50000 99 99 0 0 0 0 3 3 0 200 1000 200 39 0 0 0 0 500 0 0 0 0 0 0 0 0 0 6000 0 100 1 10000 0 0 0 0 0 0 0
4183 ProfessorMajor 10 1003 10000000 0 4294967295 4294967295 50000 99 99 0 0 0 0 2 15 0 1000 1000 200 39 0 0 0 0 500 0 0 0 0 0 0 0 0 0 1046 0 100 1 10000 0 0 0 0 0 0 0
12414155 2072 434 378 0 0 1 20 1 4178 0 0 0 0
12414156 2072 438 382 0 0 1 20 1 4179 0 0 0 0
12414157 2072 442 377 0 0 1 20 1 4180 0 0 0 0
12414158 2072 441 377 0 0 1 20 1 4181 0 0 0 0
12414159 2072 435 380 0 0 1 20 1 4182 0 0 0 0
12414160 2072 439 375 0 0 1 20 1 4183 0 0 0 0
Database.MonsterTable.cs
mf.ViewRange = reader.ReadUInt16("view_range");
mf.PoleTwin = mf.Name.Contains("Major");
public uint Type;
public bool PoleTwin;
if (Attacker.MonsterInfo != null)
if (Attacker.MonsterInfo.Name.Contains("Major"))
Damage = 64000 * 2;
#region Guard
#region New Guard Done By Professor
#region Fox
if (mt.Type == 5)
{//
entity.UID += 0xc3500 + 0xc3500;
// entity.AddFlag(Update.Flags.Senior);
//_String str = new _String(true);
//str.Texts.Add("break_start");
// str.Texts.Add("mass1");
//Effect.break_start(client);
//entity.Owner.SendScreen(str, true);
//Network.Writer.WriteUInt32(200427, 72 + 4, entity.SpawnPacket);//steed
// Network.Writer.WriteUInt32(112259, 44 + 4, entity.SpawnPacket);// head.
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// head color.
// Network.Writer.WriteUInt32(134309, 52 + 4, entity.SpawnPacket);// Armor.
//Network.Writer.WriteUInt32(822053, 200 + 4, entity.SpawnPacket);//ArmorSoul
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// Armor color.
Network.Writer.WriteUInt32(1364459535, 227 + 4, entity.SpawnPacket);//flags
// Network.Writer.WriteString(mt.gui_type, 241, entity.SpawnPacket);//
//Network.Writer.WriteUInt32(3000, 100 + 4, entity.SpawnPacket);//act
Network.Writer.WriteUInt32(188285, 48 + 4, entity.SpawnPacket);//Garment
Network.Writer.WriteUInt32(421439, 60 + 4, entity.SpawnPacket);// right wep.
Network.Writer.WriteUInt32(800513, 208 + 4, entity.SpawnPacket); //right soul
//Network.Writer.WriteUInt32(612439, 56 + 4, entity.SpawnPacket);//left wep.
// Network.Writer.WriteUInt32(360149, 68 + 4, entity.SpawnPacket);//RightWeaponAccessor
// Network.Writer.WriteUInt32(360149, 64 + 4, entity.SpawnPacket);//LeftWeaponAccessoriy
Network.Writer.WriteUInt64(200492, 76 + 4, entity.SpawnPacket);//MountArmor
//Network.Writer.WriteUInt32(535, 98 + 4, entity.SpawnPacket);//Hair
}
#endregion
#region Lion
if (mt.Type == 6)
{//
entity.UID += 0xc3500 + 0xc3500;
// entity.AddFlag(Update.Flags.Senior);
//_String str = new _String(true);
//str.Texts.Add("break_start");
// str.Texts.Add("mass1");
//Effect.break_start(client);
//entity.Owner.SendScreen(str, true);
//Network.Writer.WriteUInt32(200427, 72 + 4, entity.SpawnPacket);//steed
// Network.Writer.WriteUInt32(112259, 44 + 4, entity.SpawnPacket);// head.
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// head color.
// Network.Writer.WriteUInt32(134309, 52 + 4, entity.SpawnPacket);// Armor.
//Network.Writer.WriteUInt32(822053, 200 + 4, entity.SpawnPacket);//ArmorSoul
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// Armor color.
Network.Writer.WriteUInt32(1364459535, 227 + 4, entity.SpawnPacket);//flags
// Network.Writer.WriteString(mt.gui_type, 241, entity.SpawnPacket);//
//Network.Writer.WriteUInt32(3000, 100 + 4, entity.SpawnPacket);//act
Network.Writer.WriteUInt32(188285, 48 + 4, entity.SpawnPacket);//Garment
Network.Writer.WriteUInt32(610439, 60 + 4, entity.SpawnPacket);// right wep.
Network.Writer.WriteUInt32(800722, 208 + 4, entity.SpawnPacket); //right soul
Network.Writer.WriteUInt32(800722, 204 + 4, entity.SpawnPacket); //left soul
Network.Writer.WriteUInt32(610439, 56 + 4, entity.SpawnPacket);//left wep.
// Network.Writer.WriteUInt32(360149, 68 + 4, entity.SpawnPacket);//RightWeaponAccessor
// Network.Writer.WriteUInt32(360149, 64 + 4, entity.SpawnPacket);//LeftWeaponAccessoriy
Network.Writer.WriteUInt64(200492, 76 + 4, entity.SpawnPacket);//MountArmor
//Network.Writer.WriteUInt32(535, 98 + 4, entity.SpawnPacket);//Hair
}
#endregion
#region Dog
if (mt.Type == 7)
{//
entity.UID += 0xc3500 + 0xc3500;
// entity.AddFlag(Update.Flags.Senior);
//_String str = new _String(true);
//str.Texts.Add("break_start");
// str.Texts.Add("mass1");
//Effect.break_start(client);
//entity.Owner.SendScreen(str, true);
//Network.Writer.WriteUInt32(200427, 72 + 4, entity.SpawnPacket);//steed
// Network.Writer.WriteUInt32(112259, 44 + 4, entity.SpawnPacket);// head.
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// head color.
// Network.Writer.WriteUInt32(134309, 52 + 4, entity.SpawnPacket);// Armor.
//Network.Writer.WriteUInt32(822053, 200 + 4, entity.SpawnPacket);//ArmorSoul
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// Armor color.
Network.Writer.WriteUInt32(1364459535, 227 + 4, entity.SpawnPacket);//flags
// Network.Writer.WriteString(mt.gui_type, 241, entity.SpawnPacket);//
//Network.Writer.WriteUInt32(3000, 100 + 4, entity.SpawnPacket);//act
Network.Writer.WriteUInt32(188285, 48 + 4, entity.SpawnPacket);//Garment
Network.Writer.WriteUInt32(611439, 60 + 4, entity.SpawnPacket);// right wep.
Network.Writer.WriteUInt32(800809, 208 + 4, entity.SpawnPacket); //right soul
Network.Writer.WriteUInt32(800804, 204 + 4, entity.SpawnPacket); //left soul
Network.Writer.WriteUInt32(612439, 56 + 4, entity.SpawnPacket);//left wep.
// Network.Writer.WriteUInt32(360149, 68 + 4, entity.SpawnPacket);//RightWeaponAccessor
// Network.Writer.WriteUInt32(360149, 64 + 4, entity.SpawnPacket);//LeftWeaponAccessoriy
Network.Writer.WriteUInt64(200492, 76 + 4, entity.SpawnPacket);//MountArmor
//Network.Writer.WriteUInt32(535, 98 + 4, entity.SpawnPacket);//Hair
}
#endregion
#region Cat
if (mt.Type == 8)
{//
entity.UID += 0xc3500 + 0xc3500;
// entity.AddFlag(Update.Flags.Senior);
//_String str = new _String(true);
//str.Texts.Add("break_start");
// str.Texts.Add("mass1");
//Effect.break_start(client);
//entity.Owner.SendScreen(str, true);
//Network.Writer.WriteUInt32(200427, 72 + 4, entity.SpawnPacket);//steed
// Network.Writer.WriteUInt32(112259, 44 + 4, entity.SpawnPacket);// head.
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// head color.
//Network.Writer.WriteUInt32(113300, 52 + 4, entity.SpawnPacket);// Armor.
//Network.Writer.WriteUInt32(822053, 200 + 4, entity.SpawnPacket);//ArmorSoul
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// Armor color.
Network.Writer.WriteUInt32(1364459535, 227 + 4, entity.SpawnPacket);//flags
// Network.Writer.WriteString(mt.gui_type, 241, entity.SpawnPacket);//
//Network.Writer.WriteUInt32(3000, 100 + 4, entity.SpawnPacket);//act
Network.Writer.WriteUInt32(188285, 48 + 4, entity.SpawnPacket);//Garment
Network.Writer.WriteUInt32(613429, 60 + 4, entity.SpawnPacket);// right wep.
Network.Writer.WriteUInt32(800916, 208 + 4, entity.SpawnPacket); //right soul
Network.Writer.WriteUInt32(800916, 204 + 4, entity.SpawnPacket); //left soul
Network.Writer.WriteUInt32(613429, 56 + 4, entity.SpawnPacket);//left wep.
// Network.Writer.WriteUInt32(360149, 68 + 4, entity.SpawnPacket);//RightWeaponAccessor
// Network.Writer.WriteUInt32(360149, 64 + 4, entity.SpawnPacket);//LeftWeaponAccessoriy
Network.Writer.WriteUInt64(200492, 76 + 4, entity.SpawnPacket);//MountArmor
//Network.Writer.WriteUInt32(535, 98 + 4, entity.SpawnPacket);//Hair
}
#endregion
#region Eagle
if (mt.Type == 9)
{//
entity.UID += 0xc3500 + 0xc3500;
// entity.AddFlag(Update.Flags.Senior);
//_String str = new _String(true);
//str.Texts.Add("break_start");
// str.Texts.Add("mass1");
//Effect.break_start(client);
//entity.Owner.SendScreen(str, true);
//Network.Writer.WriteUInt32(200427, 72 + 4, entity.SpawnPacket);//steed
// Network.Writer.WriteUInt32(112259, 44 + 4, entity.SpawnPacket);// head.
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// head color.
// Network.Writer.WriteUInt32(134309, 52 + 4, entity.SpawnPacket);// Armor.
//Network.Writer.WriteUInt32(822053, 200 + 4, entity.SpawnPacket);//ArmorSoul
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// Armor color.
Network.Writer.WriteUInt32(1364459535, 227 + 4, entity.SpawnPacket);//flags
// Network.Writer.WriteString(mt.gui_type, 241, entity.SpawnPacket);//
//Network.Writer.WriteUInt32(3000, 100 + 4, entity.SpawnPacket);//act
Network.Writer.WriteUInt32(188285, 48 + 4, entity.SpawnPacket);//Garment
Network.Writer.WriteUInt32(601439, 60 + 4, entity.SpawnPacket);// right wep.
Network.Writer.WriteUInt32(800017, 208 + 4, entity.SpawnPacket); //right soul
Network.Writer.WriteUInt32(800017, 204 + 4, entity.SpawnPacket); //left soul
Network.Writer.WriteUInt32(601439, 56 + 4, entity.SpawnPacket);//left wep.
// Network.Writer.WriteUInt32(360149, 68 + 4, entity.SpawnPacket);//RightWeaponAccessor
// Network.Writer.WriteUInt32(360149, 64 + 4, entity.SpawnPacket);//LeftWeaponAccessoriy
Network.Writer.WriteUInt64(200492, 76 + 4, entity.SpawnPacket);//MountArmor
//Network.Writer.WriteUInt32(535, 98 + 4, entity.SpawnPacket);//Hair
}
#endregion
#region Professor
if (mt.Type == 10)
{//
entity.UID += 0xc3500 + 0xc3500;
// entity.AddFlag(Update.Flags.Senior);
//_String str = new _String(true);
//str.Texts.Add("break_start");
// str.Texts.Add("mass1");
//Effect.break_start(client);
//entity.Owner.SendScreen(str, true);
//Network.Writer.WriteUInt32(200427, 72 + 4, entity.SpawnPacket);//steed
// Network.Writer.WriteUInt32(112259, 44 + 4, entity.SpawnPacket);// head.
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// head color.
// Network.Writer.WriteUInt32(134309, 52 + 4, entity.SpawnPacket);// Armor.
//Network.Writer.WriteUInt32(822053, 200 + 4, entity.SpawnPacket);//ArmorSoul
//Network.Writer.WriteUInt16((byte)Enums.Color.Black, 139 + 4, entity.SpawnPacket);// Armor color.
Network.Writer.WriteUInt32(1364459535, 227 + 4, entity.SpawnPacket);//flags
// Network.Writer.WriteString(mt.gui_type, 241, entity.SpawnPacket);//
//Network.Writer.WriteUInt32(3000, 100 + 4, entity.SpawnPacket);//act
Network.Writer.WriteUInt32(192565, 48 + 4, entity.SpawnPacket);//Garment
Network.Writer.WriteUInt32(420439, 60 + 4, entity.SpawnPacket);// right wep.
Network.Writer.WriteUInt32(800110, 208 + 4, entity.SpawnPacket); //right soul
Network.Writer.WriteUInt32(800110, 204 + 4, entity.SpawnPacket); //left soul
Network.Writer.WriteUInt32(420439, 56 + 4, entity.SpawnPacket);//left wep.
// Network.Writer.WriteUInt32(360149, 68 + 4, entity.SpawnPacket);//RightWeaponAccessor
// Network.Writer.WriteUInt32(360149, 64 + 4, entity.SpawnPacket);//LeftWeaponAccessoriy
Network.Writer.WriteUInt64(200492, 76 + 4, entity.SpawnPacket);//MountArmor
Network.Writer.WriteUInt32(535, 98 + 4, entity.SpawnPacket);//Hair
}
#endregion
#endregion
if (monster.MonsterInfo.Guard}
if (monster.MonsterInfo.Guard || monster.MonsterInfo.PoleTwin)
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
لاول مره كويسته للبرفكشن :) | Users | تطوير سيرفرات كونكر | 11 | 2024-07-04 01:13 PM |
كويسته المهما اليوميه كامله | محمد ياسر | تطوير سيرفرات كونكر | 6 | 2024-03-08 02:30 AM |
كويسته ماتريكس | zonfor | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-20 06:51 PM |
11 كويسته اهم على مدار الساعه شغالين | Mr. Co | تطوير سيرفرات كونكر | 6 | 2019-07-23 12:44 PM |
كويسته DemonDiamond | Amr Khalid | تطوير سيرفرات كونكر | 1 | 2019-05-07 01:50 PM |