Code:
const UPDATE_DELAY = 30000;
function StartDailyOrder()
{
var gumpCheck = false;
var mobsGump;
var questText;
while(!gumpCheck)
{
Orion.Say(".mobs");
Orion.WaitForGump();
mobsGump = Orion.GetLastGump();
questText = mobsGump.Text(1).split('<br/>');
mobsGump.Close();
if (questText == 'Сегодня я убил:')
{
gumpCheck = true;
}
}
Shared.ClearVars();
Shared.AddVar('mobsGumpID', mobsGump.ID());
MainDailyOrderGump();
}
function MainDailyOrderGump()
{
Shared.ClearArrays();
ParseActiveQuestText();
Shared.AddArray('activeOrderGumps', []);
var gump = Orion.CreateCustomGump(16);
gump.SetNoClose(true);
gump.Clear();
var xSize = 230;
var ySize = 270;
var width = 500;
gump.SetCallback('OrdersGumpCallBack');
gump.AddPage(1);
gump.AddResizepic(50, 0, '0x2436', 155, 50);
gump.AddText(xSize/2 - width/2 + 5, 15, '0', '<p align=center><basefont color=white font=11>Daily Orders</basefont></p>', width);
gump.AddButton(serial = "MAXIMAZE", xSize/2 -10, -23, '0x82D', '0x82D', '0x82D', '0', '0', 2);
gump.AddButton(serial = "3", 165, 10, '0x2A4E', '0x2A3A', '0x2A62', '0', '1');
gump.AddPage(2);
gump.AddResizepic(0, 0, '0x2436', xSize, ySize); //номера хороших задников 0x13BE 0x2422 0x2436 0xA3C //0x140 - темный фон
gump.AddGlobalColor(1, '#ffffffff');
gump.AddButton(serial = "MINIMIZE", xSize/2 -10, -23, '0x82D', '0x82D', '0x82D', '0', '0', 1);
gump.AddText(xSize/2 - width/2 + 5, 15, '0', '<p align=center><basefont color=white font=11>Daily Orders</basefont></p>', width);
gump.AddButton(serial = 0, xSize - 27,12, '0x5686', '0x5687', '0x5688', '0'); //Закрыть гамп
gump.AddResizepic(x = 165, y = 44, graphic = '0x24EA', width = 52, height = 30, serial = 1); //Выбрать заказ //стандартная кнопка 0x24EA
gump.AddText(x = 170, 49, '0', "Select");
gump.AddComboBox(serial = 3, x = 15, y = 50, '0x0BB8', 0, '0x0BB8', width = 100, -3, 8);
gump.AddComboBoxText(OrderNames[0], '', 1);
for (i = 1; i <OrderNames.length; i++)
gump.AddComboBoxText(OrderNames[i]);
gump.AddComboBox(serial = 4, x = 120, y = 50, '0x0BB8', 0, '0x0BB8', width = 37, -3, 10);
gump.AddComboBoxText('1', '', 1);
for (i = 2; i <11; i++)
gump.AddComboBoxText(i);
gump.AddHtmlGump(serial = 5, x = 15, y = 85, width = 200, height = 140, graphic = '0x0BB8', 1, 0); //0x0BB8 - дефолтный хтмл 0x1432 - классный свиток
gump.Select('htmlgump', serial = 5);
var x = 5; var y = 2;
gump.AddText(x, y, '0', "Text");
gump.Select('gump');
gump.AddResizepic(x = 15, y = 227, graphic = '0x24EA', width = 100, height = 30, serial = 2); //Add gump
gump.AddText(28, 232, '0', "Add Gump");
gump.AddResizepic(x = 120, y = 227, graphic = '0x24EA', width = 95, height = 30, serial = 3); //Add gump
gump.AddText(134, 232, '0', "Completed");
gump.SetPage(2);
gump.Update();
SelectOrder(0,0);
Orion.Exec("UpdateLoop", true);
}
function OrdersGumpCallBack()
{
var code = CustomGumpResponse.ReturnCode();
var gump = Orion.CreateCustomGump(16);
switch (code)
{
case 0:
CloseMainGump();
gump.Close();
break;
case 1:
var comboBoxes = CustomGumpResponse.ComboBoxes();
SelectOrder(comboBoxes[0].Value(), comboBoxes[1].Value());
break;
case 2:
var selectedOrder = Shared.GetArray('selectedOrder');
CreateOrderGump(selectedOrder);
break;
case 3:
GetReadyOrderList();
break;
case 4:
break;
}
}
function CloseMainGump()
{
Orion.Terminate("UpdateLoop");
var activeOrderGumps = Shared.GetArray('activeOrderGumps');
for(i=0; i < activeOrderGumps.length; i++)
{
var gump = Orion.CreateCustomGump(activeOrderGumps[i]);
gump.Close();
}
}
function SelectOrder(x, y)
{
var selectedOrder = [x,y];
Shared.AddArray('selectedOrder', selectedOrder);
UpdateHTMLText(TextByOrder(OrderByNumber(x,y)));
}
function OrderByNumber(x, y)
{
var name = OrderNames[x];
var lvl = y + 1;
return FindOrder(name,lvl);
}
function FindOrder(name, lvl)
{
for (i=0; i<Orders.length; i++)
{
if (Orders[i].name === name && Orders[i].level === lvl)
return Orders[i];
}
return null;
}
function TextByOrder(order)
{
var text = "";
allMonstersKillCount = ParseActiveQuestText();
if (order)
{
for(i = 0; i < order.elements.length; i++)
{
var name = order.elements[i].name;
var count = order.elements[i].count;
var actualCount;
if(order.elements[i].type == "mob")
actualCount = allMonstersKillCount[name];
else
{
actualCount = 0;
Orion.ResetIgnoreList();
var allItems = Orion.FindTypeEx('any','any', 'backpack' , '', 'finddistance', '', true);
for (j=0; j < allItems.length; j++)
{
if(allItems[j].Name().indexOf(name) != -1)
{
actualCount = allItems[j].Count();
continue;
}
}
}
if(!actualCount)
actualCount = 0;
var color = "<basefont>";
if (actualCount >= count)
color = "<basefont color = #44cc32>";
text += name + " " + color + actualCount + "/" + count + "</basefont>" + "<br/>" ;
}
return text;
}
else return "No order with this number";
}
function UpdateHTMLText(newText)
{
var gump = Orion.CreateCustomGump(16);
gump.AddHtmlGump(serial = 5, x = 15, y = 85, width = 200, height = 140, graphic = '0x0BB8', 0, 0);
gump.Select('htmlgump', serial = 5);
gump.Clear();
gump.Select('gump');
gump.Select('htmlgump', serial = 5);
var step = 18;
var x = 7;
var y = 5;
gump.AddText(x, y, '0', newText);
gump.Update();
}
function ParseActiveQuestText()
{
Orion.Say(".mobs");
var gump;
var gumpID = Shared.GetVar('mobsGumpID');
while(!gump)
{
gump = Orion.GetGump('any', gumpID);
}
var questText = gump.Text(0).split('<br/>').slice(0,-2);
gump.Close();
var msg = Orion.LastJournalMessage();
var allMonstersKillCount = [];
for (i=0; i < questText.length; i++)
{
var tempSplit = questText[i].slice(2).split(': ');
allMonstersKillCount[tempSplit[0]] = tempSplit[1];
}
return allMonstersKillCount;
}
function CreateOrderGump(orderNumber)
{
var activeOrderGumps = Shared.GetArray('activeOrderGumps');
var id = parseInt('1' + String(orderNumber[0]) + String(orderNumber[1]));
var order = OrderByNumber(orderNumber[0],orderNumber[1]);
if(order)
{
if(activeOrderGumps.indexOf(id) == -1)
{
activeOrderGumps.push(id);
Shared.AddArray('activeOrderGumps', activeOrderGumps);
}
var gump = Orion.CreateCustomGump(id);
gump.SetCallback('CloseOrderGump');
gump.AddGlobalColor(1, '#46ffffff');
var ySize = order.elements.length * 18 + 25;
gump.AddHtmlGump(serial = 2, x = 0, y = 0, width = 250, height = ySize, graphic = '0x140', 1, 0);
gump.Select('htmlgump', serial = 2);
gump.Clear();
gump.Select('gump');
gump.Select('htmlgump', serial = 2);
gump.AddGlobalColor(1, '#ffffffff');
var text = "<basefont color=yellow>Order: " + order.name + " " + order.level + "</basefont><br/><basefont color=white>";
text += TextByOrder(order);
var x = 5;
var y = 2;
gump.AddText(x, y, '0', text, 0, 222);
gump.Select('gump');
gump.Update();
}
}
function CloseOrderGump()
{
var id = CustomGumpResponse.Serial();
var activeOrderGumps = Shared.GetArray('activeOrderGumps');
var index = activeOrderGumps.indexOf(id);
activeOrderGumps.splice(index, 1);
Shared.AddArray('activeOrderGumps', activeOrderGumps);
}
function UpdateLoop()
{
while(true)
{
var activeOrderGumps = Shared.GetArray('activeOrderGumps');
for(k=0; k < activeOrderGumps.length; k++)
{
var orderNumber = [];
var string = String(activeOrderGumps[k]);
orderNumber.push(parseInt(string.charAt(1)));
orderNumber.push(parseInt(string.slice(2)));
CreateOrderGump(orderNumber);
}
var selectedOrder = Shared.GetArray('selectedOrder');
UpdateHTMLText(TextByOrder(OrderByNumber(selectedOrder[0],selectedOrder[1])));
Orion.Wait(UPDATE_DELAY);
}
}
function GetReadyOrderList()
{
var allMonsterKillCount = ParseActiveQuestText();
var readyList = "Order is done: \n";
var allCheck = new Boolean(false);
for(i=0; i < Orders.length; i++)
{
allCheck = true;
for(j=0; j < Orders[i].elements.length; j++)
{
var name = Orders[i].elements[j].name;
var count = Orders[i].elements[j].count;
var actualCount;
if(Orders[i].elements[j].type == "mob")
actualCount = allMonsterKillCount[name];
else
{
actualCount = 0;
var allItems = Orion.FindTypeEx('any','any', 'backpack' , '', 'finddistance', '', true);
for (j=0; j<allItems.length; j++)
{
if(allItems[j].Name().indexOf(name) != -1)
{
actualCount = allItems[j].Count();
continue;
}
}
}
if(!actualCount)
actualCount=0;
if(actualCount < count)
{
allCheck = false;
continue;
}
}
if(allCheck)
{
readyList += "- " + Orders[i].name + " slayer " + Orders[i].level + " level \n";
}
}
if(readyList == "Order is done: \n")
readyList = "No completed orders";
Orion.Print("1355", readyList);
}
//*********************************************************************************************************
//*********************************************************************************************************
//*********************************************************************************************************
function MakeStruct(keys)
{
if (!keys) return null;
const k = keys.split(', ');
const count = k.length;
function Constructor()
{
for (i = 0; i < count; i++)
this[k[i]] = arguments[i];
}
return Constructor;
}
const Order = new MakeStruct("name, level, elements");
const OrderElement = new MakeStruct("type, name, count");
const OrderNames = ['Animal','Daemon','Dragon','Elemental','Giant','Humanoid','Insect','Undead'];
const Orders = [
new Order("Animal", 1, [new OrderElement("mob", "Rabbit", 3), new OrderElement("mob", "Hind", 3), new OrderElement("mob", "Squirrel", 3), new OrderElement("item", "Squirrel Fur", 3)]),
new Order("Animal", 2, [new OrderElement("mob", "Vampire Bat", 15), new OrderElement("mob", "Hart", 2), new OrderElement("mob", "Hart Leader", 1), new OrderElement("item", "Bat Wing", 10)]),
new Order("Animal", 3, [new OrderElement("mob", "Giant Toad", 12), new OrderElement("mob", "Alligator", 3), new OrderElement("mob", "Giant Serpent", 1), new OrderElement("item", "Standard Hide", 20)]),
new Order("Animal", 4, [new OrderElement("mob", "Brown Bear", 5), new OrderElement("mob", "Black Bear", 5), new OrderElement("item", "Brown Bear Fur", 5)]),
new Order("Animal", 5, [new OrderElement("mob", "Timber Wolf", 15), new OrderElement("mob", "Gray Wolf", 15), new OrderElement("item", "Timber Wolf Fur", 10)]),
new Order("Animal", 6, [new OrderElement("mob", "Sea Serpent", 2), new OrderElement("mob", "Ferret", 2), new OrderElement("item", "Ferret Fur", 2)]),
new Order("Animal", 7, [new OrderElement("mob", "Puma", 5), new OrderElement("mob", "Grizzly Bear", 5), new OrderElement("item", "Puma Fur", 5)]),
new Order("Animal", 8, [new OrderElement("mob", "Swamp Toad", 20), new OrderElement("mob", "Viru Serpent", 1), new OrderElement("item", "Gray Wolf Fur", 10)]),
new Order("Animal", 9, [new OrderElement("mob", "Black Panther", 5), new OrderElement("mob", "Dragon Serpent", 10), new OrderElement("item", "Panther Fur", 5)]),
new Order("Animal", 10, [new OrderElement("mob", "Raptor", 10), new OrderElement("mob", "Giant Crab", 10), new OrderElement("item", "Black Bear Fur", 5)]),
new Order("Daemon", 1, [new OrderElement("mob", "Imp", 20), new OrderElement("item", "Scroll Enchant Jewellery +2", 1)]),
new Order("Daemon", 2, [new OrderElement("mob", "Gazer Larva", 20), new OrderElement("item", "Scroll Enchant Armor +2", 2)]),
new Order("Daemon", 3, [new OrderElement("mob", "Gargoyle", 20), new OrderElement("mob", "Stone Gargoyle", 10), new OrderElement("item", "Gargoyle Hide", 10)]),
new Order("Daemon", 4, [new OrderElement("mob", "Cave Devil", 25), new OrderElement("item", "Scroll Enchant Weapon +2", 1)]),
new Order("Daemon", 5, [new OrderElement("mob", "Cave Devil Patriarch", 3), new OrderElement("item", "Scroll Enchant Armor +3", 1)]),
new Order("Daemon", 6, [new OrderElement("mob", "Daemon", 15), new OrderElement("mob", "Gazer", 10), new OrderElement("item", "Daemon Hide", 20)]),
new Order("Daemon", 7, [new OrderElement("mob", "Succubus", 25), new OrderElement("item", "Daemon Bone", 20)]),
new Order("Daemon", 8, [new OrderElement("mob", "Daemon Knight", 20), new OrderElement("mob", "Elder Gazer", 10), new OrderElement("item", "Daemon Hide", 20)]),
new Order("Daemon", 9, [new OrderElement("mob", "Dark Daemon", 5), new OrderElement("mob", "Evil Eye", 2), new OrderElement("item", "Mysterious Log", 10)]),
new Order("Daemon", 10, [new OrderElement("mob", "Lord of Forests", 1), new OrderElement("item", "Elven Log", 10)]),
new Order("Dragon", 1, [new OrderElement("mob", "Gray Drake", 5), new OrderElement("mob", "Green Drake", 5), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 2, [new OrderElement("mob", "Red Drake", 5), new OrderElement("mob", "Gold Drake", 5), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 3, [new OrderElement("mob", "Black Drake", 5), new OrderElement("mob", "Fire Drake", 5), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 4, [new OrderElement("mob", "Gray Drake", 7), new OrderElement("mob", "Fire Drake", 7), new OrderElement("mob", "Gray Dragon", 1), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 5, [new OrderElement("mob", "Green Drake", 7), new OrderElement("mob", "Black Drake", 7), new OrderElement("mob", "Green Dragon", 2), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 6, [new OrderElement("mob", "Red Drake", 7), new OrderElement("mob", "Gold Drake", 7), new OrderElement("mob", "Red Dragon", 3), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 7, [new OrderElement("mob", "Gold Dragon", 2), new OrderElement("mob", "Black Dragon", 2), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 8, [new OrderElement("mob", "Gray Dragon", 1), new OrderElement("mob", "Green Dragon", 1), new OrderElement("mob", "Red Dragon", 1), new OrderElement("mob", "Gold Dragon", 1), new OrderElement("mob", "Black Dragon", 1), new OrderElement("mob", "Fire Dragon", 1), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 9, [new OrderElement("mob", "Ice Dragon", 1), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Dragon", 10, [new OrderElement("mob", "Fire Dragon", 2), new OrderElement("mob", "Fire Drake", 10), new OrderElement("item", "Dragon's Blood", 20)]),
new Order("Elemental", 1, [new OrderElement("mob", "Sand Wortex", 10), new OrderElement("item", "Amber", 2)]),
new Order("Elemental", 2, [new OrderElement("mob", "Earth Elemental", 20), new OrderElement("item", "Bronze Ore", 50)]),
new Order("Elemental", 3, [new OrderElement("mob", "Ice Elemental", 12), new OrderElement("mob", "Water Elemental", 1), new OrderElement("item", "Tourmaline", 1), new OrderElement("item", "Marble", 1)]),
new Order("Elemental", 4, [new OrderElement("mob", "Stone Golem", 25), new OrderElement("item", "Golem's Heart", 10)]),
new Order("Elemental", 5, [new OrderElement("mob", "Elder Fire Elemental", 10), new OrderElement("item", "Brimstone", 10)]),
new Order("Elemental", 6, [new OrderElement("mob", "Elder Ore Elemental", 15), new OrderElement("item", "Lava Ingot", 10)]),
new Order("Elemental", 7, [new OrderElement("mob", "Elder Ice Elemental", 10), new OrderElement("item", "Clay", 10), new OrderElement("item", "Sandstone", 10), new OrderElement("item", "Marble", 10)]),
new Order("Elemental", 8, [new OrderElement("mob", "Granite Golem", 10), new OrderElement("item", "Granite Stone", 50)]),
new Order("Elemental", 9, [new OrderElement("mob", "Lightning Elemental", 10), new OrderElement("item", "Summon Air Elemental Scroll", 50)]),
new Order("Elemental", 10, [new OrderElement("mob", "Jinn", 10), new OrderElement("item", "Mithril Ingot", 5)]),
new Order("Giant", 1, [new OrderElement("mob", "Troll", 5), new OrderElement("mob", "Ettin", 5), new OrderElement("item", "Raw Ribs", 100)]),
new Order("Giant", 2, [new OrderElement("mob", "Ogre", 5), new OrderElement("mob", "Ettin Lord", 5), new OrderElement("item", "Ogre Hide", 15)]),
new Order("Giant", 3, [new OrderElement("mob", "Snow Troll", 15), new OrderElement("mob", "Snow Troll Warrior", 4), new OrderElement("item", "Show Troll Hide", 30)]),
new Order("Giant", 4, [new OrderElement("mob", "Wasteland Ogre", 25), new OrderElement("item", "Ogre Hide", 50)]),
new Order("Giant", 5, [new OrderElement("mob", "Young Cyclop", 10), new OrderElement("item", "Cyclopean scalp", 10)]),
new Order("Giant", 6, [new OrderElement("mob", "Snow Ettin", 30), new OrderElement("mob", "Snow Ettin Lord", 5), new OrderElement("item", "Ettin Hide", 50)]),
new Order("Giant", 7, [new OrderElement("mob", "North Cyclops", 10), new OrderElement("mob", "Groth", 1), new OrderElement("item", "North Cyclopean Scalp", 10)]),
new Order("Giant", 8, [new OrderElement("mob", "Cyclops", 10), new OrderElement("mob", "Frozen Troll", 5), new OrderElement("item", "Cyclopean scalp", 20)]),
new Order("Giant", 9, [new OrderElement("mob", "Cyclops Warrior", 10), new OrderElement("mob", "Snow Impaler", 5), new OrderElement("item", "Cyclopean scalp", 30)]),
new Order("Giant", 10, [new OrderElement("mob", "Frozen Troll", 10), new OrderElement("mob", "Snow Impaler", 10), new OrderElement("item", "Ice Log", 20), new OrderElement("item", "Mithril Ingot", 5)]),
new Order("Humanoid", 1, [new OrderElement("mob", "Green Goblin", 10), new OrderElement("mob", "Ratman", 10), new OrderElement("item", "Orc Herb", 20)]),
new Order("Humanoid", 2, [new OrderElement("mob", "Green Goblin Guard", 10), new OrderElement("mob", "Ratman Warrior", 10), new OrderElement("mob", "Orc Warrior", 7), new OrderElement("mob", "Orc Commander", 1), new OrderElement("item", "Orc Refresh Potion", 20)]),
new Order("Humanoid", 3, [new OrderElement("mob", "Lizardman", 15), new OrderElement("mob", "Lizardman Soldier", 5), new OrderElement("mob", "Lizardman Mage", 5), new OrderElement("item", "Eye of Newt", 10)]),
new Order("Humanoid", 4, [new OrderElement("mob", "Troglodyte", 25), new OrderElement("item", "Scroll Enchant Jewellery +2", 2)]),
new Order("Humanoid", 5, [new OrderElement("mob", "Green Goblin Warrior Elite", 20), new OrderElement("mob", "South Ratman Warrior", 10), new OrderElement("item", "Fertile Dirt", 10)]),
new Order("Humanoid", 6, [new OrderElement("mob", "Lizardman Captain", 15), new OrderElement("mob", "Lizardman Mage Elder", 5), new OrderElement("mob", "Lizardman General", 2), new OrderElement("item", "Eye of Newt", 30)]),
new Order("Humanoid", 7, [new OrderElement("mob", "Green Goblin Warlord", 10), new OrderElement("item", "Orc Rage", 20)]),
new Order("Humanoid", 8, [new OrderElement("mob", "Barbarian Warrior [Rider]", 1), new OrderElement("mob", "Barbarian Archer [Rider]", 1), new OrderElement("mob", "Barbarian Shaman [Rider]", 1), new OrderElement("item", "Barbarian Restoration", 5)]),
new Order("Humanoid", 9, [new OrderElement("mob", "Evil Mage", 12), new OrderElement("mob", "Evil Mage Elder", 3), new OrderElement("item", "Magic Crystal", 1)]),
new Order("Humanoid", 10, [new OrderElement("mob", "Desert Warrior", 20), new OrderElement("item", "Ancient Refresh Potion", 50)]),
new Order("Insect", 1, [new OrderElement("mob", "Giant Spider", 20), new OrderElement("item", "Spider's Nox Crystal", 10)]),
new Order("Insect", 2, [new OrderElement("mob", "Dark Spider", 15), new OrderElement("item", "Spider's Nox Crystal", 20)]),
new Order("Insect", 3, [new OrderElement("mob", "Giant Scorpion", 30), new OrderElement("item", "Scorpion's Nox Crystal", 10)]),
new Order("Insect", 4, [new OrderElement("mob", "Deathwatch Beetle", 20), new OrderElement("item", "Standard Leather", 20)]),
new Order("Insect", 5, [new OrderElement("mob", "Terathan Drone", 20), new OrderElement("item", "Terathan Leather", 20)]),
new Order("Insect", 6, [new OrderElement("mob", "Dungeon Spider", 30), new OrderElement("item", "Spiders Silk", 2000)]),
new Order("Insect", 7, [new OrderElement("mob", "Dread Spider", 10), new OrderElement("item", "Spider's Nox Crystal", 50)]),
new Order("Insect", 8, [new OrderElement("mob", "Terathan Avenger", 10), new OrderElement("mob", "Terathan Matriarch", 10), new OrderElement("item", "Terathan Leather", 20)]),
new Order("Insect", 9, [new OrderElement("mob", "Na-Gri Scorpion", 10), new OrderElement("item", "Na-Gri Scales", 20)]),
new Order("Insect", 10, [new OrderElement("mob", "Black Widow", 12), new OrderElement("mob", "Giant Black Widow", 3), new OrderElement("item", "Elemental Ingot", 100)]),
new Order("Undead", 1, [new OrderElement("mob", "Ghoul", 10), new OrderElement("mob", "Spectroide", 3), new OrderElement("mob", "Lich", 3), new OrderElement("item", "Old Cloth", 3)]),
new Order("Undead", 2, [new OrderElement("mob", "Skeleton Knight", 10), new OrderElement("mob", "Skeleton Mage", 5), new OrderElement("item", "Standard Bones", 10)]),
new Order("Undead", 3, [new OrderElement("mob", "High Ghoul", 25), new OrderElement("mob", "Spectre", 3), new OrderElement("item", "Skull", 5)]),
new Order("Undead", 4, [new OrderElement("mob", "Bone Guard", 10), new OrderElement("mob", "Wraith", 8), new OrderElement("item", "Standard Bones", 30)]),
new Order("Undead", 5, [new OrderElement("mob", "Rotting Corpse", 12), new OrderElement("mob", "Blood Elemental", 2), new OrderElement("mob", "Lich Lord", 5), new OrderElement("item", "Old Сloth", 5)]),
new Order("Undead", 6, [new OrderElement("mob", "Knight of Death", 2), new OrderElement("mob", "Necromancer", 3), new OrderElement("mob", "Knight of Death [Rider]", 1), new OrderElement("mob", "Necromancer [Rider]", 1), new OrderElement("item", "Skull", 7)]),
new Order("Undead", 7, [new OrderElement("mob", "Inquisitor Swordsman Ghost", 7), new OrderElement("mob", "Inquisitor Macefighter Ghost", 7), new OrderElement("item", "Dread Bone", 5)]),
new Order("Undead", 8, [new OrderElement("mob", "Adept of Necromancy", 15), new OrderElement("mob", "Priest of Necromancy", 5), new OrderElement("item", "Dread Skull", 2)]),
new Order("Undead", 9, [new OrderElement("mob", "Undead Lord", 8), new OrderElement("mob", "Dread Skeleton", 12), new OrderElement("item", "Undead Lord's Skull", 2)]),
new Order("Undead", 10, [new OrderElement("mob", "Shadow", 3), new OrderElement("item", "Undead Wizard's Skull", 1)])];