أولا
باللي هاعمله النهاردة هاكون عملت حاجتين
1-حطيت الرقصات بتاع السب كلاس الراقص(Performer)
2-يكون تم تعديل السب كلاس كامل 100% والكمال لله وحده
بصوا بقي معايا عشان الكلام ده محتاج تركيز يعني تروح تجيب كوب نسكافيه وتشربه واعمل اللي انا هاقول عليه
نفتح السي شارب وتحديدا ملف Dialog.cs
ندور على الكود ده
كود PHP:
#region [LeadPerformer]
</b>وده الكود بتاع الانبيسي بتاع السب كلاس
امسحه خالص وحط الكود ده
كود PHP:
#region [LeadPerformer]
case 2714:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello there! Please allow me to introduce to you the sub-class of Performers to you. "
+ "Performers are gifted in the harmonizing of song and swordplay into "
+ "beautiful, unique dances. These dances will surely make you the center of "
+ "people`s attention! Would you like to join us? After you join this sub-class, you "
+ "can level it up and get promoted to learn more stylish dances.");
if (!client.Entity.SubClasses.Classes.ContainsKey((byte)ClassID.Performer))
dialog.Option("Yes, I`d like to join it.", 1);
dialog.Option("I want to get promoted.", 2);
dialog.Option("How can I get promoted?", 3);
if (client.Entity.SubClasses.Classes.ContainsKey((byte)ClassID.Performer))
dialog.Option("Learn unique dances", 4);
dialog.Avatar(100);
dialog.Send();
break;
}
case 1:
{
dialog.Text("I`m glad that you are willing to be one of us. I`m sure your dances will be very "
+ "charming. Still, there are a few requiriments you need to meet. Though "
+ "players of all classes can join us, we only accept players who are over level "
+ "70, and it takes 15 Orchids to pay the tuition fee. After joining the Performer "
+ "sub-class, click open your character sheet and you`ll find the "
+ "sub-class button on the left-hand corner. You may level up your sub-class on "
+ "the sub-class button sheet. You need to meet a certain sub-class level to get "
+ "promoted to higher sub-class phases.");
dialog.Option("I see. Count me in.", 100);
dialog.Option("Oh, it does not suit me.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 2:
{
if (!client.Entity.SubClasses.Classes.ContainsKey((byte)ClassID.Performer))
{
dialog.Text("You are not a Performer yet and can`t get promoted. Do you want to join the "
+ "Performer sub-class now?");
dialog.Option("Yes, I`d like to join.", 1);
dialog.Option("Oh. Not now.", 255);
dialog.Avatar(100);
dialog.Send();
}
else
{
dialog.Text(
"To promote to Phase " + (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase + 1).ToString() + " you must meet the requirements. have you meet "
+ "them into the sub-class sheet?");
dialog.Option("Positive.", 200);
dialog.Option("Oh. not yet.", 255);
dialog.Avatar(100);
dialog.Send();
}
break;
}
case 3:
{
dialog.Text("Good day! Please spare me a few minutes so that I can tell you about the "
+ "sub-classes in Twin City. Each Sub-Class has 9 phases, and the higher the "
+ "phase is, the more bonus effects the sub-class will offer. But keep in mind "
+ "that these sub-classes also have a level system and you need to level them "
+ "up before you can get promoted. You can level up your sub-class by gaining "
+ "study points.");
dialog.Option("How can I get study points?", 30);
dialog.Option("Oh.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 4:
{
dialog.Text("You want to learn unique dances,ok.Choose the dance what do you want to learn");
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase >= 1)
dialog.Option("BattleDance", 41);
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase >= 3)
dialog.Option("Triumph", 42);
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase >= 5)
dialog.Option("StepStomp", 43);
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase >= 7)
dialog.Option("Moonlight", 44);
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase >= 9)
dialog.Option("SnowWind", 45);
dialog.Option("Next", 50);
dialog.Send();
break;
}
case 50:
{
dialog.Option("Phoenix", 46);
dialog.Option("Melody", 47);
dialog.Option("Tipsy", 48);
dialog.Option("Felicity", 49);
dialog.Option("No Way.", 255);
dialog.Avatar(100);
dialog.Send();
break;}
case 41:{
client.AddSpell(LearnableSpell(1415));
dialog.Text("You have learned the BattleDance.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;}
case 42:
{
client.AddSpell(LearnableSpell(1416));
dialog.Text("You have learned the Triumph.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;}
case 43:
{
client.AddSpell(LearnableSpell(1417));
dialog.Text("You have learned the StepStomp.");
dialog.Option("Thank you master.", 255);
dialog.Send();
dialog.Avatar(100);
break;
}
case 44:
{
client.AddSpell(LearnableSpell(1418));
dialog.Text("You have learned the Moonlight.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 45:
{ client.AddSpell(LearnableSpell(1419));
dialog.Text("You have learned the SnowWind.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 46:{
client.AddSpell(LearnableSpell(1420));
dialog.Text("You have learned the Phoenix.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 47:
{
client.AddSpell(LearnableSpell(1421));
dialog.Text("You have learned the Melody.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 48:
{
client.AddSpell(LearnableSpell(1422));
dialog.Text("You have learned the Tipsy.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 49:
{
client.AddSpell(LearnableSpell(1420));
dialog.Text("You have learned the Felicity.");
dialog.Option("Thank you master.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 30:
{
dialog.Text("Well, the only way to get those points is to read the sub-class books, such as "
+ "the Diligence Book. When you`ve gained enough study points, open the "
+ "sub-class sheet from the character panel and level up the sub-class there. "
+ "Monsters in the wild are always bothering young adventurers, so you might "
+ "find some books from them.");
dialog.Option("Okay.", 255);
dialog.Avatar(100);
dialog.Send();
break;
}
case 100:
{
if (PacketHandler.PassLearn((byte)ClassID.Performer, client.Entity))
{
client.Entity.SubClasses.Classes.Add((byte)ClassID.Performer, new Conquer_Online_Server.Statement.SubClass() { ID = (byte)ClassID.Performer, Level = 1, Phase = 1 });
SubClassTable.Insert(client.Entity, (byte)ClassID.Performer);
dialog.Text("Congratulations! You`ve learned the Performer way. Hope you use this power "
+ "for the good of us all.");
dialog.Option("Oh.", 255);
dialog.Avatar(100);
dialog.Send();
}
else
{
dialog.Text("I`m sorry, you need to give me 15 Orchids and "
+ "reach level 70 to join us.");
dialog.Option("Oh.", 255);
dialog.Avatar(100);
dialog.Send();
}
break;
}
case 200:
{
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase == 9)
{
dialog.Text("Your sub-class phase is already 9, you can`t promote it anymore!");
dialog.Option("Oh.", 255);
dialog.Avatar(100);
dialog.Send();
return;
}
if (client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase < client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Level)
{
client.Entity.SubClasses.Classes[(byte)ClassID.Performer].Phase++;
dialog.Text("You have promoted your sub-class successfully.");
dialog.Option("Oh, Thanks.", 255);
dialog.Avatar(100);
dialog.Send();
}
else
{
dialog.Text("I`m sorry, you don`t meet the requirements yet.");
dialog.Option("Oh.", 255);
dialog.Avatar(100);
dialog.Send();
}
break;
}
}
break;
}
وبعدين دوس F6 وبعدين F5 واقفل
تاني حاجة خش على النافي كات
خش قاعدة البيانات هتلاقي فيه قاعدة باسم magictype
وحط الاكواد دي في النافي كات
كود PHP:
INSERT INTO `magictype` VALUES (1415, 1415, 0019, 'BattleDance', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1416, 1416, 0019, 'Triumph', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1417, 1417, 0019, 'StepStomp', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1418, 1418, 0019, 'Moonlight', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1419, 1419, 0019, 'SnowWind', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1420, 1420, 0019, 'Phoenix', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1421, 1421, 0019, 'Melody', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1422, 1422, 0019, 'Tipsy', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
INSERT INTO `magictype` VALUES (1423, 1423, 0019, 'Felicity', 0, 0, 0, 0002, 0000, 0000, 0, 0000, 0100, 0000, 0000, 0005, 0000, 0000, 0, 0000, 0, 0002, 0000, 0, 0000, 0, 0000, 0, 0000, 10, 0000, 0000, 0000, 0000);
اما للناس اللي عايزة تنزل اسهلها قاعدة البيانات كاملة تحت
وبكده يبقي صلحنا اخر جزء في السب كلاس في سورس فونكس5375
يعني كده خلينا السب كلاس فعلا 100%
لتحميل قاعدة البيانات الروابط باسفل
[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]