scripts/npcs/gachapon5.lua
--[[
Copyright (C) 2008-2016 Vana Development Team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
--]]
-- Gachapon - Dungeon : Sleepywood

dofile("scripts/utils/gachaponHelper.lua");

-- General rules:
-- Global item chance is not reduced
-- Gear for all classes from levels above 40 (incl 42 etc., but not 40 itself) and below or equal to 70
-- The formula used to derive weights was 60 / itemLevel

commonEquips = {};

warriorEquips = {
	{1002022, ["weight"] = 1.09}, {1002024, ["weight"] = 1.28},
	{1002028, ["weight"] = 1.20}, {1002029, ["weight"] = 1.00},
	{1002030, ["weight"] = 0.86}, {1002045, ["weight"] = 1.43},
	{1002046, ["weight"] = 1.43}, {1002084, ["weight"] = 1.00},
	{1002085, ["weight"] = 1.20}, {1002086, ["weight"] = 1.20},
	{1002091, ["weight"] = 1.28}, {1002094, ["weight"] = 0.86},
	{1002095, ["weight"] = 0.86}, {1002100, ["weight"] = 1.09},
	{1002101, ["weight"] = 1.09}, {1040087, ["weight"] = 1.20},
	{1040088, ["weight"] = 1.20}, {1040089, ["weight"] = 1.20},
	{1040090, ["weight"] = 1.00}, {1040091, ["weight"] = 1.00},
	{1040092, ["weight"] = 1.00}, {1040093, ["weight"] = 1.00},
	{1040102, ["weight"] = 0.86}, {1040103, ["weight"] = 0.86},
	{1040104, ["weight"] = 0.86}, {1041087, ["weight"] = 1.20},
	{1041088, ["weight"] = 1.20}, {1041089, ["weight"] = 1.20},
	{1041091, ["weight"] = 1.00}, {1041092, ["weight"] = 1.00},
	{1041093, ["weight"] = 1.00}, {1041097, ["weight"] = 0.86},
	{1041098, ["weight"] = 0.86}, {1041099, ["weight"] = 0.86},
	{1060076, ["weight"] = 1.20}, {1060077, ["weight"] = 1.20},
	{1060078, ["weight"] = 1.20}, {1060079, ["weight"] = 1.00},
	{1060080, ["weight"] = 1.00}, {1060081, ["weight"] = 1.00},
	{1060082, ["weight"] = 1.00}, {1060090, ["weight"] = 0.86},
	{1060091, ["weight"] = 0.86}, {1060092, ["weight"] = 0.86},
	{1061086, ["weight"] = 1.20}, {1061087, ["weight"] = 1.20},
	{1061088, ["weight"] = 1.20}, {1061090, ["weight"] = 1.00},
	{1061091, ["weight"] = 1.00}, {1061092, ["weight"] = 1.00},
	{1061096, ["weight"] = 0.86}, {1061097, ["weight"] = 0.86},
	{1061098, ["weight"] = 0.86}, {1072132, ["weight"] = 1.20},
	{1072133, ["weight"] = 1.20}, {1072134, ["weight"] = 1.20},
	{1072135, ["weight"] = 1.20}, {1072147, ["weight"] = 1.00},
	{1072148, ["weight"] = 1.00}, {1072149, ["weight"] = 1.00},
	{1072154, ["weight"] = 0.86}, {1072155, ["weight"] = 0.86},
	{1072156, ["weight"] = 0.86}, {1082009, ["weight"] = 1.20},
	{1082010, ["weight"] = 1.20}, {1082011, ["weight"] = 1.20},
	{1082059, ["weight"] = 1.00}, {1082060, ["weight"] = 1.00},
	{1082061, ["weight"] = 1.00}, {1082103, ["weight"] = 0.86},
	{1082104, ["weight"] = 0.86}, {1082105, ["weight"] = 0.86},
	{1082218, ["weight"] = 0.86}, {1092004, ["weight"] = 1.20},
	{1092009, ["weight"] = 1.00}, {1092010, ["weight"] = 1.00},
	{1092011, ["weight"] = 1.00}, {1092015, ["weight"] = 0.86},
	{1092016, ["weight"] = 0.86}, {1092017, ["weight"] = 0.86},
	{1302010, ["weight"] = 1.20}, {1302011, ["weight"] = 1.00},
	{1302012, ["weight"] = 0.86}, {1302015, ["weight"] = 1.33},
	{1302019, ["weight"] = 1.33}, {1302037, ["weight"] = 0.95},
	{1302068, ["weight"] = 1.33}, {1302079, ["weight"] = 0.86},
	{1312008, ["weight"] = 1.20}, {1312009, ["weight"] = 1.00},
	{1312010, ["weight"] = 0.86}, {1322017, ["weight"] = 1.20},
	{1322018, ["weight"] = 1.00}, {1322019, ["weight"] = 0.86},
	{1322059, ["weight"] = 0.86}, {1402003, ["weight"] = 1.20},
	{1402011, ["weight"] = 1.00}, {1402012, ["weight"] = 0.86},
	{1402017, ["weight"] = 0.92}, {1412003, ["weight"] = 1.20},
	{1412007, ["weight"] = 1.00}, {1412008, ["weight"] = 0.86},
	{1412032, ["weight"] = 0.86}, {1422005, ["weight"] = 1.20},
	{1422009, ["weight"] = 1.00}, {1422010, ["weight"] = 0.86},
	{1432004, ["weight"] = 1.20}, {1432006, ["weight"] = 1.00},
	{1432007, ["weight"] = 0.86}, {1432045, ["weight"] = 0.86},
	{1442005, ["weight"] = 1.20}, {1442008, ["weight"] = 0.86},
	{1442010, ["weight"] = 1.00}, {1442060, ["weight"] = 0.86},
};

