Here is fixed controls with awarding/requiring items + a system message
#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());
}
}
Now just one question, what is WindSage's type ID so that his name is WindSage and whatnot?
Here is fixed controls with awarding/requiring items + a system message
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("130287-0-0-0-11-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("700012-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
else if (MyChar.RBCount == 1)
{
MyChar.AddItem("1088000-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
else if (MyChar.RBCount == 2)
{
MyChar.AddItem("160199-0-0-0-13-0", 0, (uint)General.Rand.Next(36457836));
}
MyChar.Job = 55;
Promoted = true;
World.SendMsgToAll("Congratulations, " + MyChar.Name + "has been promoted to a NinjaMaster!", " System", 2011);
}
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
All you added was +s, so its not fixed its just edited. Wow? Also...Why in the world will you give them + items, I mean seriously..
It should go like this
Lvl 15 : Unique Armor
Lvl 40 : CPs or Silvers
Lvl 70 : ExpPotion + 5 or so expballs
Lvl 100 : Elite Weapon & Elite accessory
Lvl 110 : Dragonball, Exp potion, Super Armor and a refined or super gem
[Release] Adding Ninja LOTF 07/04/2011 - CO2 PServer Guides & Releases - 73 Replies You can add (Ninja , New Character ) Items , Skills , NPcs ...... By following the links and info
And i can call it
It isn't code or something like that .. i can help you to add ninja on LOTF (5017)
-------------------
First go to YourConquerFolder/ini/ProfessionalName.ini in it add
50 means Character id . The command will be /job 50 for internNinja
Now you added the character
[HELP]Ninja Promotion NPC lotf 08/26/2009 - CO2 Private Server - 5 Replies Hey guy was wondering if any know the id for the ninja promotion npc WindSage? Thx in advance =)
[Release] Ninja Amulet (LOTF) 08/21/2009 - CO2 PServer Guides & Releases - 13 Replies i used #search and didn't find a *release* for it. pete ninja had a code, but it was tested, so i just coded this and figured i'd release for all those retro coders. (like myself.) alright.
in character.cs
search: 723584
(if that isn't implemented in your source, search: 1060101
above either of those, add in:
else if (ItemParts == "723583") //NINJA AMULET
Probs while adding Ninja to LOTF 07/18/2009 - CO2 Private Server - 20 Replies Well i added Ninja but Katanas use Boxing as Prof how can i fix this?
can any one help me about ninja in LoTF 06/05/2009 - CO2 Private Server - 12 Replies i need any help How i can add ninja items skills katana
any one have any guide plz tell me
any help please