#region ClassPKEnvoy
case 3546:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I hold every Class PK Tournament for Trojans, Warriors, Ninjas, Taoists And Archers, So Tell me your character Class so I can Sign you up at 19:45 GMT!");
dialog.Text("Remember: Monks are not able to attend the Pk Tourny.");
dialog.Link("I'm a Trojan [Saturday]", 1);
dialog.Link("I'm a Warrior [Sunday]", 2);
dialog.Link("I'm a Ninja [Monday]", 3);
dialog.Link("I'm a WaterTaoist [Tuesday]", 4);
dialog.Link("I'm a FireTaoist [Wednesday]", 5);
dialog.Link("I'm an Archer [Thursday]", 6);
dialog.Link("Just passing by.", 255);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
{
if (client.Entity.Class == 15 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
{
client.Entity.Teleport(1730, 34, 19);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("If you want to Sign Up, you must choose your Right character in the right day and come at 19:45");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Link("sorry...I will come the correct day", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else if (npcRequest.OptionID == 2)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
{
if (client.Entity.Class == 25 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
{
client.Entity.Teleport(1731, 34, 19);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("If you want to Sign Up, you must choose your Right character in the right day and come at 19:45");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Link("sorry...I will come the correct day", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else if (npcRequest.OptionID == 3)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
{
if (client.Entity.Class == 55 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
{
client.Entity.Teleport(1732, 34, 19);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("If you want Sign Up,you must choose your Right character in the right day and come at 19:45");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Link("sorry...I will come the correct day", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else if (npcRequest.OptionID == 4)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Tuesday)
{
if (client.Entity.Class == 135 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
{
client.Entity.Teleport(1733, 34, 19);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("If you want to Sign Up, you must choose your Right character in the right day and come at 19:45");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Link("sorry...I will come the correct day", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else if (npcRequest.OptionID == 5)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday)
{
if (client.Entity.Class == 145 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
{
client.Entity.Teleport(1734, 34, 19);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("If you want Sign Up,you must choose your Right character in the right day and come at 19:45");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Link("sorry...I will come the correct day", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else if (npcRequest.OptionID == 6)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
{
if (client.Entity.Class == 45 && (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 45))
{
client.Entity.Teleport(1735, 34, 19);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("If you want to Sign Up, you must choose your Right character in the right day and come at 19:45");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Link("sorry...I will come the correct day", 255);
dialog.Avatar(0);
dialog.Send();
}
}
break;
}
#endregion
top classes prize:
Quote:
#region Prize For Trojan
case 7898521:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
{
if (client.Entity.Class == 15 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopTrojan);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Trojan PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10!");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopTrojan);
break;
}
#endregion
#region Prize For Warrior
case 7898522:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
{
if (client.Entity.Class == 25 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopWarrior);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Warrior PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopWarrior);
break;
}
#endregion
#region Prize For Ninja
case 7898523:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
{
if (client.Entity.Class == 55 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopNinja);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Ninja PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopNinja);
break;
}
#endregion
#region Prize For WaterTaoist
case 7898524:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Tuesday)
{
if (client.Entity.Class == 135 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopWaterTaoist);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the WaterTaoist PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopWaterTaoist);
break;
}
#endregion
#region Prize For FireTaoist
case 7898525:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday)
{
if (client.Entity.Class == 145 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopFireTaoist);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the FireTaoist PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopFireTaoist);
break;
}
#endregion
#region Prize For Archer
case 7898526:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
{
if (client.Entity.Class == 45 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopArcher);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Archer PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopArcher);
break;
}
#endregion
put this into ur entity.cs
Quote:
public void UpdateHalo(bool ToScreen, bool SendOnly, bool ToRemove, Enums.StatusEffectEn OffSet)
{
switch (EntityFlag)
{
case Game.EntityFlag.Player:
if (OffSet != Enums.StatusEffectEn.Normal)
{
if (!SendOnly && !ToRemove && !_Status.ContainsBitValue((int)OffSet))
_Status.AddBitValue((int)OffSet);
else if (!SendOnly && ToRemove && _Status.ContainsBitValue((int)OffSet))
_Status.RemoveBitValue((int)OffSet);
}
byte[] Packet = new byte[60];
Writer.WriteUInt16(52, 0, Packet);
Writer.WriteUInt16(10017, 2, Packet);
Writer.WriteUInt32(UID, 4, Packet);
Writer.WriteUInt32(1, 8, Packet);
Writer.WriteUInt32(25, 12, Packet);
_Status.Write(Packet, 16);
if (ToScreen && !ToRemove) Owner.SendScreen(Packet, false);
else if (ToScreen && ToRemove) Owner.SendScreen(Packet, true);
else Owner.Send(Packet);
break;
case Game.EntityFlag.Monster:
if (OffSet != Enums.StatusEffectEn.Normal)
{
if (!SendOnly && !ToRemove && !_Status.ContainsBitValue((int)OffSet))
_Status.AddBitValue((int)OffSet);
else if (!SendOnly && ToRemove && _Status.ContainsBitValue((int)OffSet))
_Status.RemoveBitValue((int)OffSet);
}
byte[] Packet2 = new byte[60];
Writer.WriteUInt16(52, 0, Packet2);
Writer.WriteUInt16(10017, 2, Packet2);
Writer.WriteUInt32(UID, 4, Packet2);
Writer.WriteUInt32(1, 8, Packet2);
Writer.WriteUInt32(25, 12, Packet2);
_Status.Write(Packet2, 16);
MonsterInfo.SendScreen(Packet2);
break;
}
}
Almost forgot, if you are getting the error of:
Quote:
Error 13 The name'_Status' dont exist in the actual document
then go to your Entity.cs and add this in your variables:
[Map]GuildWar 05/24/2011 - Flyff Private Server - 5 Replies Hallo :D,
möchte euch mal meine erste Version der Gw Map zeigen
sieht noch bischen komisch aus xD
Freue mich auf Kritik :>
Bitte bewerten (x/10) :)
http://img840.imageshack.us/img840/5882/neuz20110 52320241264.th.png
http://img832.imageshack.us/img832/1213/neuz20110 52320243337.th.png
http://img7.imageshack.us/img7/7195/neuz201105232 0243552.th.png
GuildWar... 02/19/2011 - Flyff Private Server - 6 Replies Hallo ePvP <3
Hab mal ne Frage an euch, hab schon vieles versucht aber habs nie richtig geschafft.
Unzwar will ich das der GW von selber startet, und nicht nur 1x die Woche sondern paar ma pro Tag. :o
AUTO_OPEN_IDC
{
7 18 30 // 요일 시(24시간ᕨ 5;식으로 입력) 분
7 17 30 // 요일 시(24시간ᕨ 5;식으로 입력) 분
}
WTS MY Guildwar CD Key Only PSC 11/17/2010 - Guild Wars Trading - 0 Replies WTS My Guild War CD Key Offers in Paysafecard Start Bid : 20€ B/O 30€ Pm me if u are interested
[Help] GuildWar 06/30/2009 - CO2 Private Server - 7 Replies how do I Make a Guild War in my servver?
I Use tq Binaries,
I added NPCs like CPAdmin,
Translated almost everything but i can't make a GW..:S help me please ;D