magicianEquips = {
	{1002215, ["weight"] = 1.20}, {1002216, ["weight"] = 1.20},
	{1002217, ["weight"] = 1.20}, {1002218, ["weight"] = 1.20},
	{1002242, ["weight"] = 1.00}, {1002243, ["weight"] = 1.00},
	{1002244, ["weight"] = 1.00}, {1002245, ["weight"] = 1.00},
	{1002246, ["weight"] = 1.00}, {1002252, ["weight"] = 0.86},
	{1002253, ["weight"] = 0.86}, {1002254, ["weight"] = 0.86},
	{1050045, ["weight"] = 1.25}, {1050046, ["weight"] = 1.25},
	{1050047, ["weight"] = 1.25}, {1050048, ["weight"] = 1.25},
	{1050049, ["weight"] = 1.25}, {1050053, ["weight"] = 1.03},
	{1050054, ["weight"] = 1.03}, {1050055, ["weight"] = 1.03},
	{1050056, ["weight"] = 1.03}, {1050067, ["weight"] = 0.88},
	{1050068, ["weight"] = 0.88}, {1050069, ["weight"] = 0.88},
	{1050070, ["weight"] = 0.88}, {1051030, ["weight"] = 1.25},
	{1051031, ["weight"] = 1.25}, {1051032, ["weight"] = 1.25},
	{1051033, ["weight"] = 1.25}, {1051034, ["weight"] = 1.25},
	{1051044, ["weight"] = 1.03}, {1051045, ["weight"] = 1.03},
	{1051046, ["weight"] = 1.03}, {1051047, ["weight"] = 1.03},
	{1051052, ["weight"] = 0.88}, {1051053, ["weight"] = 0.88},
	{1051054, ["weight"] = 0.88}, {1051055, ["weight"] = 0.88},
	{1072136, ["weight"] = 1.00}, {1072137, ["weight"] = 1.00},
	{1072138, ["weight"] = 1.00}, {1072139, ["weight"] = 1.00},
	{1072140, ["weight"] = 1.20}, {1072141, ["weight"] = 1.20},
	{1072142, ["weight"] = 1.20}, {1072143, ["weight"] = 1.20},
	{1072157, ["weight"] = 0.86}, {1072158, ["weight"] = 0.86},
	{1072159, ["weight"] = 0.86}, {1072160, ["weight"] = 0.86},
	{1082080, ["weight"] = 1.20}, {1082081, ["weight"] = 1.20},
	{1082082, ["weight"] = 1.20}, {1082086, ["weight"] = 1.00},
	{1082087, ["weight"] = 1.00}, {1082088, ["weight"] = 1.00},
	{1082098, ["weight"] = 0.86}, {1082099, ["weight"] = 0.86},
	{1082100, ["weight"] = 0.86}, {1372007, ["weight"] = 1.25},
	{1372008, ["weight"] = 1.00}, {1372011, ["weight"] = 1.20},
	{1372014, ["weight"] = 1.03}, {1372015, ["weight"] = 0.88},
	{1372035, ["weight"] = 0.86}, {1372036, ["weight"] = 0.86},
	{1372037, ["weight"] = 0.86}, {1372038, ["weight"] = 0.86},
	{1382001, ["weight"] = 1.33}, {1382006, ["weight"] = 1.09},
	{1382007, ["weight"] = 0.92}, {1382011, ["weight"] = 1.18},
	{1382014, ["weight"] = 1.15}, {1382041, ["weight"] = 1.40},
	{1382053, ["weight"] = 0.86},
};

