#Bump Please Its a Good Vip Start
Lol , get sum1 from epvp to check if they are allrite , if they r not then tell em 2 tell u wtf is wrong wiv em.Quote:
EVERY SINGLE NPC I add to my server doesn't say anything...I add them right I know that but in game I click on it and it wont do anything or it will say the first line but if I click on 1 of the options it closes...It's really starting to piss me off because idk why its doing that. With this NPC too. I can click on it and it will say do you wanna become a vi[ blah blah blah but no matter what I click after that it just closes...Anyone know why?
Can you tell us,If this VIP working on Binary 5065 ?? if that so just let us how to make it working with binary 5065??Quote:
This is for LOTF.
Character.cs Definition..
Ctrl+F and findCode:public byte VIP = 0;Above placeCode:public void Save()
Next Ctrl + F and findCode:public void SaveVIP() { if (MyClient.There) if (MyClient.Online) DataBase.SaveVIP(this); }and above placeCode:public static void SaveChar(Character Charr)
Next search forCode:public static void SaveVIP(Character Charr) { try { MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `VIP` = '" + Charr.VIP + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection); Command.ExecuteNonQuery(); } catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); } }under it placeCode:Charr.RBCount = Convert.ToByte((uint)DR["RBCount"]);
Dialog for npcCode:Charr.VIP= Convert.ToByte((uint)DR["VIP"]);
Control for npcCode:if (CurrentNPC == 1200) // Vip Grants { SendPacket(General.MyPackets.NPCSay("Would you like to become a VIP Member?")); SendPacket(General.MyPackets.NPCLink("What does a VIP get?", 1)); SendPacket(General.MyPackets.NPCLink("Yes!", 2)); SendPacket(General.MyPackets.NPCLink("What's my VIP Level?", 4)); SendPacket(General.MyPackets.NPCLink("Hell No!", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); }
Code:#region VIP Grant if (CurrentNPC == 1200) // Vip Grants { if (Control == 1) // info about vip { SendPacket(General.MyPackets.NPCSay("You get special permissions and special deals and more!")); SendPacket(General.MyPackets.NPCLink("Awesome!", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } if (Control == 2) // checks vip classes makes them vip { if (MyChar.VIP == 0) // checks vip level 0 { SendPacket(General.MyPackets.NPCSay("Would you like to become a VIP Member ( Level 1 ) It costs 4500 CPs. ")); SendPacket(General.MyPackets.NPCLink("Yes", 3)); SendPacket(General.MyPackets.NPCLink("Nope", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else if (MyChar.VIP == 1) // checks vip level 1 { SendPacket(General.MyPackets.NPCSay("Would you like to upgrade to VIP Member ( Level 2 ) It costs 9500 CPs. ")); SendPacket(General.MyPackets.NPCLink("Yes", 3)); SendPacket(General.MyPackets.NPCLink("Nope", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else if (MyChar.VIP == 2) // checks vip level 2 { SendPacket(General.MyPackets.NPCSay("Would you like to upgrade to VIP Member ( Level 3 ) It costs 14500 CPs. ")); SendPacket(General.MyPackets.NPCLink("Yes", 3)); SendPacket(General.MyPackets.NPCLink("Nope", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else if (MyChar.VIP == 3) // checks vip level 3 { SendPacket(General.MyPackets.NPCSay("You are already a VIP Member ( Level 3 ), You can't go higher.")); SendPacket(General.MyPackets.NPCLink("Nice..", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 3) // Changes VIP level { if (MyChar.VIP == 0) // checks vip level 0 { if (MyChar.CPs >= 4500) // checks cps { MyChar.CPs -= 4500; SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs)); MyChar.VIP = 1; // sets vip MyChar.SaveVIP(); // saves vip SendPacket(General.MyPackets.NPCSay("Congratulations you are now a VIP Member ( Level 1 )")); SendPacket(General.MyPackets.NPCLink("Woohoo!", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else { SendPacket(General.MyPackets.NPCSay("You do not have enough CPs!")); SendPacket(General.MyPackets.NPCLink("Damn", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } else if (MyChar.VIP == 1) // checks vip level 1 { if (MyChar.CPs >= 9500) // checks cps { MyChar.CPs -= 9500; SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs)); MyChar.VIP = 2; // sets vip MyChar.SaveVIP(); // saves vip SendPacket(General.MyPackets.NPCSay("Congratulations you are now a VIP Member ( Level 2 )")); SendPacket(General.MyPackets.NPCLink("Woohoo!", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else { SendPacket(General.MyPackets.NPCSay("You do not have enough CPs!")); SendPacket(General.MyPackets.NPCLink("Damn", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } else if (MyChar.VIP == 2) // checks vip level 2 { if (MyChar.CPs >= 14500) // checks cps { MyChar.CPs -= 14500; SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs)); MyChar.VIP = 3; // sets vip MyChar.SaveVIP(); // saves vip SendPacket(General.MyPackets.NPCSay("Congratulations you are now a VIP Member ( Level 3 )")); SendPacket(General.MyPackets.NPCLink("Woohoo!", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else { SendPacket(General.MyPackets.NPCSay("You do not have enough CPs!")); SendPacket(General.MyPackets.NPCLink("Damn", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } } if (Control == 4) // tells current vip level { SendPacket(General.MyPackets.NPCSay("Your VIP Level is " + MyChar.VIP + " .")); SendPacket(General.MyPackets.NPCLink("Hmm, Upgrade Time!", 2)); SendPacket(General.MyPackets.NPCLink("Cool!", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } #endregion
And finally add this into the characters table structure part
Code:Field - VIP Type - INT Attributes - Unsigned NULL - not null Default - 0
Any problems ask, if you ask if this is for coemu you obviously didn't read the thread
I'm sick of you and your shit. STFU and stop posting useless shit in peoples threads. You don't think he read his own error before writing it out? Use your fat head next time dumb ass.Quote:
can you read the error that you wrote ?! (Ctrl+G) and write the line and look around and try to fix your problems .. If you want to learn C# try to fix the errors by yourself
3 posts and already sick of him o.oQuote:
Posts: 3
I'm sick and tired of dumbasses and their shit. STFU and stop posting (all together). No I don't think he read his error because it is exactly what it's called, but it expects you to know programmatical terms. Oh what? You don't know what a cast is? Maybe you should learn some programming before trying to run a server. Just a thought.Quote:
I'm sick of you and your shit. STFU and stop posting useless shit in peoples threads. You don't think he read his own error before writing it out? Use your fat head next time dumb ass.
int integer = 22; object obj = integer; string str = (string)obj; // invalidcastexception