Help nobility npc

07/23/2009 19:14 Skuade#1
i need help to repair the npc for nobility in CoMy source
who can help me ? thanks
07/23/2009 19:22 Arcotemple:)#2
what is wrong with it?
be more specific
07/23/2009 19:30 Skuade#3
the dialog dont talk :S what i need do for work? in top left says You Try To Talk to Npc (NpcID:8410) and the window for donate didnt work >_>

#Edited
07/23/2009 20:10 WTFoRK#4
Whats so hard in getting a specific NPC to work?You're just ... a unskilled person.lol
07/23/2009 20:18 n0mansland#5
Uhmm maybe the NPCID is wrong? Just a guess... x.X or they don't have this at the end..

Code:
SendPacket(General.MyPackets.NPCFinish());
It's simple once you look at it more..
07/23/2009 20:22 Skuade#6
the problem is i cant talk with it, how i do,

Quote:
Uhmm maybe the NPCID is wrong?
possibility =(

mm thanks !
07/23/2009 21:29 jegosu#7
replace with that
PHP Code:
                        if (CurrentNPC == 8410)//Nobility npc
                        
{
                            
SendPacket(General.MyPackets.NPCSay("LordsCo:Hey,you want to be a nobility?You must give me silvers for it!What you want to be?"));
                            
SendPacket(General.MyPackets.NPCLink("King-Cost 500 kk"1));
                            
SendPacket(General.MyPackets.NPCLink("Queen-Cost 500 kk"2));
                            
SendPacket(General.MyPackets.NPCLink("i Have only 70 kk"3));
                            
SendPacket(General.MyPackets.NPCLink("i Have only 50 kk"4));
                            
SendPacket(General.MyPackets.NPCLink("I have only 35 kk!"5));
                            
SendPacket(General.MyPackets.NPCLink("I have only 15 kk!"6));
                            
SendPacket(General.MyPackets.NPCLink("I have only 3 kk!"7));
                            
SendPacket(General.MyPackets.NPCLink("Good Bye."255));
                            
SendPacket(General.MyPackets.NPCSetFace(30));
                            
SendPacket(General.MyPackets.NPCFinish());
                        } 


and with that

PHP Code:
                        if (CurrentNPC == 8410)
                        {
                            if (
Control == 1)
                            {
                                if (
MyChar.Silvers >= 500000000 && MyChar.Model == 1003// 500 Million
                                
{
                                    
MyChar.Silvers -= 500000000;
                                    
SendPacket(General.MyPackets.Vital(MyChar.UID4MyChar.Silvers));
                                    
MyChar.Rank 1;
                                    
MyChar.Donation += 500000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                    
World.SendMsgToAll(" " MyChar.Name " is a King now! ""SYSTEM"2010);

                                }
                                else if (
MyChar.Silvers 500000000)
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                                else if (
MyChar.Model == 2001 || MyChar.Model == 2002)
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You are a lady, so you must become a Queen!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (
Control == 2)
                            {
                                if (
MyChar.Silvers >= 500000000 && MyChar.Model == 1005// 300 Million
                                
{
                                    
MyChar.Silvers -= 500000000;
                                    
SendPacket(General.MyPackets.Vital(MyChar.UID4MyChar.Silvers));
                                    
MyChar.Rank 2;
                                    
MyChar.Donation += 500000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                    
World.SendMsgToAll(" " MyChar.Name " is a Queen now! ""SYSTEM"2010);
                                }
                                else if (
MyChar.Silvers 500000000)
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                                else if (
MyChar.Model == 1003 || MyChar.Model == 1004)
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You are a man, so you must become a King!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (
Control == 3)
                            {
                                if (
MyChar.Silvers >= 70000000// 70 Million
                                
{
                                    
MyChar.Silvers -= 70000000;
                                    
SendPacket(General.MyPackets.Vital(MyChar.UID4MyChar.Silvers));
                                    
MyChar.Rank 3;
                                    
MyChar.Donation += 70000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (
Control == 4)
                            {
                                if (
MyChar.Silvers >= 50000000// 50 Million
                                
{
                                    
MyChar.Silvers -= 50000000;
                                    
SendPacket(General.MyPackets.Vital(MyChar.UID4MyChar.Silvers));
                                    
MyChar.Rank 4;
                                    
MyChar.Donation += 50000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (
Control == 5)
                            {
                                if (
MyChar.Silvers >= 35000000// 35 Million
                                
{
                                    
MyChar.Silvers -= 35000000;
                                    
SendPacket(General.MyPackets.Vital(MyChar.UID4MyChar.Silvers));
                                    
MyChar.Rank 5;
                                    
MyChar.Donation += 35000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (
Control == 6)
                            {
                                if (
MyChar.Silvers >= 15000000// 15 Million
                                
{
                                    
MyChar.Silvers -= 15000000;
                                    
SendPacket(General.MyPackets.Vital(MyChar.UID4MyChar.Silvers));
                                    
MyChar.Rank 6;
                                    
MyChar.Donation += 15000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
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.UID4MyChar.Silvers));
                                    
MyChar.Rank 7;
                                    
MyChar.Donation += 3000000;
                                    
MyChar.SaveRank();
                                    
MyChar.SaveDonation();
                                    
World.UpdateSpawn(MyChar);
                                }
                                else
                                {
                                    
SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!"));
                                    
SendPacket(General.MyPackets.NPCLink("Oh sorry..."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                        } 
Thanks me if Works
07/24/2009 15:42 Skuade#8
didnt work, i put it in client.cs is correct?
07/24/2009 16:19 ~Yuki~#9
Yes
07/24/2009 17:38 Skuade#10
then idk, dont work :S can u make it and send me? if i wrong in something =Z plz