Adding Ninja JOB titles

02/05/2009 17:00 cazzon717#1
Ok im currently working on Ninja to release the source code.
For some people who are looking to add the Job title like Ninja Master this is how you do it.

Type : Client Sided

Open your client folder and open the ini folder. Find ProfessionalName.ini open this.

Scroll to the bottom and add

196,Ninja
197,MiddleNinja
198,DarkNinja
199,MysticNinja
200,NinjaMaster

Now depending on your server you type /job <JOB number> so now the job numbers are 196, 197, 198, 199, 200

Sorry this is not a big guide but soon i add these things

- Ninja items
- Ninja skills (I dont know how to do that)
- Ninja Weapons Profession
- Adding Ninja Jump animation

I dont mind if you release this guild else where but all i ask is for my credit.
02/05/2009 17:03 Hyberkill#2
usually their ids are 50 51 52 53 54 55 but 196 will do also (doesnt matter really... but 50 is easier to type xD )
02/05/2009 17:05 cazzon717#3
Quote:
Originally Posted by Hyberkill View Post
usually their ids are 50 51 52 53 54 55 but 196 will do also (doesnt matter really... but 50 is easier to type xD )
Yeh you can choose what numbers you want. Just make sure they dont already exsit
02/05/2009 17:30 Hyberkill#4
heh i know ... ive tryed adding the ninja to a 5017 version n failure :P its true all items appear n all skins also... but there's no dual wield + the skill effects arent properly working also.. + no startower n no heavenfan
02/05/2009 18:18 cazzon717#5
Ok heres how to add the Ninja Promotion Guy, this might change depending on your source code. You also need to sapwn the npc. The id is 62184

In NPCSAY Region
Code:
      if (CurrentNPC == 62184)
{
  if (MyChar.Job < 201 && MyChar.Job > 194)
                                                            {
                                SendPacket(General.MyPackets.NPCSay("Hey Ninja, What would you like to do?"));
                                SendPacket(General.MyPackets.NPCLink("Get Promoted", 1));
                                SendPacket(General.MyPackets.NPCLink("Learn Skills", 2));
                                SendPacket(General.MyPackets.NPCLink("Im Leaving", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                                else
                            {
                                SendPacket(General.MyPackets.NPCSay("Sorry, Your not a Ninja"));
                                SendPacket(General.MyPackets.NPCLink("I know", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
In NPCDO Region

Code:
if (CurrentNPC == 62184)
{
if (Control == 1)
{
if (MyChar.Job == 196 && MyChar.Level >= 39)
{
SendPacket(General.MyPackets.NPCSay("Promotion Sucessful, Sorry i must disconnect you in order to take effect."));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.Job = 197;
MyChar.Save();
Drop();
}                      
if (MyChar.Level <= 40)

{
                                     SendPacket(General.MyPackets.NPCSay("Promotion UnSucessful, Please Level harder"));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (MyChar.Job == 197 && MyChar.Level >= 69)
{
SendPacket(General.MyPackets.NPCSay("Promotion Sucessful, Sorry i must disconnect you in order to take effect."));
SendPacket(General.MyPackets.NPCLink("Ok.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.Job = 198;
MyChar.Save();
                                    Drop();
                                }
                                if (MyChar.Level <= 70)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Promotion UnSucessful, Please Level harder"));
                                    SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (MyChar.Job == 198 && MyChar.Level >= 99)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Promotion Sucessful, Sorry i must disconnect you in order to take effect."));
                                    SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                    MyChar.Job = 199;
                                    MyChar.Save();
                                    Drop();
                                }
                                if (MyChar.Level <= 100)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Promotion UnSucessful, Please Level harder"));
                                    SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                        if (MyChar.Job == 199 && MyChar.Level >= 109)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Promotion Sucessful, Sorry i must disconnect you in order to take effect."));
                                    SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                    MyChar.Job = 200;
                                    MyChar.Save();
                                    Drop();
                                }
                                if (MyChar.Level <= 110)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Promotion UnSucessful, Please Level harder"));
                                    SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (MyChar.Job == 200)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Max Promotion Reached"));
                                    SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }


                            }
                                  
     
                                
                            if (Control == 2)
                            {
                                  
                                SendPacket(General.MyPackets.NPCSay("No skills Made, Sorry."));
                                SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                        }
02/05/2009 18:39 Exia13#6
Looks good, but why do you need to drop the client? All the NPCs simply promote you and thats fine. Once you save the char thats it.
02/05/2009 19:16 cazzon717#7
Quote:
Originally Posted by Exia13 View Post
Looks good, but why do you need to drop the client? All the NPCs simply promote you and thats fine. Once you save the char thats it.
Well when i made this NPC i tested it and it did not change the Job Status until you disconnected. So i thought of adding the Drop command. Might just be me :)
02/05/2009 19:39 _Emme_#8
Because your not sending the packet to update it. Also, skills are really easy once you find some skill ids to use.
02/05/2009 21:05 Beta Limit#9
You cannot have Ninja set in client as 100+ or the server will interpret is as a taoist no matter what u do to change it. Make your ninja as 50-5X how it is in the real game.