|
المشاركات 219 |
+التقييم 0.05 |
تاريخ التسجيل Dec 2011 |
الاقامة القاهرة |
نظام التشغيل |
رقم العضوية 149 |
#region Hunter
case 10101:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello you hunter or need to sat Prey");
dialog.Option("Sat a Prey", 1);
dialog.Option("I will Back Later", 255);
dialog.Option("Iam Hunter looking for a Prey", 3);
dialog.Send();
break;
}
case 3:
{
Conquer_Online_Server.Database.EntityTable.LoadPrey();
dialog.Text("Chosse The prey you need to kill");
dialog.Option("Select " + GameState.Hunter.Prey1 + "", 11);
dialog.Option("Select " + GameState.Hunter.Prey2 + "", 12);
dialog.Option("Select " + GameState.Hunter.Prey3 + "", 13);
dialog.Option("Next", 100);
dialog.Send();
break;
}
case 100 :
{
dialog.Text("Chosse The prey you need to kill");
dialog.Option("Select " + GameState.Hunter.Prey4 + "", 14);
dialog.Option("Select " + GameState.Hunter.Prey5 + "", 15);
dialog.Option("Select " + GameState.Hunter.Prey6 + "", 16);
dialog.Option("Next", 101);
dialog.Send();
break;
}
case 101:
{
dialog.Text("Chosse The prey you need to kill");
dialog.Option("Select " + GameState.Hunter.Prey7 + "", 17);
dialog.Option("Select " + GameState.Hunter.Prey8 + "", 18);
dialog.Option("Select " + GameState.Hunter.Prey9 + "", 19);
dialog.Option("Next", 102);
dialog.Send();
break;
}
case 102:
{
dialog.Text("Chosse The prey you need to kill");
dialog.Option("Select " + GameState.Hunter.Prey10 + "", 20); ;
dialog.Option("Later", 255);
dialog.Send();
break;
}
case 1:
{
dialog.Text("Write prey Name");
dialog.Input("here :", 2, 14);
dialog.Option("I See", 255);
dialog.Send();
break;
}
#region Prey
case 2:
if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey1 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey1 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey2 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey2 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey3 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey3 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey4 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey4 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey5 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey5 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey6 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey6 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey7 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey7 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey8 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey8 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey9 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey9 =_name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (client.Entity.ConquerPoints >= 10000 && GameState.Hunter.Prey10 == "" )
{
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.SELECT);
cmd5.Select("entities").Where("name", client.Entity.Name);
MySqlReader r = new MySqlReader(cmd5);
if (r.Read())
{
string _name = npcRequest.Input;
GameState.Hunter.Prey10 = _name;
client.Entity.ConquerPoints -= 10000;
Conquer_Online_Server.Database.EntityTable.SavePreys();
Program.WriteLine("New prey Has Send");
}
}
else if (GameState.Hunter.Prey1 != "" && GameState.Hunter.Prey2 != "" && GameState.Hunter.Prey3 != "" && GameState.Hunter.Prey4 != "" && GameState.Hunter.Prey5 != "" && GameState.Hunter.Prey6 != "" && GameState.Hunter.Prey7 != "" && GameState.Hunter.Prey8 != "" && GameState.Hunter.Prey9 != "" && GameState.Hunter.Prey10 != "")
{
dialog.Text( "Sry no place yo set you prey Come agine later");
}
break;
#endregion
#region A.K
case 11:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey1 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey1;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey1 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 12:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey2 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey2;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey2 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 13:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey3 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey3;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey3 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 14:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey4 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey4;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey4 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 15:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey5 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey5;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey5 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 16:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey6 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey6;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey6 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 17:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey7 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey7;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey7 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 18:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey8 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey8;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey8 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 19:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey9 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey9;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey9 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
break;
case 20:
{
if (client.Entity.MyPrey == "" && GameState.Hunter.Prey10 != client.Entity.Name)
{
client.Entity.MyPrey = GameState.Hunter.Prey10;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("MyPrey", client.Entity.MyPrey).Where("UID", client.Entity.UID).Execute();
GameState.Hunter.Prey10 = "";
Conquer_Online_Server.Database.EntityTable.SavePreys();
}
}
#endregion
break;
}
break;
}
#endregion
public void AddBless(uint value)
public class Hunter
{
public static string Prey1 = "";
public static string Prey2 = "";
public static string Prey3 = "";
public static string Prey4 = "";
public static string Prey5 = "";
public static string Prey6 = "";
public static string Prey7 = "";
public static string Prey8 = "";
public static string Prey9 = "";
public static string Prey10 = "";
}
public Entity Killer;
public string MyPrey = "";
public static void SavePreys()
{
MySqlCommand cmd1 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd1.Update("Hunter").Set("Pray1", GameState.Hunter.Prey1).Execute();
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd2.Update("Hunter").Set("Pray2", GameState.Hunter.Prey2).Execute();
MySqlCommand cmd3 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd3.Update("Hunter").Set("Pray3", GameState.Hunter.Prey3).Execute();
MySqlCommand cmd4 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd4.Update("Hunter").Set("Pray4", GameState.Hunter.Prey4).Execute();
MySqlCommand cmd5 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd5.Update("Hunter").Set("Pray5", GameState.Hunter.Prey5).Execute();
MySqlCommand cmd6 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd6.Update("Hunter").Set("Pray6", GameState.Hunter.Prey6).Execute();
MySqlCommand cmd7 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd7.Update("Hunter").Set("Pray7", GameState.Hunter.Prey7).Execute();
MySqlCommand cmd8 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd8.Update("Hunter").Set("Pray8", GameState.Hunter.Prey8).Execute();
MySqlCommand cmd9 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd9.Update("Hunter").Set("Pray9", GameState.Hunter.Prey9).Execute();
MySqlCommand cmd10 = new MySqlCommand(MySqlCommandType.UPDATE);
cmd10.Update("Hunter").Set("Pray10", GameState.Hunter.Prey10).Execute();
}
public static void LoadPrey()
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT).Select("Hunter");
MySqlReader d = new MySqlReader(cmd);
while (d.Read())
{
GameState.Hunter.Prey1 = d.ReadString("Pray1");
GameState.Hunter.Prey2 = d.ReadString("Pray2");
GameState.Hunter.Prey3 = d.ReadString("Pray3");
GameState.Hunter.Prey4 = d.ReadString("Pray4");
GameState.Hunter.Prey5 = d.ReadString("Pray5");
GameState.Hunter.Prey6 = d.ReadString("Pray6");
GameState.Hunter.Prey7 = d.ReadString("Pray7");
GameState.Hunter.Prey8 = d.ReadString("Pray8");
GameState.Hunter.Prey9 = d.ReadString("Pray9");
GameState.Hunter.Prey10 = d.ReadString("Pray10");
}
}
/*
Navicat MySQL Data Transfer
Source Server : silnethillco
Source Server Version : 50051
Source Host : localhost:3306
Source Database : silenthillco
Target Server Type : MYSQL
Target Server Version : 50051
File Encoding : 65001
Date: 2012-05-31 15:14:57
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `hunter`
-- ----------------------------
DROP TABLE IF EXISTS `hunter`;
CREATE TABLE `hunter` (
`Pray10` varchar(16) character set latin1 default NULL,
`Pray9` varchar(16) character set latin1 default NULL,
`Pray8` varchar(16) character set latin1 default NULL,
`Pray7` varchar(16) character set latin1 default NULL,
`Pray6` varchar(16) character set latin1 default NULL,
`Pray5` varchar(16) character set latin1 default NULL,
`Pray4` varchar(16) character set latin1 default NULL,
`Pray3` varchar(16) character set latin1 default NULL,
`Pray2` varchar(16) character set latin1 default NULL,
`Pray1` varchar(16) character set latin1 default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of hunter
-- ----------------------------
INSERT INTO `hunter` VALUES ('', '', '', '', '', '', '', '', 'SunriseAreBles', 'ahmed');
10101 0 0 prey 2 1457 -1 1002 417 289 0 0 0
i]di lkn g Harry*Potter ;,dsj look for prey harry*potter
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
انواع عرض الموضوع |
العرض العادي |
الانتقال إلى العرض المتطور |
الانتقال إلى العرض الشجري |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
كويست SS/Vp وبى اوتوانفيت | Shicoo | تطوير وشروحات وسورسات [5095] - Conquer Private Servers | 13 | 10-26-2024 12:39 AM |
كويست SS/Vp وبى اوتوانفيت | MARO | تطوير وشروحات وسورسات [5095] - Conquer Private Servers | 18 | 10-26-2024 12:31 AM |
سيرفر أتحاد الملوك| كلنت 5927 |دروب الف كبس| عندنا كل جديد وحصري|كويست كل 5 دقايق|اسطف وكاس هديه|شغال 24 ساعه| | ملك كونكر2 | قسم إعلانات السيرفرات الشخصية | 0 | 10-14-2014 05:36 PM |
كويست ال120 زي الي في كونكر بالضبط هديه مني ليكم | MARO | تطوير وشروحات وسورسات [5095] - Conquer Private Servers | 0 | 06-01-2012 07:06 PM |
كويست ال120 زي الي في كونكر بالضبط هديه مني ليكم | Caster | تطوير وشروحات وسورسات [5095] - Conquer Private Servers | 0 | 05-31-2012 08:07 PM |