|
المشاركات 454 |
+التقييم 0.23 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 271 |
#region WindwalkerLord
case 19634:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
dialog.Text("Our Windwalker school was founded by Saint Wan on the principle of KINDNESS and JUSTICE. Once you decide to");
dialog.Text("~join us as a Windwalker, you take the responsibility for the security of the country against alien invaders and devils.");
if (client.Player.Class != 165)
{
dialog.Option("I~want~to~get~promoted.", 1);
}
dialog.Option("Learn~skills.", 2);
dialog.Option("Switch~to~another~branch.", 4);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
}
else
{
dialog.Text("You don`t look like a Windwalker. What`s the matter? If you were ever a Windwalker in either of the previous two lives, you can learn [Frost Gaze I] from me.");
dialog.Option("I~See.", 255);
dialog.Send();
}
break;
}
case 1:
{
if (client.Player.Class == 160 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerGuard]. You should reach Level 15 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.15.", 255);
dialog.Send();
}
else if (client.Player.Class == 161 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerOfficer]. You should reach Level 40 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.40.", 255);
dialog.Send();
}
else if (client.Player.Class == 162 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerSupervisor]. You should reach Level 70 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.70.", 255);
dialog.Send();
}
else if (client.Player.Class == 163 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerManager]. You should reach Level 100 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.100.", 255);
dialog.Send();
}
else if (client.Player.Class == 164 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerLord]. You should reach Level 110 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.110.", 255);
dialog.Send();
}
else
{
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
dialog.Text("To promote now you need" + client.PromoteItemNameNeed + " .");
dialog.Option("Promote me sir.", 165);
dialog.Send();
}
}
break;
}
case 165:
{
if (client.PromoteItemNeed == 721020)
{
if (client.Inventory.Remove("moonbox"))
{
client.Player.Update(_String.Effect, "end_task", true);
client.Inventory.Add(client.PromoteItemGain, 0, 1);
client.Player.Class++;
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
if (client.Inventory.Contains(client.PromoteItemNeed, client.PromoteItemCountNeed) && client.Player.Level >= client.PromoteLevelNeed)
{
client.Inventory.Remove(client.PromoteItemNeed, client.PromoteItemCountNeed);
client.Inventory.Add(client.PromoteItemGain, 0, 1);
client.Player.Class++;
client.Player.Update(_String.Effect, "end_task", true);
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
case 4:
{
if (client.Player.IsChaser())
{
dialog.Text(" *Branches of Windwalker School*");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("Stomper: Excels in melee combat with excellent attack range and remarkable recovery ability. Stomper`s exclusive skill");
dialog.Text(" can freeze enemies` blood to extend their skill cooldown time and response time.");
dialog.Text("Chaser: Excels in ranged combat. With a unique focusing skill, Chaser is able to control the power of wind to attack");
dialog.Text(" enemies far away.");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("(You`re currently on the [RangedChaser] branch. Each Windwalker can switch his/her branch once every 30 days, free of charge.)");
dialog.Option("Switch~to~[MeleeStomper]~branch.", 5);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
else if (client.Player.IsStomper())
{
dialog.Text(" *Branches of Windwalker School*");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("Stomper: Excels in melee combat with excellent attack range and remarkable recovery ability. Stomper`s exclusive skill");
dialog.Text(" can freeze enemies` blood to extend their skill cooldown time and response time.");
dialog.Text("Chaser: Excels in ranged combat. With a unique focusing skill, Chaser is able to control the power of wind to attack");
dialog.Text(" enemies far away.");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("(You`re currently on the [MeleeStomper] branch. Each Windwalker can switch his/her branch once every 30 days, free of charge.)");
dialog.Option("Switch~to~[RangedChaser]~branch.", 6);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
break;
}
case 5:
{
if (client.Player.IsStomper())
client.Player.Windwalker = 0;
else if (client.Player.IsChaser())
client.Player.Windwalker = 8;
else break;
Update upd = new Update(true);
upd.UID = client.Player.UID;
upd.UpdateCount = 1;
upd.SwitchWindwalker(3277209, 1);
client.SendScreen(upd, true);
Update upd2 = new Update(true);
upd2.UID = client.Player.UID;
upd2.UpdateCount = 1;
upd2.SwitchWindwalker(71, client.Player.Windwalker);
client.SendScreen(upd2, true);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.JusticeChant);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ChillingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.FreezingPelter);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.HealingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.RevengeTaill);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ShadowofChaser);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.Omnipotence);
dialog.Text("Okay, I`ve changed your branch to [MeleeStomper].");
dialog.Option("Thanks!", 255);
dialog.Send();
break;
}
case 6:
{
if (client.Player.IsStomper())
client.Player.Windwalker = 0;
else if (client.Player.IsChaser())
client.Player.Windwalker = 8;
else break;
Update upd = new Update(true);
upd.UID = client.Player.UID;
upd.UpdateCount = 1;
upd.SwitchWindwalker(3277209, 1);
client.SendScreen(upd, true);
Update upd2 = new Update(true);
upd2.UID = client.Player.UID;
upd2.UpdateCount = 1;
upd2.SwitchWindwalker(71, client.Player.Windwalker);
client.SendScreen(upd2, true);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.JusticeChant);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ChillingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.FreezingPelter);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.HealingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.RevengeTaill);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ShadowofChaser);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.Omnipotence);
dialog.Text("Okay, I`ve changed your branch to [RangedChaser].");
dialog.Option("Thanks!", 255);
dialog.Send();
break;
}
case 3:
{
if (client.Player.Reborn == 0)
{
client.AddSpell(LearnableSpell(12830));
break;
}
if (client.Player.FirstRebornClass == 165 && client.Player.Reborn == 1)
{
client.AddSpell(LearnableSpell(13070));
break;
}
if (client.Player.FirstRebornClass == 165 && client.Player.SecondRebornClass == 165 && client.Player.Reborn == 2)
{
client.AddSpell(LearnableSpell(13080));
break;
}
else
{
client.MessageBox("You`re not qualified to learn this skill.");
break;
}
}
case 2:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 10);
dialog.Option("Learn~skills~of~Chaser.", 11);
dialog.Option("Learn~rebirth~skill.", 12);
dialog.Option("Learn~universal~skills.", 13);
dialog.Send();
break;
}
case 12:
{
dialog.Text("Frost Gaze is an exclusive rebirth skill for Windwalker. The heroes who got reborn to be Windwalker can learn Frost Gaze I. If both of your precious andd");
dialog.Text("~current Class are Windwalker, you can learn Frost Gaze II. While for Windwalkers who were also a Windwalker in previous two lives, they can learn Frost Gaze III.");
if (client.Player.Reborn == 0 && client.Player.Class == 165)
dialog.Option("Frost~Gaze~I.", 3);
if (client.Player.FirstRebornClass == 165 && client.Player.Reborn == 1 && client.Player.Class == 165)
dialog.Option("Frost~Gaze~II.", 3);
if (client.Player.SecondRebornClass == 165 && client.Player.Reborn == 2 && client.Player.Class == 165 && client.Player.FirstRebornClass == 165)
dialog.Option("Frost~Gaze~III.", 3);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
break;
}
case 13:
{
dialog.Text("Omnipotence and Justice Chant are basic skills for Windwalker, which are available to both Chaser and Stomper learners. I`ll teach you if you want.");
dialog.Option("Omnipotence~[Lv.3].~(" + WindwalkerSkills(client, 12860) + ")", 40);
dialog.Option("JusticeChant~[Lv.3].~(" + WindwalkerSkills(client, 12870) + ")", 41);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
break;
}
case 40:
case 41:
{
ushort spellid = 12800;
switch (npcRequest.OptionID)
{
case 40: { spellid += 60; break; }
case 41: { spellid += 70; break; }
}
if (WindwalkerSkills(client, spellid) == "Learned")
{
dialog.Text("FellowBrother has already acquired this skill. Go practice and feel its power.");
dialog.Option("Okay.", 2);
dialog.Send();
break;
}
else if (WindwalkerSkills(client, spellid) == "Available")
{
client.AddSpell(LearnableSpell(spellid));
}
else
{
dialog.Text("The study of [" + SpellTable.GetSpell(spellid, 0).Name + "] requires FellowBrother to reach a certain level. FellowBrother, you can find me when you reach the required Level.");
dialog.Option("I`ll~see~you!", 2);
dialog.Send();
}
break;
}
case 10:
{
dialog.Text("The Stomper branch has developed overwhelming melee skills which enable the caster to disable an enemy with swift and flexible fighting moves.");
dialog.Text("~FellowBrother, which skill would you like to learn?");
dialog.Option("AngerofStomper~[Lv.1].~(" + WindwalkerSkills(client, 12980) + ")", 20);
dialog.Option("BurntFrost~[Lv.15].~(" + WindwalkerSkills(client, 12940) + ")", 21);
dialog.Option("HealingSnow~[Lv.15].~(" + WindwalkerSkills(client, 12950) + ")", 22);
dialog.Option("RageofWar~[Lv.40].~(" + WindwalkerSkills(client, 12930) + ")", 23);
dialog.Option("HorrorofStomper~[Lv.40].~(" + WindwalkerSkills(client, 12990) + ")", 24);
dialog.Option("ChillingSnow~[Lv.70].~(" + WindwalkerSkills(client, 12960) + ")", 25);
dialog.Option("PeaceofStomper~[Lv.70].~(" + WindwalkerSkills(client, 13000) + ")", 26);
dialog.Option("Next.", 27);
dialog.Send();
break;
}
case 27:
{
dialog.Text("The Stomper branch has developed overwhelming melee skills which enable the caster to disable an enemy with swift and flexible fighting moves.");
dialog.Text("~FellowBrother, which skill would you like to learn?");
dialog.Option("RevengeTail~[Lv.100].~(" + WindwalkerSkills(client, 13030) + ")", 28);
dialog.Option("FreezingPelter~[Lv.100].~(" + WindwalkerSkills(client, 13020) + ")", 29);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Option("Previous.", 10);
dialog.Send();
break;
}
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 28:
case 29:
{
ushort spellid = 12900;
switch (npcRequest.OptionID)
{
case 20: { spellid += 80; break; }
case 21: { spellid += 40; break; }
case 22: { spellid += 50; break; }
case 23: { spellid += 30; break; }
case 24: { spellid += 90; break; }
case 25: { spellid += 60; break; }
case 26: { spellid += 100; break; }
case 28: { spellid += 130; break; }
case 29: { spellid += 120; break; }
}
if (WindwalkerSkills(client, spellid) == "Learned")
{
dialog.Text("FellowBrother has already acquired this skill. Go practice and feel its power.");
dialog.Option("Okay.", 2);
dialog.Send();
break;
}
else if (WindwalkerSkills(client, spellid) == "Available")
{
client.AddSpell(LearnableSpell(spellid));
}
else
{
dialog.Text("The study of [" + SpellTable.GetSpell(spellid, 0).Name + "] requires FellowBrother to reach a certain level. FellowBrother, you can find me when you reach the required Level.");
dialog.Option("I`ll~see~you!", 2);
dialog.Send();
}
break;
}
case 11:
{
dialog.Text("The Chaser branch is famous for its ability to control wind and outstanding ranged attacks.");
dialog.Text("~FellowBrother, which skill would you like to learn?");
dialog.Option("SwirlingStorm~[Lv.15].~(" + WindwalkerSkills(client, 12890) + ")", 30);
dialog.Option("ShadowofChaser~[Lv.15].~(" + WindwalkerSkills(client, 13090) + ")", 31);
dialog.Option("TripleBlasts~[Lv.40].~(" + WindwalkerSkills(client, 12850) + ")", 32);
dialog.Option("Thundercloud~[Lv.70]~[" + WindwalkerSkills(client, 12840) + "]", 33);
dialog.Option("Thunderbolt~[Lv.100]~[" + WindwalkerSkills(client, 12970) + "]", 34);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
break;
}
case 30:
case 31:
case 32:
case 33:
case 34:
{
ushort spellid = 12800;
switch (npcRequest.OptionID)
{
case 30: { spellid += 90; break; }
case 31: { spellid += 290; break; }
case 32: { spellid += 50; break; }
case 33: { spellid += 40; break; }
case 34: { spellid += 170; break; }
}
if (WindwalkerSkills(client, spellid) == "Learned")
{
dialog.Text("FellowBrother has already acquired this skill. Go practice and feel its power.");
dialog.Option("Okay.", 2);
dialog.Send();
break;
}
else if (WindwalkerSkills(client, spellid) == "Available")
{
client.AddSpell(LearnableSpell(spellid));
}
else
{
dialog.Text("The study of [" + SpellTable.GetSpell(spellid, 0).Name + "] requires FellowBrother to reach a certain level. FellowBrother, you can find me when you reach the required Level.");
dialog.Option("I`ll~see~you!", 2);
dialog.Send();
}
break;
}
}
break;
}
#endregion
#region WindwalkerLord
case 19634:
{
byte mClass = 160;
byte MClass = 165;
string Class = "WindWalker";
dialog.Avatar(9);
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Entity.Class >= mClass && client.Entity.Class <= MClass)
{
dialog.Text("Our Windwalker school was founded by Saint Wan on the principle of KINDNESS and JUSTICE. Once you decide to");
dialog.Text("~join us as a Windwalker, you take the responsibility for the security of the country against alien invaders and devils.");
if (client.Entity.Class < 165)
{
dialog.Option("I~want~to~get~promoted.", 1);
}
dialog.Option("Learn~skills.", 4);
dialog.Option("Switch~to~another~branch.", 5);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Avatar(333);
dialog.Send();
}
else
{
dialog.Text("Sorry, you`re not WindWalker. Go find your origin.");
dialog.Option("Okay.", 255);
dialog.Send();
}
break;
}
#region I~want~to~get~promoted
case 1:
{
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.Entity.Class = 165;
break;
}
case 3:
{
if (client.Entity.Class >= mClass && client.Entity.Class <= MClass)
{
if (client.Entity.Class == MClass)
{
dialog.Text("You cannot be promoted anymore. You have mastered your class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
if (client.PromoteItemNeed == 721020)
{
if (client.Inventory.Remove("moonbox"))
{
client.Inventory.Add(client.PromoteItemGain, 0, 1);
client.Entity.Class++;
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
return;
}
if (client.Inventory.Contains(client.PromoteItemNeed, client.PromoteItemCountNeed) && client.Entity.Level >= client.PromoteLevelNeed)
{
client.Inventory.Remove(client.PromoteItemNeed, client.PromoteItemCountNeed);
client.Inventory.Add(client.PromoteItemGain, 0, 1);
client.Entity.Class++;
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
}
}
else
{
dialog.Text("I will not tell any of the " + Class + " secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region Switch~to~another~branch
case 5:
{
dialog.Text(" *Branches of Windwalker School*");
dialog.Text("¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª");
dialog.Text("Stomper: Excels in melee combat with excellent attack range and remarkable recovery ability. Stomper`s exclusive skill");
dialog.Text(" can freeze enemies` blood to extend their skill cooldown time and response time.");
dialog.Text("Chaser: Excels in ranged combat. With a unique focusing skill, Chaser is able to control the power of wind to attack");
dialog.Text(" enemies far away.");
dialog.Text("¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª");
//dialog.Text("(You`re currently on the ["++"] branch.)");
string tochange = "";
switch (client.Entity.WindWalker)
{
case (byte)WindWalker.CharacterType.Chaser:
tochange = "MeleeStomper";
break;
case (byte)WindWalker.CharacterType.Stomper:
tochange = "RangedChaser";
break;
}
dialog.Option("Switch~to~[" + tochange + "]~branch.~(1WindCore)", 10);
dialog.Option("Switch~to~[" + tochange + "]~branch.~(27~CPs)", 11);
dialog.Option("I`ll~think~about~it.", 2);
dialog.Avatar(333);
break;
}
#endregion
#region Switch~to~[MeleeStomper]~branch.~(1WindCore)
case 10:
{
if (client.Inventory.Contains(3301705, 1))
{
byte[] Wind = new byte[80 + 8];
Writer.WriteUInt32(80, 0, Wind);
Writer.WriteUInt32(10017, 2, Wind);
Writer.WriteUInt32((uint)Time32.timeGetTime().GetHashCode(), 4, Wind);
Writer.WriteUInt32(client.Entity.UID, 8, Wind);
Writer.WriteUInt32(2, 12, Wind);
Writer.WriteUInt32(255, 16, Wind);
Writer.WriteUInt32(255, 17, Wind);
Writer.WriteUInt32(255, 18, Wind);
Writer.WriteUInt32(255, 19, Wind);
Writer.WriteUInt32(71, 48, Wind);
if (client.Entity.WindWalker == (byte)WindWalker.CharacterType.Stomper)
{
Writer.WriteUInt32((byte)WindWalker.CharacterType.Chaser, 52, Wind);
client.Entity.WindWalker = (byte)WindWalker.CharacterType.Chaser;
}
else
{
Writer.WriteUInt32((byte)WindWalker.CharacterType.Stomper, 52, Wind);
client.Entity.WindWalker = (byte)WindWalker.CharacterType.Stomper;
}
client.Send(Wind);
client.Inventory.Remove(3301705, 1);
}
else
{
dialog.Text("I can`t help you switch your Windwalker branch if you don`t have a Wind Core. You can exchange for one in the Horse Racing Store.");
dialog.Option("I~see.", 0);
dialog.Avatar(333);
}
break;
}
#endregion
#region Switch~to~[MeleeStomper]~branch.~(27~CPs)
case 11:
{
if (client.Entity.ConquerPoints >= 27)
{
byte[] Wind = new byte[80 + 8];
Writer.WriteUInt32(80, 0, Wind);
Writer.WriteUInt32(10017, 2, Wind);
Writer.WriteUInt32((uint)Time32.timeGetTime().GetHashCode(), 4, Wind);
Writer.WriteUInt32(client.Entity.UID, 8, Wind);
Writer.WriteUInt32(2, 12, Wind);
Writer.WriteUInt32(255, 16, Wind);
Writer.WriteUInt32(255, 17, Wind);
Writer.WriteUInt32(255, 18, Wind);
Writer.WriteUInt32(255, 19, Wind);
Writer.WriteUInt32(71, 48, Wind);
if (client.Entity.WindWalker == (byte)WindWalker.CharacterType.Stomper)
{
Writer.WriteUInt32((byte)WindWalker.CharacterType.Chaser, 52, Wind);
client.Entity.WindWalker = (byte)WindWalker.CharacterType.Chaser;
}
else
{
Writer.WriteUInt32((byte)WindWalker.CharacterType.Stomper, 52, Wind);
client.Entity.WindWalker = (byte)WindWalker.CharacterType.Stomper;
}
client.Send(Wind);
dialog.Text("Okay, I`ve changed your branch.");
dialog.Option("Thanks!", 0);
dialog.Avatar(333);
client.Entity.ConquerPoints -= 27;
break;
}
else
{
dialog.Text("I`m afraid I can`t help you switch the branch if you don`t have enough CPs.");
dialog.Option("Alright.", 0);
dialog.Avatar(333);
}
break;
}
#endregion
case 4:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 20);
dialog.Option("Learn~skills~of~Chaser.", 21);
dialog.Option("Learn~rebirth~skill.", 22);
dialog.Option("Learn~universal~skills.", 23);
dialog.Avatar(333);
break;
}
#region Learn~skills~of~Stomper
case 20:
{
dialog.Text("The Stomper branch has developed overwhelming melee skills which enable the caster to disable an enemy with swift and flexible fighting moves.");
dialog.Text("~FellowSister, which skill would you like to learn?");
dialog.Option("" + Npcs.SkillWindWalker(1, client), 24);
dialog.Option("" + Npcs.SkillWindWalker(2, client), 25);
dialog.Option("" + Npcs.SkillWindWalker(3, client), 26);
dialog.Option("" + Npcs.SkillWindWalker(4, client), 27);
dialog.Option("" + Npcs.SkillWindWalker(5, client), 28);
dialog.Option("" + Npcs.SkillWindWalker(6, client), 29);
dialog.Option("" + Npcs.SkillWindWalker(7, client), 30);
dialog.Option("Next.", 31);
dialog.Avatar(333);
break;
}
#endregion
#region AngerofStomper~[Lv.1]
case 24:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 1)
{
dialog.Text("You have learned the AngerofStomper Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12980));
if (!client.AddSpell(LearnableSpell(12980)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 1 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region BurntFrost~[Lv.15]
case 25:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 15)
{
dialog.Text("You have learned the BurntFrost Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12940));
if (!client.AddSpell(LearnableSpell(12940)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 15 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region HealingSnow~[Lv.15]
case 26:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 15)
{
dialog.Text("You have learned the Healing Snow Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12950));
if (!client.AddSpell(LearnableSpell(12950)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 15 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region RageofWar~[Lv.40]
case 27:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 40)
{
dialog.Text("You have learned the Rageof War Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12930));
if (!client.AddSpell(LearnableSpell(12930)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 40 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region HorrorofStomper~[Lv.40]
case 28:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 40)
{
dialog.Text("You have learned the Horror of Stomper Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12990));
if (!client.AddSpell(LearnableSpell(12990)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 40 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region ChillingSnow~[Lv.70]
case 29:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 70)
{
dialog.Text("You have learned the Chilling Snow Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12960));
if (!client.AddSpell(LearnableSpell(12960)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 70 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region PeaceofStomper~[Lv.70]
case 30:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 70)
{
dialog.Text("You have learned the Peace of Stomper Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(13000));
if (!client.AddSpell(LearnableSpell(13000)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 70 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region NextSkill
case 31:
{
dialog.Text("The Stomper branch has developed overwhelming melee skills which enable the caster to disable an enemy with swift and flexible fighting moves.");
dialog.Text("~FellowSister, which skill would you like to learn?");
dialog.Option("" + Npcs.SkillWindWalker(8, client), 32);
dialog.Option("" + Npcs.SkillWindWalker(9, client), 33);
dialog.Option("I~want~to~learn~other~skills.", 34);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Option("Previous.", 20);
dialog.Avatar(333);
break;
}
#endregion
#region RevengeTail~[Lv.100]
case 32:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 100)
{
dialog.Text("You have learned the Revenge Tail Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(13030));
if (!client.AddSpell(LearnableSpell(13030)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 100 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region FreezingPelter~[Lv.100]
case 33:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 100)
{
dialog.Text("You have learned the Freezing Pelter Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(13020));
if (!client.AddSpell(LearnableSpell(13020)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 100 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region I~want~to~learn~other~skills
case 34:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 20);
dialog.Option("Learn~skills~of~Chaser.", 21);
dialog.Option("Learn~rebirth~skill.", 22);
dialog.Option("Learn~universal~skills.", 23);
dialog.Avatar(333);
break;
}
#endregion
#region Learn~skills~of~Chaser
case 21:
{
dialog.Text("The Chaser branch is famous for its ability to control wind and outstanding ranged attacks.");
dialog.Text("~FellowSister, which skill would you like to learn?");
dialog.Option("" + Npcs.SkillWindWalker(10, client), 35);
dialog.Option("" + Npcs.SkillWindWalker(11, client), 36);
dialog.Option("" + Npcs.SkillWindWalker(12, client), 37);
dialog.Option("" + Npcs.SkillWindWalker(13, client), 38);
dialog.Option("" + Npcs.SkillWindWalker(14, client), 39);
dialog.Option("I~want~to~learn~other~skills.", 40);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Avatar(333);
break;
}
#endregion
#region SwirlingStorm~[Lv.15]
case 35:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 15)
{
dialog.Text("You have learned the Swirling Storm Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12890));
if (!client.AddSpell(LearnableSpell(12890)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 15 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region ShadowofChaser~[Lv.15]
case 36:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 15)
{
dialog.Text("You have learned the Shadow of Chaser Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(13090));
if (!client.AddSpell(LearnableSpell(13090)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 15 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region TripleBlasts~[Lv.40]
case 37:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 40)
{
dialog.Text("You have learned the Tripl eBlasts Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12850));
if (!client.AddSpell(LearnableSpell(12850)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 40 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region Thundercloud~[Lv.70]
case 38:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 70)
{
dialog.Text("You have learned the Thunder cloud Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12840));
if (!client.AddSpell(LearnableSpell(12840)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 70 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region Thunderbolt~[Lv.100]
case 39:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 100)
{
dialog.Text("You have learned the Thunder bolt Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12970));
if (!client.AddSpell(LearnableSpell(12970)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 100 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region I~want~to~learn~other~skills
case 40:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 20);
dialog.Option("Learn~skills~of~Chaser.", 21);
dialog.Option("Learn~rebirth~skill.", 22);
dialog.Option("Learn~universal~skills.", 23);
dialog.Avatar(333);
break;
}
#endregion
#region Learn~rebirth~skill
case 22:
{
dialog.Text("Frost Gaze is an exclusive rebirth skill for Windwalker. The heroes who got reborn to be Windwalker can learn Frost Gaze I. If both of your precious andd");
dialog.Text("~current Class are Windwalker, you can learn Frost Gaze II. While for Windwalkers who were also a Windwalker in previous two lives, they can learn Frost Gaze III.");
dialog.Option("" + Npcs.SkillWindWalker(15, client), 41);
dialog.Option("I~want~to~learn~other~skills.", 42);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Avatar(333);
break;
}
#endregion
#region Frost~Gaze~III
case 41:
{
if (client.Entity.FirstRebornClass == 165 && client.Entity.SecondRebornClass == 165 && client.Entity.Class == 161)
{
dialog.Text("You have learned the Frost~Gaze~III Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(13080));
if (!client.AddSpell(LearnableSpell(13080)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region I~want~to~learn~other~skills
case 42:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 20);
dialog.Option("Learn~skills~of~Chaser.", 21);
dialog.Option("Learn~rebirth~skill.", 22);
dialog.Option("Learn~universal~skills.", 23);
dialog.Avatar(333);
break;
}
#endregion
#region Learn~universal~skills
case 23:
{
dialog.Text("Omnipotence and Justice Chant are basic skills for Windwalker, which are available to both Chaser and Stomper learners. I`ll teach you if you want.");
dialog.Option("" + Npcs.SkillWindWalker(16, client), 43);
dialog.Option("" + Npcs.SkillWindWalker(17, client), 44);
dialog.Option("I~want~to~learn~other~skills.", 45);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Avatar(333);
break;
}
#endregion
#region Omnipotence~[Lv.3]
case 43:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 3)
{
dialog.Text("You have learned the Omnipotence Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12860));
if (!client.AddSpell(LearnableSpell(12860)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 3 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region JusticeChant~[Lv.3]
case 44:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
if (client.Entity.Level >= 3)
{
dialog.Text("You have learned the JusticeChant Skill of this class.");
dialog.Option("Thank you master.", 255);
dialog.Send();
client.AddSpell(LearnableSpell(12870));
if (!client.AddSpell(LearnableSpell(12870)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You need to be level 3 or more.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I will not tell any of the WindWalker secrets to another class, so, good bye.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
#endregion
#region I~want~to~learn~other~skills
case 45:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 20);
dialog.Option("Learn~skills~of~Chaser.", 21);
dialog.Option("Learn~rebirth~skill.", 22);
dialog.Option("Learn~universal~skills.", 23);
dialog.Avatar(333);
break;
}
#endregion
}
break;
}
#endregion
#region WindwalkerLord
case 19634:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
dialog.Text("Our Windwalker school was founded by Saint Wan on the principle of KINDNESS and JUSTICE. Once you decide to");
dialog.Text("~join us as a Windwalker, you take the responsibility for the security of the country against alien invaders and devils.");
if (client.Player.Class != 165)
{
dialog.Option("I~want~to~get~promoted.", 1);
}
dialog.Option("Learn~skills.", 2);
dialog.Option("Switch~to~another~branch.", 4);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
}
else
{
dialog.Text("You don`t look like a Windwalker. What`s the matter? If you were ever a Windwalker in either of the previous two lives, you can learn [Frost Gaze I] from me.");
dialog.Option("I~See.", 255);
dialog.Send();
}
break;
}
case 1:
{
if (client.Player.Class == 160 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerGuard]. You should reach Level 15 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.15.", 255);
dialog.Send();
}
else if (client.Player.Class == 161 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerOfficer]. You should reach Level 40 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.40.", 255);
dialog.Send();
}
else if (client.Player.Class == 162 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerSupervisor]. You should reach Level 70 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.70.", 255);
dialog.Send();
}
else if (client.Player.Class == 163 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerManager]. You should reach Level 100 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.100.", 255);
dialog.Send();
}
else if (client.Player.Class == 164 && client.Player.Level < client.PromoteLevelNeed)
{
dialog.Text("FellowBrother, you`re not qualified to be [WindwalkerLord]. You should reach Level 110 to get promoted.");
dialog.Option("I`ll~try~to~reach~Lv.110.", 255);
dialog.Send();
}
else
{
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
dialog.Text("To promote now you need" + client.PromoteItemNameNeed + " .");
dialog.Option("Promote me sir.", 165);
dialog.Send();
}
}
break;
}
case 165:
{
if (client.PromoteItemNeed == 721020)
{
if (client.Inventory.Remove("moonbox"))
{
client.Player.Update(_String.Effect, "end_task", true);
client.Inventory.Add(client.PromoteItemGain, 0, 1);
client.Player.Class++;
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
if (client.Inventory.Contains(client.PromoteItemNeed, client.PromoteItemCountNeed) && client.Player.Level >= client.PromoteLevelNeed)
{
client.Inventory.Remove(client.PromoteItemNeed, client.PromoteItemCountNeed);
client.Inventory.Add(client.PromoteItemGain, 0, 1);
client.Player.Class++;
client.Player.Update(_String.Effect, "end_task", true);
dialog.Text("Congratulations! You have been promoted.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't meet the requierments.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
case 4:
{
if (client.Player.IsChaser())
{
dialog.Text(" *Branches of Windwalker School*");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("Stomper: Excels in melee combat with excellent attack range and remarkable recovery ability. Stomper`s exclusive skill");
dialog.Text(" can freeze enemies` blood to extend their skill cooldown time and response time.");
dialog.Text("Chaser: Excels in ranged combat. With a unique focusing skill, Chaser is able to control the power of wind to attack");
dialog.Text(" enemies far away.");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("(You`re currently on the [RangedChaser] branch. Each Windwalker can switch his/her branch once every 30 days, free of charge.)");
dialog.Option("Switch~to~[MeleeStomper]~branch.", 5);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
else if (client.Player.IsStomper())
{
dialog.Text(" *Branches of Windwalker School*");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("Stomper: Excels in melee combat with excellent attack range and remarkable recovery ability. Stomper`s exclusive skill");
dialog.Text(" can freeze enemies` blood to extend their skill cooldown time and response time.");
dialog.Text("Chaser: Excels in ranged combat. With a unique focusing skill, Chaser is able to control the power of wind to attack");
dialog.Text(" enemies far away.");
dialog.Text("،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ،ھ");
dialog.Text("(You`re currently on the [MeleeStomper] branch. Each Windwalker can switch his/her branch once every 30 days, free of charge.)");
dialog.Option("Switch~to~[RangedChaser]~branch.", 6);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
break;
}
case 5:
{
if (client.Player.IsStomper())
client.Player.Windwalker = 0;
else if (client.Player.IsChaser())
client.Player.Windwalker = 8;
else break;
Update upd = new Update(true);
upd.UID = client.Player.UID;
upd.UpdateCount = 1;
upd.SwitchWindwalker(3277209, 1);
client.SendScreen(upd, true);
Update upd2 = new Update(true);
upd2.UID = client.Player.UID;
upd2.UpdateCount = 1;
upd2.SwitchWindwalker(71, client.Player.Windwalker);
client.SendScreen(upd2, true);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.JusticeChant);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ChillingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.FreezingPelter);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.HealingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.RevengeTaill);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ShadowofChaser);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.Omnipotence);
dialog.Text("Okay, I`ve changed your branch to [MeleeStomper].");
dialog.Option("Thanks!", 255);
dialog.Send();
break;
}
case 6:
{
if (client.Player.IsStomper())
client.Player.Windwalker = 0;
else if (client.Player.IsChaser())
client.Player.Windwalker = 8;
else break;
Update upd = new Update(true);
upd.UID = client.Player.UID;
upd.UpdateCount = 1;
upd.SwitchWindwalker(3277209, 1);
client.SendScreen(upd, true);
Update upd2 = new Update(true);
upd2.UID = client.Player.UID;
upd2.UpdateCount = 1;
upd2.SwitchWindwalker(71, client.Player.Windwalker);
client.SendScreen(upd2, true);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.JusticeChant);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ChillingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.FreezingPelter);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.HealingSnow);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.RevengeTaill);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.ShadowofChaser);
client.Player.RemoveFlag4((ulong)Network.GamePackets.Update.Flags4.Omnipotence);
dialog.Text("Okay, I`ve changed your branch to [RangedChaser].");
dialog.Option("Thanks!", 255);
dialog.Send();
break;
}
case 3:
{
if (client.Player.Reborn == 0)
{
client.AddSpell(LearnableSpell(12830));
break;
}
if (client.Player.FirstRebornClass == 165 && client.Player.Reborn == 1)
{
client.AddSpell(LearnableSpell(13070));
break;
}
if (client.Player.FirstRebornClass == 165 && client.Player.SecondRebornClass == 165 && client.Player.Reborn == 2)
{
client.AddSpell(LearnableSpell(13080));
break;
}
else
{
client.MessageBox("You`re not qualified to learn this skill.");
break;
}
}
case 2:
{
dialog.Text("Our Windwalker school is divided into two branches: Chaser and Stomper. Chaser focuses on");
dialog.Text("~ranged combat, while Stomper excels in melee combat. I`m here representing the Chief to");
dialog.Text("~impart distinctive skills to the Windwalkers.");
dialog.Option("Learn~skills~of~Stomper.", 10);
dialog.Option("Learn~skills~of~Chaser.", 11);
dialog.Option("Learn~rebirth~skill.", 12);
dialog.Option("Learn~universal~skills.", 13);
dialog.Send();
break;
}
case 12:
{
dialog.Text("Frost Gaze is an exclusive rebirth skill for Windwalker. The heroes who got reborn to be Windwalker can learn Frost Gaze I. If both of your precious andd");
dialog.Text("~current Class are Windwalker, you can learn Frost Gaze II. While for Windwalkers who were also a Windwalker in previous two lives, they can learn Frost Gaze III.");
if (client.Player.Reborn == 0 && client.Player.Class == 165)
dialog.Option("Frost~Gaze~I.", 3);
if (client.Player.FirstRebornClass == 165 && client.Player.Reborn == 1 && client.Player.Class == 165)
dialog.Option("Frost~Gaze~II.", 3);
if (client.Player.SecondRebornClass == 165 && client.Player.Reborn == 2 && client.Player.Class == 165 && client.Player.FirstRebornClass == 165)
dialog.Option("Frost~Gaze~III.", 3);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
break;
}
case 13:
{
dialog.Text("Omnipotence and Justice Chant are basic skills for Windwalker, which are available to both Chaser and Stomper learners. I`ll teach you if you want.");
dialog.Option("Omnipotence~[Lv.3].~(" + WindwalkerSkills(client, 12860) + ")", 40);
dialog.Option("JusticeChant~[Lv.3].~(" + WindwalkerSkills(client, 12870) + ")", 41);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
break;
}
case 40:
case 41:
{
ushort spellid = 12800;
switch (npcRequest.OptionID)
{
case 40: { spellid += 60; break; }
case 41: { spellid += 70; break; }
}
if (WindwalkerSkills(client, spellid) == "Learned")
{
dialog.Text("FellowBrother has already acquired this skill. Go practice and feel its power.");
dialog.Option("Okay.", 2);
dialog.Send();
break;
}
else if (WindwalkerSkills(client, spellid) == "Available")
{
client.AddSpell(LearnableSpell(spellid));
}
else
{
dialog.Text("The study of [" + SpellTable.GetSpell(spellid, 0).Name + "] requires FellowBrother to reach a certain level. FellowBrother, you can find me when you reach the required Level.");
dialog.Option("I`ll~see~you!", 2);
dialog.Send();
}
break;
}
case 10:
{
dialog.Text("The Stomper branch has developed overwhelming melee skills which enable the caster to disable an enemy with swift and flexible fighting moves.");
dialog.Text("~FellowBrother, which skill would you like to learn?");
dialog.Option("AngerofStomper~[Lv.1].~(" + WindwalkerSkills(client, 12980) + ")", 20);
dialog.Option("BurntFrost~[Lv.15].~(" + WindwalkerSkills(client, 12940) + ")", 21);
dialog.Option("HealingSnow~[Lv.15].~(" + WindwalkerSkills(client, 12950) + ")", 22);
dialog.Option("RageofWar~[Lv.40].~(" + WindwalkerSkills(client, 12930) + ")", 23);
dialog.Option("HorrorofStomper~[Lv.40].~(" + WindwalkerSkills(client, 12990) + ")", 24);
dialog.Option("ChillingSnow~[Lv.70].~(" + WindwalkerSkills(client, 12960) + ")", 25);
dialog.Option("PeaceofStomper~[Lv.70].~(" + WindwalkerSkills(client, 13000) + ")", 26);
dialog.Option("Next.", 27);
dialog.Send();
break;
}
case 27:
{
dialog.Text("The Stomper branch has developed overwhelming melee skills which enable the caster to disable an enemy with swift and flexible fighting moves.");
dialog.Text("~FellowBrother, which skill would you like to learn?");
dialog.Option("RevengeTail~[Lv.100].~(" + WindwalkerSkills(client, 13030) + ")", 28);
dialog.Option("FreezingPelter~[Lv.100].~(" + WindwalkerSkills(client, 13020) + ")", 29);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Option("Previous.", 10);
dialog.Send();
break;
}
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 28:
case 29:
{
ushort spellid = 12900;
switch (npcRequest.OptionID)
{
case 20: { spellid += 80; break; }
case 21: { spellid += 40; break; }
case 22: { spellid += 50; break; }
case 23: { spellid += 30; break; }
case 24: { spellid += 90; break; }
case 25: { spellid += 60; break; }
case 26: { spellid += 100; break; }
case 28: { spellid += 130; break; }
case 29: { spellid += 120; break; }
}
if (WindwalkerSkills(client, spellid) == "Learned")
{
dialog.Text("FellowBrother has already acquired this skill. Go practice and feel its power.");
dialog.Option("Okay.", 2);
dialog.Send();
break;
}
else if (WindwalkerSkills(client, spellid) == "Available")
{
client.AddSpell(LearnableSpell(spellid));
}
else
{
dialog.Text("The study of [" + SpellTable.GetSpell(spellid, 0).Name + "] requires FellowBrother to reach a certain level. FellowBrother, you can find me when you reach the required Level.");
dialog.Option("I`ll~see~you!", 2);
dialog.Send();
}
break;
}
case 11:
{
dialog.Text("The Chaser branch is famous for its ability to control wind and outstanding ranged attacks.");
dialog.Text("~FellowBrother, which skill would you like to learn?");
dialog.Option("SwirlingStorm~[Lv.15].~(" + WindwalkerSkills(client, 12890) + ")", 30);
dialog.Option("ShadowofChaser~[Lv.15].~(" + WindwalkerSkills(client, 13090) + ")", 31);
dialog.Option("TripleBlasts~[Lv.40].~(" + WindwalkerSkills(client, 12850) + ")", 32);
dialog.Option("Thundercloud~[Lv.70]~[" + WindwalkerSkills(client, 12840) + "]", 33);
dialog.Option("Thunderbolt~[Lv.100]~[" + WindwalkerSkills(client, 12970) + "]", 34);
dialog.Option("I~want~to~learn~other~skills.", 2);
dialog.Option("I`ll~talk~to~you~later.", 255);
dialog.Send();
break;
}
case 30:
case 31:
case 32:
case 33:
case 34:
{
ushort spellid = 12800;
switch (npcRequest.OptionID)
{
case 30: { spellid += 90; break; }
case 31: { spellid += 290; break; }
case 32: { spellid += 50; break; }
case 33: { spellid += 40; break; }
case 34: { spellid += 170; break; }
}
if (WindwalkerSkills(client, spellid) == "Learned")
{
dialog.Text("FellowBrother has already acquired this skill. Go practice and feel its power.");
dialog.Option("Okay.", 2);
dialog.Send();
break;
}
else if (WindwalkerSkills(client, spellid) == "Available")
{
client.AddSpell(LearnableSpell(spellid));
}
else
{
dialog.Text("The study of [" + SpellTable.GetSpell(spellid, 0).Name + "] requires FellowBrother to reach a certain level. FellowBrother, you can find me when you reach the required Level.");
dialog.Option("I`ll~see~you!", 2);
dialog.Send();
}
break;
}
}
break;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
اهو يا رايدر | taha | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-02-18 06:36 AM |
مشكله +12 دي تاني مره ومش عارف احلها | ahmedshetos888 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-01-25 04:29 AM |
معلش يا رايدر | nova | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-11-24 10:45 AM |
تاني مشكله ف رايزو | zonfor | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2019-09-24 12:35 PM |
حل مشكله الجارد لما يموت مش بيصحى تانى | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-25 05:31 PM |