:convertcredits Command Error

Results 1 to 1 of 1
  1. #1
    Enthusiast Alexus54321 is offline
    MemberRank
    May 2011 Join Date
    39Posts

    :convertcredits Command Error

    Hello Guys,

    In my hotel i'am using the Command :convertcredits and with this you can convert all your Credit bar's back to your purse.

    Here is the Function of it:
    Spoiler:

    public void ConvertCoinsToCredits()
    {
    int num = 0;

    List<UserItem> list = new List<UserItem>();

    foreach (UserItem item in Items)
    {
    if (item != null && (item.method_1().Name.StartsWith("CF_") || item.method_1().Name.StartsWith("CFC_")))
    {
    string[] array = item.method_1().Name.Split(new char[]
    {
    '_'
    });

    int num2 = int.Parse(array[1]);

    if (!this.list_1.Contains(item.uint_0))
    {
    if (num2 > 0)
    {
    num += num2;
    }
    list.Add(item);
    }
    }
    }

    foreach (UserItem current in list)
    {
    this.method_12(current.uint_0, 0u, false);
    }

    Session.GetHabbo().Credits += num;
    Session.GetHabbo().UpdateCredits(true);

    Session.SendNotification("All coins in your inventory have been converted back into " + num + " credits!");
    }


    So my problem is, if you have in example 3x 1 Million Bar in your Inventory, then you execute the command and in this moment you also close the client and log in again, you have the bar's still in your inventory and also 3 Million in your Purse. So you can easy "bug" yourself coins with this.

    Does anyone could help me with this problem?

    Best Regards,




Advertisement