I get the following error whenever I run this routine: "
Array dimensions exceeded supported range., MMOViperBot"
Code: Select all
// List Player buffs
IBuffs buffs = Bot.Player.Buffs;
string str = "Discovered Player Buffs:";
foreach (KeyValuePair<uint, IBuff> entry in buffs.Dictionary.ToList())
{
str = String.Format("{0}\r\n\t\t\t{1} ~ {2}",
str,
entry.Key,
entry.Value.Name);
}
Bot.Log.WriteLine(str+"\r\n");
Edited: this is what's causing the error:
Buffs buffs = Bot.Player.Buffs;