bowmanEquips = {
	{1002211, ["weight"] = 1.20}, {1002212, ["weight"] = 1.20},
	{1002213, ["weight"] = 1.20}, {1002214, ["weight"] = 1.20},
	{1002267, ["weight"] = 1.00}, {1002268, ["weight"] = 1.00},
	{1002269, ["weight"] = 1.00}, {1002270, ["weight"] = 1.00},
	{1002286, ["weight"] = 0.86}, {1002287, ["weight"] = 0.86},
	{1002288, ["weight"] = 0.86}, {1002289, ["weight"] = 0.86},
	{1002749, ["weight"] = 1.20}, {1050051, ["weight"] = 1.20},
	{1050052, ["weight"] = 1.20}, {1050058, ["weight"] = 1.00},
	{1050059, ["weight"] = 1.00}, {1050060, ["weight"] = 1.00},
	{1050061, ["weight"] = 0.86}, {1050062, ["weight"] = 0.86},
	{1050063, ["weight"] = 0.86}, {1050064, ["weight"] = 0.86},
	{1051037, ["weight"] = 1.20}, {1051038, ["weight"] = 1.20},
	{1051039, ["weight"] = 1.20}, {1051041, ["weight"] = 1.00},
	{1051042, ["weight"] = 1.00}, {1051043, ["weight"] = 1.00},
	{1051062, ["weight"] = 0.86}, {1051063, ["weight"] = 0.86},
	{1051064, ["weight"] = 0.86}, {1051065, ["weight"] = 0.86},
	{1072122, ["weight"] = 1.20}, {1072123, ["weight"] = 1.20},
	{1072124, ["weight"] = 1.20}, {1072125, ["weight"] = 1.20},
	{1072144, ["weight"] = 1.00}, {1072145, ["weight"] = 1.00},
	{1072146, ["weight"] = 1.00}, {1072164, ["weight"] = 0.86},
	{1072165, ["weight"] = 0.86}, {1072166, ["weight"] = 0.86},
	{1072167, ["weight"] = 0.86}, {1072345, ["weight"] = 1.20},
	{1082083, ["weight"] = 1.20}, {1082084, ["weight"] = 1.20},
	{1082085, ["weight"] = 1.20}, {1082089, ["weight"] = 1.00},
	{1082090, ["weight"] = 1.00}, {1082091, ["weight"] = 1.00},
	{1082106, ["weight"] = 0.86}, {1082107, ["weight"] = 0.86},
	{1082108, ["weight"] = 0.86}, {1452004, ["weight"] = 1.00},
	{1452008, ["weight"] = 1.20}, {1452009, ["weight"] = 0.86},
	{1452010, ["weight"] = 0.86}, {1452011, ["weight"] = 0.86},
	{1452018, ["weight"] = 0.92}, {1452023, ["weight"] = 1.11},
	{1452052, ["weight"] = 0.86}, {1462006, ["weight"] = 1.43},
	{1462007, ["weight"] = 1.20}, {1462008, ["weight"] = 1.00},
	{1462009, ["weight"] = 0.86}, {1462046, ["weight"] = 0.86},
};

