Here is fixed controls with awarding/requiring items + a system message
#Updated
Now just one question, what is WindSage's type ID so that his name is WindSage and whatnot?
Edit - the TYPE ID for real WindSage is 8830
#Updated
Code:
if (CurrentNPC == 2009) // Wind Sage
{
if (Control == 1)
{
if (MyChar.Job == 50)
{
SendPacket(General.MyPackets.NPCSay("To promote yourself to Ninja you need to be level 15 or higher."));
}
if (MyChar.Job == 51)
{
SendPacket(General.MyPackets.NPCSay("To promote yourself to Middle Ninja you need to be level 40 or higher."));
}
if (MyChar.Job == 52)
{
SendPacket(General.MyPackets.NPCSay("To promote yourself to Dark Ninja you need to be level 70 or higher."));
}
if (MyChar.Job == 53)
{
SendPacket(General.MyPackets.NPCSay("To promote yourself to Mystic Ninja you need to be level 100 or higher."));
}
if (MyChar.Job == 54)
{
SendPacket(General.MyPackets.NPCSay("To promote yourself to Ninja Master you need to be level 110 or higher."));
}
if (MyChar.Job != 55)
{
SendPacket(General.MyPackets.NPCLink("I want to promote.", 2));
SendPacket(General.MyPackets.NPCLink("I dont think I'm qualified for that yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You are at the highest promotion rank. I can not help you anymore."));
SendPacket(General.MyPackets.NPCLink("Sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 2)
{
bool Promoted = false;
if (MyChar.Job == 50 && MyChar.Level >= 15)
{
MyChar.Job = 51;
Promoted = true;
}
else if (MyChar.Job == 51 && MyChar.Level >= 40)
{
MyChar.Job = 52;
Promoted = true;
}
else if (MyChar.Job == 52 && MyChar.Level >= 70)
{
MyChar.Job = 53;
Promoted = true;
}
else if (MyChar.Job == 53 && MyChar.Level >= 100)
{
if (MyChar.RBCount == 1)
{
MyChar.AddItem("601279-5-1-0-13-0", 0, (uint)General.Rand.Next(36457836));
}
else if (MyChar.RBCount == 2)
{
MyChar.AddItem("1088000-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
MyChar.Job = 54;
Promoted = true;
}
else if (MyChar.Job == 54 && MyChar.Level >= 110)
{
if (MyChar.RBCount == 0)
{
MyChar.AddItem("722342-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.AddItem("150000-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
World.SendMsgToAll("Congratulations, " + MyChar.Name + "has been rewarded a LoveForever Ring and A LoveLock!", " System", 2011);
}
else if (MyChar.RBCount == 1)
{
MyChar.AddItem("722342-0-4-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.AddItem("150000-0-4-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.AddItem("1088000-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
World.SendMsgToAll("Congratulations, " + MyChar.Name + "has been rewarded a Special LoveForever Ring, A Special LoveLock, and a DragonBall!", " System", 2011);
}
else if (MyChar.RBCount == 2)
{
MyChar.AddItem("722342-0-4-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.AddItem("150000-0-4-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.AddItem("1088000-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
MyChar.AddItem("601329-8-5-150-13-13", 0, (uint)General.Rand.Next(36457836));
World.SendMsgToAll("Congratulations, " + MyChar.Name + "has been rewarded a Special LoveForever Ring, A special LoveLock, a DragonBall, and an Almost Maxed out JusticeKatana", " System", 2011);
}
MyChar.Job = 55;
Promoted = true;
World.SendMsgToAll("Congratulations, " + MyChar.Name + "has been promoted to a NinjaMaster!", " System", 2011);
}
if (Promoted)
{
SendPacket(General.MyPackets.NPCSay("Congratulations! You have promoted yourself and gained some awesome items!"));
SendPacket(General.MyPackets.NPCLink("Thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
SendPacket(General.MyPackets.Vital(MyChar.UID, 7, MyChar.Job));
}
else
{
SendPacket(General.MyPackets.NPCSay("You can't promote yet."));
SendPacket(General.MyPackets.NPCLink("Okay.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 3)//Learn Skills
{
SendPacket(General.MyPackets.NPCSay("We still have to code the skills."));
SendPacket(General.MyPackets.NPCLink("Okay.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Edit - the TYPE ID for real WindSage is 8830