Results 1 to 7 of 7
  1. #1
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14

    [Fab] How to fix ut vault chest problem!

    Hey guys so on my server I recently noticed normal players with crowns and figured out that you can /spawn vault chest and put uts in it for normal players to take... Soooooo to fix this issue it's pretty simple! Just go to wServer/realm/commands/AdminCommands.cs and find SpawnCommand.
    Then go to this part:
    Code:
                    string name = string.Join(" ", args.Skip(1).ToArray());
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendInfo("Unknown entity!");
                        return false;
                    }
    Add this line:
    Code:
                    if (name == "vault chest")
                    {
                        player.SendError("Cannot spawn this object!");
                        return false;
                    }
    So it should now look like:
    Code:
                    string name = string.Join(" ", args.Skip(1).ToArray());
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (name == "vault chest")
                    {
                        player.SendError("Cannot spawn this object!");
                        return false;
                    }
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendInfo("Unknown entity!");
                        return false;
                    }
    Finally find this part:
    Code:
    else
                {
                    string name = string.Join(" ", args);
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendHelp("Usage: /spawn <entityname>");
                        return false;
                    }
    And add the same line from earlier so it looks like this:
    Code:
    else
                {
                    string name = string.Join(" ", args);
                    if (name == "vault chest")
                    {
                        player.SendError("Cannot spawn this object!");
                        return false;
                    }
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendHelp("Usage: /spawn <entityname>");
                        return false;
                    }
    That's all! Hope you find this helpful (:

  2. The Following 4 Users Say Thank You to Caesar1928 For This Useful Post:

    HGAEHaeheadhetdhtertherh (11-05-2015),Luis (11-13-2015),Rariity (11-05-2015),Yul0627 (03-17-2017)

  3. #2
    Rariity's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    Bethel, Maine
    Posts
    47
    Reputation
    10
    Thanks
    2
    Thank you very much, I have been trying to figure out a fix to my problem and I figured out that like 2 of my lines were off. Lol thank you for showing me the fix Will put a thanks on your account

  4. #3
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Rariity View Post
    Thank you very much, I have been trying to figure out a fix to my problem and I figured out that like 2 of my lines were off. Lol thank you for showing me the fix Will put a thanks on your account
    Lol no problem

  5. #4
    WcCrusher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    127.0.0.1
    Posts
    83
    Reputation
    10
    Thanks
    227
    My Mood
    Twisted
    Quote Originally Posted by Caesar1928 View Post
    Hey guys so on my server I recently noticed normal players with crowns and figured out that you can /spawn vault chest and put uts in it for normal players to take... Soooooo to fix this issue it's pretty simple! Just go to wServer/realm/commands/AdminCommands.cs and find SpawnCommand.
    Then go to this part:
    Code:
                    string name = string.Join(" ", args.Skip(1).ToArray());
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendInfo("Unknown entity!");
                        return false;
                    }
    Add this line:
    Code:
                    if (name == "vault chest")
                    {
                        player.SendError("Cannot spawn this object!");
                        return false;
                    }
    So it should now look like:
    Code:
                    string name = string.Join(" ", args.Skip(1).ToArray());
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (name == "vault chest")
                    {
                        player.SendError("Cannot spawn this object!");
                        return false;
                    }
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendInfo("Unknown entity!");
                        return false;
                    }
    Finally find this part:
    Code:
    else
                {
                    string name = string.Join(" ", args);
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendHelp("Usage: /spawn <entityname>");
                        return false;
                    }
    And add the same line from earlier so it looks like this:
    Code:
    else
                {
                    string name = string.Join(" ", args);
                    if (name == "vault chest")
                    {
                        player.SendError("Cannot spawn this object!");
                        return false;
                    }
                    ushort objType;
                    //creates a new case insensitive dictionary based on the XmlDatas
                    Dictionary<string, ushort> icdatas = new Dictionary<string, ushort>(
                        player.Manager.GameData.IdToObjectType,
                        StringComparer.OrdinalIgnoreCase);
                    if (!icdatas.TryGetValue(name, out objType) ||
                        !player.Manager.GameData.ObjectDescs.ContainsKey(objType))
                    {
                        player.SendHelp("Usage: /spawn <entityname>");
                        return false;
                    }
    That's all! Hope you find this helpful (:
    thx but its very easy to bypass it
    just do for example /spawn VaUlT ChEsT
    i would appreciate a fix for that

  6. #5
    Fightera100's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    662
    Reputation
    10
    Thanks
    1,684
    Quote Originally Posted by WcCrusher View Post
    thx but its very easy to bypass it
    just do for example /spawn VaUlT ChEsT
    i would appreciate a fix for that
    string.lower (idk whats in c# actually)

  7. #6
    WcCrusher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    127.0.0.1
    Posts
    83
    Reputation
    10
    Thanks
    227
    My Mood
    Twisted
    Quote Originally Posted by Fightera100 View Post
    string.lower (idk whats in c# actually)
    thx but i have no idea where to place this :P

  8. #7
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    Quote Originally Posted by Fightera100 View Post
    string.lower (idk whats in c# actually)
    lowerTo() I think

     








Similar Threads

  1. [Solved] How to fix this CCMAN Hack Problem ?
    By MOJRM in forum Alliance of Valiant Arms (AVA) Help
    Replies: 0
    Last Post: 02-09-2014, 03:03 PM
  2. [Help] How to fix this ? Le Bot Problem (also in other bots)
    By aiu in forum Adventure Quest Worlds (AQW) Hacks / Cheats / Trainers
    Replies: 5
    Last Post: 02-25-2013, 02:41 AM
  3. Any idea how to fix ts cuz my problem is I get dc everytime on ts
    By redralphy in forum Alliance of Valiant Arms (AVA) Help
    Replies: 1
    Last Post: 10-20-2012, 12:38 PM
  4. [Tutorial] how to fix all your crossfire problem
    By sco-myth in forum CrossFire Tutorials
    Replies: 13
    Last Post: 08-27-2011, 02:58 PM
  5. [TUT]How to fix the no sound problem
    By mikenesh5 in forum Combat Arms Hacks & Cheats
    Replies: 10
    Last Post: 08-25-2009, 07:43 AM