public void ConfigRPG(PluginMessagesConfig messagesTable, Dictionary<int, long> xpTable, Dictionary<string, Skill> skillTable, Dictionary<string, ItemInfo> itemTable, Dictionary<string, RPGInfo> rpgConfig, Dictionary<string, string> playerFurnaces) { MessagesTable = messagesTable; XPTable = xpTable; SkillTable = skillTable; ItemTable = itemTable; RPGConfig = rpgConfig; ResearchTable = HuntTablesGenerator.GenerateResearchTable(); UpgradeBuildingTable = HuntTablesGenerator.GenerateUpgradeBuildingTable(); PlayersFurnaces = playerFurnaces; }
public static PluginMessagesConfig GenerateMessageTable() { var messagesConfig = new PluginMessagesConfig("Hunt", "lightblue"); messagesConfig.AddMessage(HMK.Help, new List<string> { "To get an overview about the Hunt RPG, type \"/hunt about\"", "To see you available shortcuts commdands, type \"/hunt shortcuts\"", "To see you player profile, type \"/hunt profile\"", "To see you current xp, type \"/hunt xp\"", "To see how to change you profile preferences, type \"/hunt profilepreferences\"", "To see you current health, type \"/hunt health\"", "To see the skill list type \"/hunt skilllist\"", "To see info about a specific skill type \"/hunt skill <skillname>\"", "To spend your available stats points, type \"/hunt statset <stats> <points> \". Ex: /hunt statset agi 3", "To spend your available skill points, type \"/hunt skillset <skillname> <points> \". Ex: /hunt skillset lumberjack 1", }); messagesConfig.AddMessage(HMK.Shortcuts, new List<string> { "\"/hunt\" = \"/h\"", "\"/hunt profile\" = \"/h p\"", "\"/hunt profilepreferences\" = \"/h pp\"", "\"/hunt statset\" = \"/h sts\".", "You can set multiple stats at a time like this \"/h sts agi 30 str 45\".", "\"/hunt skillset\" = \"/h sks\"", "You can set multiple skillpoints at a time like this \"/h sks lumberjack 3 miner 2\".", "\"/hunt health\" = \"/h h\"", }); messagesConfig.AddMessage(HMK.ProfilePreferences, new List<string>() { "To see change the % changed need to show the xp message, type \"/hunt xp% <percentnumber>\"", "To toggle crafting message type \"/hunt craftmsg\"", "To toggle blink arrow skill type \"/hunt ba\"", "To toggle blink arrow skill auto toggle type \"/hunt aba\"", }); messagesConfig.AddMessage(HMK.About, HuntAbout()); messagesConfig.AddMessage(HMK.DataUpdated, RPGHelper.WrapInColor("Plugin was updated to new version!", OC.Yellow)); messagesConfig.AddMessage(HMK.DataUpdated, RPGHelper.WrapInColor("Your profile needed to be reset, but your level was saved. You just need to redistribute.")); messagesConfig.AddMessage(HMK.DataUpdated, RPGHelper.WrapInColor("Furnaces were not saved though, so build new ones for the blacksmith skill to be applied (If you have, or when you get it)!", OC.Red)); messagesConfig.AddMessage(HMK.InvalidCommand, "You ran the \"{0}\" command incorrectly. Type \"/hunt\" to get help"); messagesConfig.AddMessage(HMK.SkillInfo, "Type \"/hunt skill <skillname>\" to see the skill info"); messagesConfig.AddMessage(HMK.NotEnoughtPoints, RPGHelper.WrapInColor("You don't have enought points to set!")); messagesConfig.AddMessage(HMK.NotEnoughLevels, RPGHelper.WrapInColor("You dont have the minimum level to learn this skill!")); messagesConfig.AddMessage(HMK.NotEnoughStrength, RPGHelper.WrapInColor("You dont have enough strenght to learn this skill!")); messagesConfig.AddMessage(HMK.NotEnoughAgility, RPGHelper.WrapInColor("You dont have enough agility to learn this skill!")); messagesConfig.AddMessage(HMK.NotEnoughIntelligence, RPGHelper.WrapInColor("You dont have enough intelligence to learn this skill!")); messagesConfig.AddMessage(HMK.InvalidSkillName, RPGHelper.WrapInColor("There is no such skill! Type \"/hunt skilllist\" to see the available skills")); messagesConfig.AddMessage(HMK.ItemNotFound, RPGHelper.WrapInColor("Item {0} not found.")); messagesConfig.AddMessage(HMK.SkillNotLearned, RPGHelper.WrapInColor("You havent learned this skill yet.")); messagesConfig.AddMessage(HMK.AlreadyAtMaxLevel, RPGHelper.WrapInColor("You have mastered this skill already!")); return messagesConfig; }