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.UID, 4, MyChar.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.UID, 4, MyChar.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.UID, 4, MyChar.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.UID, 4, MyChar.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.UID, 4, MyChar.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.UID, 4, MyChar.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.UID, 4, MyChar.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());
}
}
}
Nobility 08/01/2009 - CO2 Private Server - 8 Replies kk i got nobility coded in just one problem
the stupid effect goes off every 3 seconds
how can i stop that?
lotf
Nobility 07/06/2009 - CO2 Private Server - 15 Replies okay you guys know how Undress My Shadow's nobility code is for ini?
what about for non ini?
cuz i need help with that
cuz mine saves mysql
nobility 07/01/2009 - CO2 Private Server - 0 Replies Hello, I do not want to continue being a nuisance it is because of it that is the last question that I do, I need that they explain to me since as the code begins to add the system of nobility, it is quite and if someone can help me to arrange the power of xp in coemu v2 agradesco.
Good-bye and thanks
how can i put nobility 05/31/2009 - CO2 Private Server - 1 Replies how can i put nobilty in CoEmu do i need to code it?
[NobilitY] 05/05/2009 - CO2 Private Server - 8 Replies Can anyone please post here how to add nobility rank or somehting like nobility in LOFT / 5017