Anyway.. I'm sure you figured out the problem by now.. but yea, you'll have to add Donation and Rank into your database.. Also, are you forgetting the
Code:
Public Static Void SaveDonation
Part? or you just didn't add it in here..
Personally I wouldn't use that code.. but if it works it works.. Unless you plan on adding/changing some things.. Looks like they haven't added the extra potency part.
In the King/Queen parts of the NPC control the MyChar.Model's are incorrect. Hopefully this will correct the issue. If not, feel free to point and laugh at me. I would also lose the last else if myself, and just have else becuase im picky as they get.
Code:
if (CurrentNPC == 8410)
{
if (Control == 1)
{
if (MyChar.CPs > 1000000 && MyChar.Model != 2001 && MyChar.Model != 2002) // 1 Million
{
MyChar.CPs -= 1000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Rank = 1;
MyChar.Donation += 1000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" " + MyChar.Name + " is a King now! ", "SYSTEM", 2010);
}
else if (MyChar.CPs < 1000000)
{
SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a King!"));
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.CPs > 1000000 && MyChar.Model != 1003 && MyChar.Model != 1004) // 1 Million
{
MyChar.CPs -= 1000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Rank = 2;
MyChar.Donation += 1000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" " + MyChar.Name + " is a Queen now! ", "SYSTEM", 2010);
}
else if (MyChar.CPs < 1000000)
{
SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Queen!"));
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.CPs >= 750000) // 750 Thousand
{
MyChar.CPs -= 750000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Rank = 3;
MyChar.Donation += 750000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" " + MyChar.Name + " is a Prince now! ", "SYSTEM", 2010);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Prince!"));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 4)
{
if (MyChar.CPs >= 600000) // 600 Thousand
{
MyChar.CPs -= 600000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Rank = 4;
MyChar.Donation += 600000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" " + MyChar.Name + " is a Duke now! ", "SYSTEM", 2010);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Duke!"));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 5)
{
if (MyChar.CPs >= 500000) // 500 Thousand
{
MyChar.CPs -= 500000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Rank = 5;
MyChar.Donation += 500000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" " + MyChar.Name + " is an Earl now! ", "SYSTEM", 2010);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become an Earl!"));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 6)
{
if (MyChar.CPs >= 350000) // 350 Thousand
{
MyChar.CPs -= 350000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Rank = 6;
MyChar.Donation += 350000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" " + MyChar.Name + " is a Knight now! ", "SYSTEM", 2010);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Knight!"));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
[Source] SRO BOT Source Code(AutoIt) 09/16/2011 - SRO Hacks, Bots, Cheats & Exploits - 34 Replies I am finally going to release the source code to srobot.. it is a autoit bot.. ( befor you flame on auto it... check it out ) this is a very very advanced autoit script with read/write memory options. all this bot needs is to be updated with the new offsets and such. so please do not update this and just put your name on it.. as iv seen someone else in this forum has did.. not saying any names he knows who he is... after we spent a get bit of time on this script he wants to rip the source and...
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code 02/13/2011 - AutoIt - 6 Replies Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein.
Funktionsweise:
1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken
2. in meinem Programm auf "Code generieren" klicken
3. In euer Scite gehen und einfügen
Hier ist der Source Code vom Programm: