[Request] Ninja Class Files

07/30/2009 08:42 ZkiNeF#1
Well, this time post to see if someone has the files
for the ninja. No files of the vest and katanas and
all that. I'm looking for the files will just create a pj
and choose the profession.

If anyone knows where they are or where they are, because I gave him half
Back to the forum and found nothing more than the same, and katanas
garments.

Sorry if my english is bad xD... I use a translate.

:facepalm::facepalm::facepalm::facepalm::facepalm:
07/30/2009 13:52 TehPwnzor#2
Code:
                            //Credits go to f0am
                            if (CurrentNPC == 2009) // Wind Sage
                            {
                                if (MyChar.Job >= 50 && MyChar.Job <= 55)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Hello, I am the Ninja Trainer. What can i do for you?"));
                                    SendPacket(General.MyPackets.NPCLink("I would like to promote.", 1));
                                    SendPacket(General.MyPackets.NPCLink("I want to learn new skills.", 3));
                                    SendPacket(General.MyPackets.NPCLink("Just passing by.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("You are not a Ninja, Go away!"));
                                    SendPacket(General.MyPackets.NPCLink("Sorry!!", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
and..

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)
                                    {
                                        MyChar.Job = 54;
                                        Promoted = true;
                                    }
                                    else if (MyChar.Job == 54 && MyChar.Level >= 110)
                                    {
                                        MyChar.Job = 55;
                                        Promoted = true;
                                    }

                                    if (Promoted)
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Congratulations! You have promoted yourself."));
                                        SendPacket(General.MyPackets.NPCLink("Yay!.", 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("Damn.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                                if (Control == 3)
                                {
                                    // Learn Skills
                                }

                            }
07/30/2009 14:14 _Emme_#3
If you don't want it the exact way TQ was it, only just to promote, you can do something like this:

Note: This code works for promotion of all job's except for taoist, since the ID there are 100 - 145

Quote:
public static byte PromoteReq(Character char)
{
int x = char.Job % 10;
if (x == 0) return 15;
else if (x == 1) return 40;
else if (x == 2) return 70;
else if (x == 3) return 110;
else return 120;
}
Quote:
if (Option == 0)
{
Text("Hello, I can promote you. Do you wish to be promoted?");
Option("Yes please",1);
Option("Just passing by..",255);
}
if (Option == 1)
{
if (Char.Level >= PromoteReq(Char))
{
Char.Job++;
Text("You have been promoted!");
Option("Thanks!",255);
}
}

Just another way to do it, I'm trying to introduce you all to use a little more math in the codes, it really pays off.

Goodluck,
07/30/2009 17:46 ZkiNeF#4
No no, thkx for the answer but, i looking for the character select screen... o_O
I cant found it xD!

The promotion npc I can program by myself xD
07/30/2009 18:19 xellios#5
Ehm that is not possible rofl?
07/30/2009 19:17 TehPwnzor#6
lol must switch to 5095 if you want that
07/30/2009 20:53 ZkiNeF#7
uhmmm ... Attempt to make a hybrid whit ninjas but without talismans xD!

But then if I try to get the client files 8100 (Conquista) me drope all by the Conquer.exe.

Someone will have a solution?
07/30/2009 22:45 ZkiNeF#8
Well... I found it...


+K to Google LoL

:handsdown: :handsdown: :handsdown: :handsdown: :handsdown: :handsdown:

#~Request Closet.
07/31/2009 14:02 tanelipe#9
#closed