[Request]VIP rank

08/25/2008 15:21 gerble93#1
How do i add an additional rank?
I know it has to do with this:

if (Status == X)

And idk how to do rest. Well i do, but like when i make it:

Quote:
#region vipcommands
if (Status == 6)
if (Splitter[0] == "/prof")
{
if (MyChar.Profs.Contains(short.Parse(Splitter[1])))
MyChar.Profs.Remove(short.Parse(Splitter[1]));

if (MyChar.Prof_Exps.Contains(short.Parse(Splitter[1])))
MyChar.Prof_Exps.Remove(short.Parse(Splitter[1]));

MyChar.Profs.Add(short.Parse(Splitter[1]), byte.Parse(Splitter[2]));
MyChar.Prof_Exps.Add(short.Parse(Splitter[1]), uint.Parse("0"));
SendPacket(General.MyPackets.Prof(short.Parse(Spli tter[1]), byte.Parse(Splitter[2]), 0));
}
}
if (Splitter[0] == "/dc")
{
Drop();
}
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "pc")
MyChar.Teleport(1011, 188, 264);
if (Splitter[1] == "dc")
MyChar.Teleport(1000, 500, 650);
if (Splitter[1] == "bi")
MyChar.Teleport(1015, 723, 573);
if (Splitter[1] == "am")
MyChar.Teleport(1020, 565, 562);
if (Splitter[1] == "market")
MyChar.Teleport(1036, 198, 194);
if (Splitter[1] == "tc")
MyChar.Teleport(1002, 429, 378);
}
}

if (Splitter[0] == "/info")
{
string BackMsg = "";
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
BackMsg += Char.Name + ", ";
}
if (BackMsg.Length > 1)
BackMsg = BackMsg.Remove(BackMsg.Length - 2, 2);
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Players Online: " + World.AllChars.Count, 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, BackMsg, 2000));
}
if (Message == "/save")
MyChar.Save();

if (Message == "/coords")
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Coords: " + MyChar.LocX + ", " + MyChar.LocY, 2000));
if (Splitter[0] == "/effect")
{
SendPacket(General.MyPackets.String(MyChar.UID, 10, Splitter[1]));
}
#endregion
When i copy and paste everything, then i get like 56 errors, things that werent errors before but now are
08/25/2008 15:30 nTL3fTy#2
Set the VIP accounts' Status in the database to 6.
08/25/2008 15:33 gerble93#3
nvm i got it, I just copyed PH section, pasted it, and edited it, =] thanks!