thiefEquips = {
	{1002207, ["weight"] = 1.20}, {1002208, ["weight"] = 1.20},
	{1002209, ["weight"] = 1.20}, {1002210, ["weight"] = 1.20},
	{1002247, ["weight"] = 1.00}, {1002248, ["weight"] = 1.00},
	{1002249, ["weight"] = 1.00}, {1002281, ["weight"] = 0.86},
	{1002282, ["weight"] = 0.86}, {1002283, ["weight"] = 0.86},
	{1002284, ["weight"] = 0.86}, {1002285, ["weight"] = 0.86},
	{1002656, ["weight"] = 1.00}, {1002750, ["weight"] = 1.20},
	{1040094, ["weight"] = 1.20}, {1040095, ["weight"] = 1.20},
	{1040096, ["weight"] = 1.20}, {1040097, ["weight"] = 1.20},
	{1040098, ["weight"] = 1.00}, {1040099, ["weight"] = 1.00},
	{1040100, ["weight"] = 1.00}, {1040105, ["weight"] = 0.86},
	{1040106, ["weight"] = 0.86}, {1040107, ["weight"] = 0.86},
	{1041077, ["weight"] = 1.20}, {1041078, ["weight"] = 1.20},
	{1041079, ["weight"] = 1.20}, {1041080, ["weight"] = 1.20},
	{1041094, ["weight"] = 1.00}, {1041095, ["weight"] = 1.00},
	{1041096, ["weight"] = 1.00}, {1041100, ["weight"] = 0.86},
	{1041101, ["weight"] = 0.86}, {1041102, ["weight"] = 0.86},
	{1041103, ["weight"] = 0.86}, {1060083, ["weight"] = 1.20},
	{1060084, ["weight"] = 1.20}, {1060085, ["weight"] = 1.20},
	{1060086, ["weight"] = 1.20}, {1060087, ["weight"] = 1.00},
	{1060088, ["weight"] = 1.00}, {1060089, ["weight"] = 1.00},
	{1060093, ["weight"] = 0.86}, {1060094, ["weight"] = 0.86},
	{1060095, ["weight"] = 0.86}, {1061076, ["weight"] = 1.20},
	{1061077, ["weight"] = 1.20}, {1061078, ["weight"] = 1.20},
	{1061079, ["weight"] = 1.20}, {1061093, ["weight"] = 1.00},
	{1061094, ["weight"] = 1.00}, {1061095, ["weight"] = 1.00},
	{1061099, ["weight"] = 0.86}, {1061100, ["weight"] = 0.86},
	{1061101, ["weight"] = 0.86}, {1061102, ["weight"] = 0.86},
	{1072128, ["weight"] = 1.20}, {1072129, ["weight"] = 1.20},
	{1072130, ["weight"] = 1.20}, {1072131, ["weight"] = 1.20},
	{1072150, ["weight"] = 1.00}, {1072151, ["weight"] = 1.00},
	{1072152, ["weight"] = 1.00}, {1072161, ["weight"] = 0.86},
	{1072162, ["weight"] = 0.86}, {1072163, ["weight"] = 0.86},
	{1072346, ["weight"] = 1.20}, {1082065, ["weight"] = 1.20},
	{1082066, ["weight"] = 1.20}, {1082067, ["weight"] = 1.20},
	{1082092, ["weight"] = 1.00}, {1082093, ["weight"] = 1.00},
	{1082094, ["weight"] = 1.00}, {1082095, ["weight"] = 0.86},
	{1082096, ["weight"] = 0.86}, {1082097, ["weight"] = 0.86},
	{1332003, ["weight"] = 1.20}, {1332015, ["weight"] = 1.00},
	{1332018, ["weight"] = 0.86}, {1332024, ["weight"] = 1.09},
	{1332054, ["weight"] = 1.20}, {1332064, ["weight"] = 0.86},
	{1472018, ["weight"] = 1.20}, {1472019, ["weight"] = 1.20},
	{1472020, ["weight"] = 1.20}, {1472021, ["weight"] = 1.20},
	{1472022, ["weight"] = 1.00}, {1472023, ["weight"] = 1.00},
	{1472024, ["weight"] = 1.00}, {1472025, ["weight"] = 1.00},
	{1472026, ["weight"] = 0.86}, {1472027, ["weight"] = 0.86},
	{1472028, ["weight"] = 0.86}, {1472029, ["weight"] = 0.86},
	{1472054, ["weight"] = 1.09}, {1472062, ["weight"] = 0.86},
};

pirateEquips = {
	{1002631, ["weight"] = 1.20}, {1002634, ["weight"] = 1.00},
	{1002637, ["weight"] = 0.86}, {1052116, ["weight"] = 1.20},
	{1052119, ["weight"] = 1.00}, {1052122, ["weight"] = 0.86},
	{1072303, ["weight"] = 1.20}, {1072306, ["weight"] = 1.00},
	{1072309, ["weight"] = 0.86}, {1082198, ["weight"] = 1.20},
	{1082201, ["weight"] = 1.00}, {1082204, ["weight"] = 0.86},
	{1482007, ["weight"] = 1.20}, {1482008, ["weight"] = 1.00},
	{1482009, ["weight"] = 0.86}, {1492007, ["weight"] = 1.20},
	{1492008, ["weight"] = 1.00}, {1492009, ["weight"] = 0.86},
};

items = merge(commonEquips, warriorEquips, magicianEquips, bowmanEquips, thiefEquips, pirateEquips);

gachapon({
	["items"] = items,
});