|
You last visited: Today at 03:05
Advertisement
[Release] 5370+ ClassPkEnvoy
Discussion on [Release] 5370+ ClassPkEnvoy within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
06/08/2011, 05:38
|
#16
|
elite*gold: 0
Join Date: Sep 2010
Posts: 73
Received Thanks: 9
|
Quote:
Originally Posted by killersub
the status effects SHOULD be in Enums.cs... anyways I'm nice so here is the Status Effect:
Code:
public enum StatusEffectEn : ulong
{
Normal = 0x0,
BlueName = 0x1,
Poisoned = 0x2,
Gone = 0x4,
XPStart = 0x10,
TeamLeader = 0x40,
Accuracy = 0x80,
Shield = 0x100,
Stigma = 0x200,
Dead = 0x420,
Invisible = 0x400000,
RedName = 0x4000,
BlackName = 0x8000,
SuperMan = 0x40000,
Cyclone = 0x800000,
Fly = 0x8000000,
Pray = 0x40000000,
Blessing = 8589934592,
TopGuildLeader = 17179869184,
TopDeputyLeader = 34359738368,
MonthlyPKChampion = 68719476736,
WeeklyPKChampion = 137438953472,
TopWarrior = 274877906944,
TopTrojan = 549755813888,
TopArcher = 1099511627776,
TopWaterTaoist = 2199023255552,
TopFireTaoist = 4398046511104,
TopNinja = 8796093022208, //Ninja halo
ShurikenVortex = 70368744177664,
FatalStrike = 140737488355328,
Flashy = 281474976710656,
Ride = 1125899906842624
}
CHECK to make sure you added the NPC RIGHT in the sql tables...
also check this in the code and change it to w.e you want(the NPC ID):
Code:
[COLOR="Red"]case 3546:[/COLOR]
|
the ID bro is already thre at navicat do i change it or make one
|
|
|
06/08/2011, 19:28
|
#17
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by exorcismman
the ID bro is already thre at navicat do i change it or make one
|
do either one of the 2 lol.
If I were you I'd change the NPC ID in the source to something you do not have, then update it in the SQL with THAT NPC ID.
|
|
|
06/09/2011, 19:19
|
#18
|
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
|
hey .. could you make me one example for prize awarder npc .. i tried one but its not working ...and btw .. why i cant run on the map.. i can only jump. i cant buy scrolls
|
|
|
06/19/2011, 03:59
|
#19
|
elite*gold: 0
Join Date: Sep 2009
Posts: 95
Received Thanks: 2
|
Quote:
Originally Posted by killersub
do either one of the 2 lol.
If I were you I'd change the NPC ID in the source to something you do not have, then update it in the SQL with THAT NPC ID.
|
Error 13 The name'_Status' dont exist in the actual document D:\server5375fix\5375 Fixed and all new working\Source 5375\Source\Game\Entity.cs 236 56 Conquer_Online_Server_x86
this is my error help please
|
|
|
06/19/2011, 19:54
|
#20
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by rockymiperro
Error 13 The name'_Status' dont exist in the actual document D:\server5375fix\5375 Fixed and all new working\Source 5375\Source\Game\Entity.cs 236 56 Conquer_Online_Server_x86
this is my error help please
|
EDIT: fixed the missing variable. look again at the first post.
|
|
|
06/21/2011, 03:01
|
#21
|
elite*gold: 0
Join Date: Apr 2008
Posts: 262
Received Thanks: 343
|
why i cant walk in the map it's crash when i try to walk
and can you look and tell me what's wrong
1st part look to case 706 in all prize
Code:
#region Prize For Trojan
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
and here is cq_npc part
Code:
INSERT INTO `cq_npc` VALUES ('0706', '0', 'ClassPKEscort', '0002', '7060', '1730', '0008', '0036', '0', '0');
1730 is map ID when i go into this map i don't find any npc
why ? what i did wrong ?
|
|
|
06/22/2011, 03:01
|
#22
|
elite*gold: 0
Join Date: Dec 2008
Posts: 10
Received Thanks: 0
|
hey man i need ur list of commands for the source DB 5375+ or send me in email
|
|
|
06/22/2011, 03:07
|
#23
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by nesma_jolyet
why i cant walk in the map it's crash when i try to walk
and can you look and tell me what's wrong
1st part look to case 706 in all prize
Code:
#region Prize For Trojan
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
[COLOR="Red"]case 706:[/COLOR]
{
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.WorldMessage("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
and here is cq_npc part
Code:
INSERT INTO `cq_npc` VALUES ('0706', '0', 'ClassPKEscort', '0002', '7060', '1730', '0008', '0036', '0', '0');
1730 is map ID when i go into this map i don't find any npc
why ? what i did wrong ?
|
It's not that HARD to make an NPC that says, "Want to go back?" with 1 Link saying "Yes."
|
|
|
06/22/2011, 19:01
|
#24
|
elite*gold: 0
Join Date: Apr 2008
Posts: 262
Received Thanks: 343
|
Quote:
Originally Posted by killersub
It's not that HARD to make an NPC that says, "Want to go back?" with 1 Link saying "Yes."
|
it's my first time to learn C# " i Fix the problem but the NPC can give you prize in any map expect 1730 ? i try to put this NPC in other maps but it's not work any explain how to set new map and put this NPC in it "
and the winner cannot get top Trojan halo ?
|
|
|
06/23/2011, 16:15
|
#25
|
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
|
nvm error fixt
|
|
|
06/23/2011, 16:42
|
#26
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
adding this code:
Quote:
wont save it for 7 days.. I think there is another way how to save that halo for 7 days...
|
|
|
06/23/2011, 21:24
|
#27
|
elite*gold: 0
Join Date: Apr 2008
Posts: 262
Received Thanks: 343
|
Quote:
Originally Posted by marlyandedsel
adding this code:wont save it for 7 days.. I think there is another way how to save that halo for 7 days...
|
does it work with you ?
|
|
|
06/24/2011, 03:08
|
#28
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by marlyandedsel
adding this code:wont save it for 7 days.. I think there is another way how to save that halo for 7 days...
|
that's a temporary fix until I find the "other" way you mention.
|
|
|
06/24/2011, 04:02
|
#29
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
why don't you Put a field in the entities where you put field as a boolean save it, and when the entities load check if the field is equal to true then add the effect(halo), then put some reset code to make it false on that field when it comes to 7 days that would be in the database part..... I'm just giving Ideas.. but good release anyway... many will start from that code you release.......
|
|
|
06/24/2011, 08:13
|
#30
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by marlyandedsel
why don't you Put a field in the entities where you put field as a boolean save it, and when the entities load check if the field is equal to true then add the effect(halo), then put some reset code to make it false on that field when it comes to 7 days that would be in the database part..... I'm just giving Ideas.. but good release anyway... many will start from that code you release.......
|
exactly. it is just a base code, nothing more nothing less. but I will look into what you have mentioned sir, thanks.
|
|
|
Similar Threads
|
[Exclusive] New Data Base For ClassPkEnvoy .
12/25/2009 - CO2 PServer Guides & Releases - 4 Replies
In the name of God the Merciful
I have made database called TQElgahed
TQElgahed
|
[Request] ClassPKEnvoy
07/10/2009 - CO2 Private Server - 1 Replies
is there anyone knw ClassPKEnvoy lookface?:D
|
ClassPKEnvoy Wanted
06/24/2009 - CO2 Private Server - 13 Replies
Hi Everyone I'm Use Tq Binary Patch 5095 But I think i lost npc and can't find it i lost ClassPKEnvoy for Top Chare i think it's work at my patch cuz Top Guild Work Good But Top Chare Not Work Cuz i Don't Have This Npc
|
All times are GMT +2. The time now is 03:05.
|
|