[RE-Release] Another Code for Nobility NPC

08/01/2009 23:40 ZkiNeF#1
Its my code for Nobility npc, here depend of you sex become you King or Queen...
and... to donation need nvl +100...

Its for LOTF...

talk()
Code:
if (CurrentNPC == 8410)
                        {
                            SendPacket(General.MyPackets.NPCSay("Soy el Encargado de la Donacion en 4Conquer..."));
                            SendPacket(General.MyPackets.NPCSay(" si quieres tener reconocimiento y un Titulo noble"));
                            SendPacket(General.MyPackets.NPCSay(" tendras que Donar Riquezas al Imperio..."));
                            SendPacket(General.MyPackets.NPCLink("Tengo que donar?", 20));
                            SendPacket(General.MyPackets.NPCLink("Donar? jA!", 255));
                            SendPacket(General.MyPackets.NPCSetFace(28));
                            SendPacket(General.MyPackets.NPCFinish());
                        }
do()
Code:
if (CurrentNPC == 8410)
                        {
                            if (Control == 1)
                            {
                                if (MyChar.Silvers >= 500000000 && MyChar.Model == 1003 || MyChar.Silvers >= 500000000 && MyChar.Model == 1004) // King
                                {
                                    MyChar.Silvers -= 500000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 1;
                                    MyChar.Donation += 500000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" ATENCION! " + MyChar.Name + " Se ah convertido en REY! #35 ", "SYSTEM", 2010);
                                    SendPacket(General.MyPackets.NPCSay("Larga Vida al Rey!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(28));
                                    SendPacket(General.MyPackets.NPCFinish());

                                }
                                else if (MyChar.Silvers < 500000000 && MyChar.Model == 1003 || MyChar.Silvers < 500000000 && MyChar.Model == 1004) // no money
                                {
                                    SendPacket(General.MyPackets.NPCSay("No tienes Tanto Dinero, no queremos un Rey Pobre!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(28));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                else if (MyChar.Silvers >= 500000000 && MyChar.Model == 2001 || MyChar.Silvers >= 500000000 && MyChar.Model == 2002) // queen
                                {
                                    MyChar.Silvers -= 500000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 2;
                                    MyChar.Donation += 500000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" ATENCION! " + MyChar.Name + " se ah convertido en Reina! #35 ", "SYSTEM", 2010);
                                }
                                else if (MyChar.Silvers < 500000000 && MyChar.Model == 2001 || MyChar.Silvers < 500000000 && MyChar.Model == 2002) // no money
                                {
                                    SendPacket(General.MyPackets.NPCSay("No tienes Tanto Dinero, no queremos una Reina Pobre!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(28));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 3)
                            {
                                if (MyChar.Silvers >= 300000000) // 300 Million
                                {
                                    MyChar.Silvers -= 300000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 3;
                                    MyChar.Donation += 300000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    
                                }
                                else 
                                {
                                    SendPacket(General.MyPackets.NPCSay("No Tienes Dinero!!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 4)
                            {
                                if (MyChar.Silvers >= 70000000) // 70 Million
                                {
                                    MyChar.Silvers -= 70000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 4;
                                    MyChar.Donation += 70000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("No Tienes Dinero!!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 5)
                            {
                                if (MyChar.Silvers >= 50000000) // 50 Million
                                {
                                    MyChar.Silvers -= 50000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 5;
                                    MyChar.Donation += 50000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("No tienes Dinero!!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 6)
                            {
                                if (MyChar.Silvers >= 30000000) // 30 Million
                                {
                                    MyChar.Silvers -= 30000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 6;
                                    MyChar.Donation += 30000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("No Tienes Dinero!!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 7)
                            {
                                if (MyChar.Silvers >= 3000000) // 3 Million
                                {
                                    MyChar.Silvers -= 3000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    MyChar.Rank = 7;
                                    MyChar.Donation += 3000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("No Tienes Dinero!!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 20)
                            {
                                if (MyChar.Level >= 100) 
                                {
                                    SendPacket(General.MyPackets.NPCSay("Asi es, donar al Imperio para que seas reconocido!"));
                                    SendPacket(General.MyPackets.NPCLink("Cuanto tengo que donar?", 21));
                                    SendPacket(General.MyPackets.NPCLink("Ni pensar en Donar mi Dinero!", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(28));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("Lo siento, solo Mayores de Nvl 100 Pueden ingresar"));
                                    SendPacket(General.MyPackets.NPCSay(" a la nobleza del Imperio."));
                                    SendPacket(General.MyPackets.NPCLink("Discriminacion!", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(28));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 21)
                            {
                                SendPacket(General.MyPackets.NPCSay("Bien, el precio del Reconocimiento es Alto..."));
                                SendPacket(General.MyPackets.NPCSay(" Elige la que mas se acomode a tus Riquezas."));
                                SendPacket(General.MyPackets.NPCSay(" No es Acumulable ok?"));
                                SendPacket(General.MyPackets.NPCLink("Rey/Reina (500kk)", 1));
                                SendPacket(General.MyPackets.NPCLink("Duque (300kk)", 3));
                                SendPacket(General.MyPackets.NPCLink("Marquez (70kk)", 4));
                                SendPacket(General.MyPackets.NPCLink("Conde (50kk)", 5));
                                SendPacket(General.MyPackets.NPCLink("Vizconde (30kk)", 6));
                                SendPacket(General.MyPackets.NPCLink("Lord (3kk)", 7));
                                SendPacket(General.MyPackets.NPCLink("Nos Vemoz...", 255));
                                SendPacket(General.MyPackets.NPCSetFace(28));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                        }
Well, this one in Spanish, only translates the text if you use ...
I know, someone else release it, but I seek less lines for more nice :D
08/01/2009 23:59 killermickle#2
Maybe you should point out its in spanish, before a bunch of american 12 year olds have spanish nobility in there server.
08/02/2009 00:01 TehPwnzor#3
lmfao that was funny
but good effort on trying to help!
08/02/2009 00:41 Pete1990#4
Quote:
Originally Posted by TehPwnzor View Post
lmfao that was funny
but good effort on trying to help!
yea it would be but anyway keep it up
08/02/2009 06:15 blade911#5
How do you add this to your source?
08/03/2009 05:10 Jay1029#6
What do I have t add before I add this? I got errors at the end.
08/03/2009 05:13 raidenx123#7
Rank
Donation
SaveRank
SaveDonation
08/05/2009 04:48 Jay1029#8
Damn it idk where to find all that crap =p
08/05/2009 05:14 raidenx123#9
it should come with basic c# knowledge ftw
08/05/2009 05:26 n0mansland#10
Quote:
Originally Posted by Jay1029 View Post
Damn it idk where to find all that crap =p
:p Then why do you run a server >.>?

Search for
Code:
CurrentNPC ==
Below or above add the first code..

Then highlight the first part of the code.. then do Ctrl+C (The part that looks like this (CurrentNPC == #)

Paste it in the search..

Then it will give you the parts for the links..

Add the second part of the Nobility code above or below.
08/05/2009 05:40 ZkiNeF#11
Well, i'm not to explain how to find the NPCDO() or NPCTALK() region... If you a programmer or think a little u can find it.
08/05/2009 05:45 n0mansland#12
Quote:
Originally Posted by ZkiNeF View Post
Well, i'm not to explain how to find the NPCDO() or NPCTALK() region... If you a programmer or think a little u can find it.
Well, I don't think it should really be required.. Looking at every NPC release it should be common sense on how to find it.. but some people pick up things better than others..
08/05/2009 20:56 Jay1029#13
OMG and you guys think I'm the retarded one lols
I'm not stupid, I could add an NPC in my sleep. I mean every time I try to add a code for nobility I get errors like Rank&Donation are underlined because I was supposed to add something else before it. I asked what I needed to add before it and raiden said Rank, Donation, SaveRank and SaveDonation. And I simply said idk where to find all of it. I found it now...because nomansland land sent a code to me but I get errors there as well...You can find that post [Only registered and activated users can see links. Click Here To Register...] So now I'm stuck and need help
08/05/2009 23:41 n0mansland#14
Possibly could you of forgot to add it in MySQL >.>? You needa supply pics I'm not magic XD
08/06/2009 01:52 Santa#15
So, This is amazing...There is some work to be done xD. TRANSLATING ALL THE TEXT.. haha good luck.