Merge branch 'master' into feat/postgresql-database

# Conflicts:
#	database/sql/1-db_database.sql
#	docker-compose.yml
#	pom.xml
#	scripts/npc/mapleTV.js
#	src/main/java/net/server/Server.java
This commit is contained in:
P0nk
2025-07-22 21:21:05 +02:00
77 changed files with 32643 additions and 48536 deletions

View File

@@ -25,7 +25,6 @@ package client;
import client.autoban.AutobanManager;
import client.creator.CharacterFactoryRecipe;
import client.inventory.Equip;
import client.inventory.Equip.StatUpgrade;
import client.inventory.Inventory;
import client.inventory.InventoryProof;
import client.inventory.InventoryType;
@@ -264,7 +263,7 @@ public class Character extends AbstractCharacterObject {
private final Pet[] pets = new Pet[3];
private PlayerShop playerShop = null;
private Shop shop = null;
private SkinColor skinColor = SkinColor.NORMAL;
private SkinColor skinColor = SkinColor.LIGHT;
private Storage storage = null;
private Trade trade = null;
private MonsterBook monsterbook;
@@ -8756,245 +8755,6 @@ public class Character extends AbstractCharacterObject {
}
}
public int sellAllItemsFromName(byte invTypeId, String name) {
//player decides from which inventory items should be sold.
InventoryType type = InventoryType.getByType(invTypeId);
Inventory inv = getInventory(type);
inv.lockInventory();
try {
Item it = inv.findByName(name);
if (it == null) {
return (-1);
}
ItemInformationProvider ii = ItemInformationProvider.getInstance();
return (sellAllItemsFromPosition(ii, type, it.getPosition()));
} finally {
inv.unlockInventory();
}
}
public int sellAllItemsFromPosition(ItemInformationProvider ii, InventoryType type, short pos) {
int mesoGain = 0;
Inventory inv = getInventory(type);
inv.lockInventory();
try {
for (short i = pos; i <= inv.getSlotLimit(); i++) {
if (inv.getItem(i) == null) {
continue;
}
mesoGain += standaloneSell(getClient(), ii, type, i, inv.getItem(i).getQuantity());
}
} finally {
inv.unlockInventory();
}
return (mesoGain);
}
private int standaloneSell(Client c, ItemInformationProvider ii, InventoryType type, short slot, short quantity) {
if (quantity == 0xFFFF || quantity == 0) {
quantity = 1;
}
Inventory inv = getInventory(type);
inv.lockInventory();
try {
Item item = inv.getItem(slot);
if (item == null) { //Basic check
return (0);
}
int itemid = item.getItemId();
if (ItemConstants.isRechargeable(itemid)) {
quantity = item.getQuantity();
} else if (ItemId.isWeddingToken(itemid) || ItemId.isWeddingRing(itemid)) {
return (0);
}
if (quantity < 0) {
return (0);
}
short iQuant = item.getQuantity();
if (iQuant == 0xFFFF) {
iQuant = 1;
}
if (quantity <= iQuant && iQuant > 0) {
InventoryManipulator.removeFromSlot(c, type, (byte) slot, quantity, false);
int recvMesos = ii.getPrice(itemid, quantity);
if (recvMesos > 0) {
gainMeso(recvMesos, false);
return (recvMesos);
}
}
return (0);
} finally {
inv.unlockInventory();
}
}
private static boolean hasMergeFlag(Item item) {
return (item.getFlag() & ItemConstants.MERGE_UNTRADEABLE) == ItemConstants.MERGE_UNTRADEABLE;
}
private static void setMergeFlag(Item item) {
short flag = item.getFlag();
flag |= ItemConstants.MERGE_UNTRADEABLE;
flag |= ItemConstants.UNTRADEABLE;
item.setFlag(flag);
}
private List<Equip> getUpgradeableEquipped() {
List<Equip> list = new LinkedList<>();
ItemInformationProvider ii = ItemInformationProvider.getInstance();
for (Item item : getInventory(InventoryType.EQUIPPED)) {
if (ii.isUpgradeable(item.getItemId())) {
list.add((Equip) item);
}
}
return list;
}
private static List<Equip> getEquipsWithStat(List<Pair<Equip, Map<StatUpgrade, Short>>> equipped, StatUpgrade stat) {
List<Equip> equippedWithStat = new LinkedList<>();
for (Pair<Equip, Map<StatUpgrade, Short>> eq : equipped) {
if (eq.getRight().containsKey(stat)) {
equippedWithStat.add(eq.getLeft());
}
}
return equippedWithStat;
}
public boolean mergeAllItemsFromName(String name) {
InventoryType type = InventoryType.EQUIP;
Inventory inv = getInventory(type);
inv.lockInventory();
try {
Item it = inv.findByName(name);
if (it == null) {
return false;
}
Map<StatUpgrade, Float> statups = new LinkedHashMap<>();
mergeAllItemsFromPosition(statups, it.getPosition());
List<Pair<Equip, Map<StatUpgrade, Short>>> upgradeableEquipped = new LinkedList<>();
Map<Equip, List<Pair<StatUpgrade, Integer>>> equipUpgrades = new LinkedHashMap<>();
for (Equip eq : getUpgradeableEquipped()) {
upgradeableEquipped.add(new Pair<>(eq, eq.getStats()));
equipUpgrades.put(eq, new LinkedList<Pair<StatUpgrade, Integer>>());
}
/*
for (Entry<StatUpgrade, Float> es : statups.entrySet()) {
System.out.println(es);
}
*/
for (Entry<StatUpgrade, Float> e : statups.entrySet()) {
Double ev = Math.sqrt(e.getValue());
Set<Equip> extraEquipped = new LinkedHashSet<>(equipUpgrades.keySet());
List<Equip> statEquipped = getEquipsWithStat(upgradeableEquipped, e.getKey());
float extraRate = (float) (0.2 * Math.random());
if (!statEquipped.isEmpty()) {
float statRate = 1.0f - extraRate;
int statup = (int) Math.ceil((ev * statRate) / statEquipped.size());
for (Equip statEq : statEquipped) {
equipUpgrades.get(statEq).add(new Pair<>(e.getKey(), statup));
extraEquipped.remove(statEq);
}
}
if (!extraEquipped.isEmpty()) {
int statup = (int) Math.round((ev * extraRate) / extraEquipped.size());
if (statup > 0) {
for (Equip extraEq : extraEquipped) {
equipUpgrades.get(extraEq).add(new Pair<>(e.getKey(), statup));
}
}
}
}
dropMessage(6, "EQUIPMENT MERGE operation results:");
for (Entry<Equip, List<Pair<StatUpgrade, Integer>>> eqpUpg : equipUpgrades.entrySet()) {
List<Pair<StatUpgrade, Integer>> eqpStatups = eqpUpg.getValue();
if (!eqpStatups.isEmpty()) {
Equip eqp = eqpUpg.getKey();
setMergeFlag(eqp);
String showStr = " '" + ItemInformationProvider.getInstance().getName(eqp.getItemId()) + "': ";
String upgdStr = eqp.gainStats(eqpStatups).getLeft();
this.forceUpdateItem(eqp);
showStr += upgdStr;
dropMessage(6, showStr);
}
}
return true;
} finally {
inv.unlockInventory();
}
}
public void mergeAllItemsFromPosition(Map<StatUpgrade, Float> statups, short pos) {
Inventory inv = getInventory(InventoryType.EQUIP);
inv.lockInventory();
try {
for (short i = pos; i <= inv.getSlotLimit(); i++) {
standaloneMerge(statups, getClient(), InventoryType.EQUIP, i, inv.getItem(i));
}
} finally {
inv.unlockInventory();
}
}
private void standaloneMerge(Map<StatUpgrade, Float> statups, Client c, InventoryType type, short slot, Item item) {
short quantity;
ItemInformationProvider ii = ItemInformationProvider.getInstance();
if (item == null || (quantity = item.getQuantity()) < 1 || ii.isCash(item.getItemId()) || !ii.isUpgradeable(item.getItemId()) || hasMergeFlag(item)) {
return;
}
Equip e = (Equip) item;
for (Entry<StatUpgrade, Short> s : e.getStats().entrySet()) {
Float newVal = statups.get(s.getKey());
float incVal = s.getValue().floatValue();
switch (s.getKey()) {
case incPAD:
case incMAD:
case incPDD:
case incMDD:
incVal = (float) Math.log(incVal);
break;
}
if (newVal != null) {
newVal += incVal;
} else {
newVal = incVal;
}
statups.put(s.getKey(), newVal);
}
InventoryManipulator.removeFromSlot(c, type, (byte) slot, quantity, false);
}
public void setShop(Shop shop) {
this.shop = shop;
}

View File

@@ -22,14 +22,15 @@
package client;
public enum SkinColor {
NORMAL(0),
DARK(1),
BLACK(2),
LIGHT(0),
TANNED(1),
DARK(2),
PALE(3),
BLUE(4),
GREEN(5),
WHITE(9),
PINK(10);
PINK(10),
BROWN(11);
final int id;

View File

@@ -137,10 +137,6 @@ public class ServerConfig {
public boolean USE_MAKER_PERMISSIVE_ATKUP;
public boolean USE_MAKER_FEE_HEURISTICS;
//Custom Configuration
public boolean USE_ENABLE_CUSTOM_NPC_SCRIPT;
public boolean USE_STARTER_MERGE;
//Commands Configuration
public boolean BLOCK_GENERATE_CASH_ITEM;
public boolean USE_WHOLE_SERVER_RANKING;

View File

@@ -0,0 +1,44 @@
package database;
import liquibase.Liquibase;
import liquibase.UpdateSummaryOutputEnum;
import liquibase.database.jvm.JdbcConnection;
import liquibase.exception.LiquibaseException;
import liquibase.resource.ClassLoaderResourceAccessor;
import tools.DatabaseConnection;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Apply changes to the database so that the server and database work in harmony.
*
* @author Ponk
*/
public class DatabaseMigrations {
private static final String ROOT_CHANGELOG_FILE = "db/changelog-root.xml";
public static void runDatabaseMigrations() {
suppressLiquibaseLogs();
runLiquibaseUpdate();
}
private static void suppressLiquibaseLogs() {
Logger liquibaseLogger = Logger.getLogger("liquibase");
liquibaseLogger.setLevel(Level.WARNING);
}
private static void runLiquibaseUpdate() {
try (Connection connection = DatabaseConnection.getConnection()) {
liquibase.database.DatabaseConnection databaseConnection = new JdbcConnection(connection);
Liquibase liquibase = new Liquibase(ROOT_CHANGELOG_FILE, new ClassLoaderResourceAccessor(),
databaseConnection);
liquibase.setShowSummaryOutput(UpdateSummaryOutputEnum.LOG);
liquibase.update();
} catch (SQLException | LiquibaseException e) {
throw new RuntimeException("Failed to run database migrations", e);
}
}
}

View File

@@ -57,6 +57,7 @@ import database.maker.MakerInfoProvider;
import database.maker.MakerRepository;
import database.migration.FlywayRunner;
import database.monsterbook.MonsterCardRepository;
import database.DatabaseMigrations;
import database.note.NoteDao;
import database.shop.ShopDao;
import net.ChannelDependencies;
@@ -713,6 +714,8 @@ public class Server {
throw new IllegalStateException("Failed to initiate a connection to the database");
}
DatabaseMigrations.runDatabaseMigrations();
channelDependencies = registerChannelDependencies(pgDbConnection);
final ExecutorService initExecutor = Executors.newFixedThreadPool(10);

View File

@@ -0,0 +1,122 @@
package tools.mapletools;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* This tool takes the large drop-data.sql file as input, and removes all duplicate drops.
* A drop is considered to be a duplicate if it has the same dropperid/mobid & itemid as another drop.
* The first drop encountered in the input is kept, and any subsequent duplicates are removed.
* <p>
* Note about duplicate drops: duplicate drops are supposed to exist.
* For example, Zakum should be able to drop multiple Zakum helmets. This is vanilla MapleStory behavior.
* <p>
* This tool is mostly useful during the migration from the old scripts to the new scripts in Liquibase,
* since the old scripts relied on a combination of unique database constraint on mobid+itemid
* and the INSERT IGNORE feature of MySQL to prevent duplicates. The INSERT IGNORE would attempt to insert the drop,
* and if there was a duplicate it would fail and thereby be skipped.
* In the new scripts, the unique constraint has been removed (because duplicate drops should be allowed),
* so all the (previously ignored) inserts would succeed, and we end up with a bunch of duplicates.
*
* @author Ponk
*/
public class RemoveDuplicateDrops {
// Precondition: copy from src/main/resources/db/(...)drop-data.sql to tools/input/drop-data.sql
private static final Path DROP_DATA_INPUT_FILE = ToolConstants.getInputFile("drop-data.sql");
private static final Path DROP_DATA_OUTPUT_FILE = ToolConstants.getOutputFile("drop-data_no-duplicates.sql");
private static final Path REMOVED_LINES_OUTPUT_FILE = ToolConstants.getOutputFile("drop-data_removed-lines.sql");
private static final Pattern INSERT_VALUE_PATTERN = Pattern.compile(".*\\((?<mob>\\d+), (?<item>\\d+), \\d+, \\d+, \\d+, \\d+\\).*");
private record DropIdentifier(int mobId, int itemId) {
}
private record ProcessingResult(List<String> retainedLines, List<String> removedLines) {
}
public static void main(String[] args) {
Instant start = Instant.now();
System.out.printf("Reading %s%n", DROP_DATA_INPUT_FILE);
List<String> lines = readDropDataLines();
System.out.printf("Read %d lines%n", lines.size());
System.out.println("Removing duplicate drops...");
ProcessingResult processingResult = removeDuplicateDrops(lines);
System.out.printf("Removed %d lines%n", processingResult.removedLines.size());
System.out.println("Writing output to " + DROP_DATA_OUTPUT_FILE);
writeDropDataOutput(processingResult.retainedLines);
System.out.println("Writing removed lines to " + REMOVED_LINES_OUTPUT_FILE);
writeRemovedLinesOutput(processingResult.removedLines);
Duration totalDuration = Duration.between(start, Instant.now());
System.out.printf("Done! Total elapsed time: %d%n", totalDuration.toMillis());
}
private static List<String> readDropDataLines() {
try {
return Files.readAllLines(DROP_DATA_INPUT_FILE);
} catch (Exception e) {
throw new RuntimeException("Failed to read input file", e);
}
}
private static ProcessingResult removeDuplicateDrops(List<String> lines) {
Set<DropIdentifier> encounteredDrops = new HashSet<>();
List<String> retainedLines = new ArrayList<>();
List<String> removedLines = new ArrayList<>();
for (String line : lines) {
Optional<DropIdentifier> optDropIdentifier = parseDropIdentifier(line);
if (optDropIdentifier.isEmpty()) {
retainedLines.add(line);
continue;
}
DropIdentifier dropIdentifier = optDropIdentifier.get();
if (encounteredDrops.contains(dropIdentifier)) {
removedLines.add(line);
} else {
encounteredDrops.add(dropIdentifier);
retainedLines.add(line);
}
}
return new ProcessingResult(retainedLines, removedLines);
}
private static Optional<DropIdentifier> parseDropIdentifier(String line) {
Matcher matcher = INSERT_VALUE_PATTERN.matcher(line);
if (!matcher.matches()) {
return Optional.empty();
}
int mobId = Integer.parseInt(matcher.group("mob"));
int itemId = Integer.parseInt(matcher.group("item"));
return Optional.of(new DropIdentifier(mobId, itemId));
}
private static void writeDropDataOutput(List<String> retainedLines) {
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(DROP_DATA_OUTPUT_FILE))) {
retainedLines.forEach(pw::println);
} catch (Exception e) {
throw new RuntimeException("Failed to write drop data output file", e);
}
}
private static void writeRemovedLinesOutput(List<String> removedLines) {
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(REMOVED_LINES_OUTPUT_FILE))) {
removedLines.forEach(pw::println);
} catch (Exception e) {
throw new RuntimeException("Failed to write removed lines output file", e);
}
}
}

View File

@@ -1,7 +1,6 @@
package tools.mapletools;
import server.life.MonsterStats;
import tools.Pair;
import java.io.IOException;
import java.io.PrintWriter;
@@ -10,119 +9,135 @@ import java.nio.file.Path;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author RonanLana
* <p>
* This application traces missing meso drop data on the underlying DB (that must be
* This application normalizes skillbook drop chances on the underlying DB (that must be
* defined on the DatabaseConnection file of this project) and generates a
* SQL file that proposes missing drop entries for the drop_data table.
* <p>
* The meso range is calculated accordingly with the target mob stats, such as level
* and if it's a boss or not, similarly as how it has been done for the actual meso
* drops.
* The drop chances are calculated based on the mob level. Bosses get a higher drop chance.
* Legend skillbooks gain a boost in drop chance (for some reason).
*
* @author RonanLana
* @author Ponk
*/
public class SkillbookChanceFetcher {
private static final Path OUTPUT_FILE = ToolConstants.getOutputFile("skillbook_drop_data.sql");
private static final Map<Pair<Integer, Integer>, Integer> skillbookChances = new HashMap<>();
private static PrintWriter printWriter;
private static Map<Integer, MonsterStats> mobStats;
private record DropIdentifier(int mobId, int itemId) {}
private static List<Map.Entry<Pair<Integer, Integer>, Integer>> sortedSkillbookChances() {
List<Map.Entry<Pair<Integer, Integer>, Integer>> skillbookChancesList = new ArrayList<>(skillbookChances.entrySet());
public static void main(String[] args) {
Instant start = Instant.now();
skillbookChancesList.sort((o1, o2) -> {
if (o1.getKey().getLeft().equals(o2.getKey().getLeft())) {
return o1.getKey().getRight() < o2.getKey().getRight() ? -1 : (o1.getKey().getRight().equals(o2.getKey().getRight()) ? 0 : 1);
System.out.println("Fetching all skillbook drops from the database...");
List<DropIdentifier> skillbookDrops = fetchAllSkillbookDrops();
System.out.printf("Found %d skillbook drops%n", skillbookDrops.size());
// load mob stats from WZ
Map<Integer, MonsterStats> mobStats = MonsterStatFetcher.getAllMonsterStats();
System.out.println("Calculating drop chances...");
Map<DropIdentifier, Integer> skillbookChances = calculateSkillbookDropChances(skillbookDrops, mobStats);
System.out.println("Writing output file...");
generateSkillbookChanceUpdateFile(skillbookChances);
Duration totalDuration = Duration.between(start, Instant.now());
System.out.printf("Done! Total elapsed time: %d ms", totalDuration.toMillis());
}
private static List<DropIdentifier> fetchAllSkillbookDrops() {
String sql = """
SELECT dropperid, itemid
FROM drop_data
WHERE itemid >= 2280000
AND itemid < 2300000""";
try (Connection con = SimpleDatabaseConnection.getConnection();
PreparedStatement ps = con.prepareStatement(sql);
ResultSet rs = ps.executeQuery()) {
List<DropIdentifier> skillbookDrops = new ArrayList<>();
while (rs.next()) {
int mobId = rs.getInt("dropperid");
int itemId = rs.getInt("itemid");
skillbookDrops.add(new DropIdentifier(mobId, itemId));
}
return skillbookDrops;
} catch (Exception e) {
throw new RuntimeException("Failed to fetch all skillbook drops", e);
}
}
private static Map<DropIdentifier, Integer> calculateSkillbookDropChances(List<DropIdentifier> skillbookDrops,
Map<Integer, MonsterStats> mobStats) {
Map<DropIdentifier, Integer> skillbookChances = new HashMap<>();
for (DropIdentifier drop : skillbookDrops) {
int expectedChance = 250;
if (mobStats.get(drop.mobId) != null) {
int level = mobStats.get(drop.mobId).getLevel();
expectedChance *= Math.max(2, (level - 80) / 15);
if (mobStats.get(drop.mobId).isBoss()) {
expectedChance *= 20;
}
} else {
expectedChance = 1287;
}
return (o1.getKey().getLeft() < o2.getKey().getLeft()) ? -1 : 1;
});
if (isLegendSkillUpgradeBook(drop.itemId)) { // drop rate of Legends seems to be higher than explorers, in retrospect from values in DB
expectedChance *= 3;
}
return skillbookChancesList;
skillbookChances.put(drop, expectedChance);
}
return skillbookChances;
}
private static boolean isLegendSkillUpgradeBook(int itemid) {
int itemidBranch = itemid / 10000;
return (itemidBranch == 228 && itemid >= 2280013 || itemidBranch == 229 && itemid >= 2290126); // drop rate of Legends are higher
return (itemidBranch == 228 && itemid >= 2280013 || itemidBranch == 229 && itemid >= 2290126); // drop rate of Legends are higher
}
private static void fetchSkillbookDropChances() {
Connection con = SimpleDatabaseConnection.getConnection();
try {
PreparedStatement ps = con.prepareStatement("SELECT dropperid, itemid FROM drop_data WHERE itemid >= 2280000 AND itemid < 2300000");
ResultSet rs = ps.executeQuery();
while (rs.next()) {
int mobid = rs.getInt("dropperid");
int itemid = rs.getInt("itemid");
int expectedChance = 250;
if (mobStats.get(mobid) != null) {
int level = mobStats.get(mobid).getLevel();
expectedChance *= Math.max(2, (level - 80) / 15);
if (mobStats.get(mobid).isBoss()) {
expectedChance *= 20;
} else {
expectedChance *= 1;
}
} else {
expectedChance = 1287;
}
if (isLegendSkillUpgradeBook(itemid)) { // drop rate of Legends seems to be higher than explorers, in retrospect from values in DB
expectedChance *= 3;
}
skillbookChances.put(new Pair<>(mobid, itemid), expectedChance);
}
rs.close();
ps.close();
con.close();
} catch (Exception e) {
e.printStackTrace();
}
}
private static void printSkillbookChanceUpdateSqlHeader() {
printWriter.println(" # SQL File autogenerated from the MapleSkillbookChanceFetcher feature by Ronan Lana.");
printWriter.println(" # Generated data takes into account mob stats such as level and boss for the chance rates.");
printWriter.println();
printWriter.println(" REPLACE INTO drop_data (`dropperid`, `itemid`, `minimum_quantity`, `maximum_quantity`, `questid`, `chance`) VALUES");
}
private static void generateSkillbookChanceUpdateFile() {
private static void generateSkillbookChanceUpdateFile(Map<DropIdentifier, Integer> skillbookChances) {
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(OUTPUT_FILE))) {
printWriter = pw;
printSkillbookChanceUpdateSqlHeader(pw);
printSkillbookChanceUpdateSqlHeader();
List<Map.Entry<Pair<Integer, Integer>, Integer>> skillbookChancesList = sortedSkillbookChances();
for (Map.Entry<Pair<Integer, Integer>, Integer> e : skillbookChancesList) {
printWriter.println("(" + e.getKey().getLeft() + ", " + e.getKey().getRight() + ", 1, 1, 0, "
+ e.getValue() + "),");
List<Map.Entry<DropIdentifier, Integer>> skillbookChancesList = sortedSkillbookChances(skillbookChances);
for (Map.Entry<DropIdentifier, Integer> e : skillbookChancesList) {
pw.println("(%d, %d, 1, 1, 0, %d),".formatted(e.getKey().mobId, e.getKey().itemId, e.getValue()));
}
} catch (IOException ioe) {
ioe.printStackTrace();
} catch (IOException e) {
throw new RuntimeException("Failed to write output file", e);
}
}
public static void main(String[] args) {
// load mob stats from WZ
mobStats = MonsterStatFetcher.getAllMonsterStats();
private static void printSkillbookChanceUpdateSqlHeader(PrintWriter pw) {
pw.println(" # SQL File autogenerated from the SkillbookChanceFetcher feature by Ronan Lana.");
pw.println(" # Generated data takes into account mob stats such as level and boss for the chance rates.");
pw.println();
fetchSkillbookDropChances();
generateSkillbookChanceUpdateFile();
pw.println(" REPLACE INTO drop_data (`dropperid`, `itemid`, `minimum_quantity`, `maximum_quantity`, `questid`, `chance`) VALUES");
}
private static List<Map.Entry<DropIdentifier, Integer>> sortedSkillbookChances(
Map<DropIdentifier, Integer> skillbookChances) {
List<Map.Entry<DropIdentifier, Integer>> skillbookChancesList = new ArrayList<>(skillbookChances.entrySet());
skillbookChancesList.sort(mobIdAscThenItemIdAscComparator());
return skillbookChancesList;
}
private static Comparator<Map.Entry<DropIdentifier, Integer>> mobIdAscThenItemIdAscComparator() {
return Comparator.comparing((Map.Entry<DropIdentifier, Integer> entry) -> entry.getKey().mobId)
.thenComparing(entry -> entry.getKey().itemId);
}
}

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet id="101" author="Ponk">
<sqlFile path="db/data/101-shops-data.sql"/>
</changeSet>
<changeSet id="102" author="Ponk">
<sqlFile path="db/data/102-shopitems-data.sql"/>
</changeSet>
<changeSet id="111" author="Ponk">
<sqlFile path="db/data/111-makercreate-data.sql"/>
</changeSet>
<changeSet id="112" author="Ponk">
<sqlFile path="db/data/112-makerrecipe-data.sql"/>
</changeSet>
<changeSet id="113" author="Ponk">
<sqlFile path="db/data/113-makerreward-data.sql"/>
</changeSet>
<changeSet id="114" author="Ponk">
<sqlFile path="db/data/114-makerreagent-data.sql"/>
</changeSet>
<changeSet id="121" author="Ponk">
<sqlFile path="db/data/121-monstercard-data.sql"/>
</changeSet>
<changeSet id="131" author="Ponk">
<sqlFile path="db/data/131-reactordrops-data.sql"/>
</changeSet>
<changeSet id="141" author="Ponk">
<sqlFile path="db/data/141-specialcashitems-data.sql"/>
</changeSet>
<changeSet id="142" author="Ponk">
<sqlFile path="db/data/142-nxcoupons-data.sql"/>
</changeSet>
<changeSet id="151" author="Ponk">
<sqlFile path="db/data/151-global-drop-data.sql"/>
</changeSet>
<changeSet id="152" author="Ponk">
<sqlFile path="db/data/152-drop-data.sql"/>
</changeSet>
<changeSet id="161" author="Ponk">
<sqlFile path="db/data/161-admin-data.sql"/>
</changeSet>
</databaseChangeLog>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<include file="changelog-tables.xml" relativeToChangelogFile="true"/>
<include file="changelog-data.xml" relativeToChangelogFile="true"/>
<!-- If you have any additional changesets you would like to run at the end, create an "extensions" directory and put them in there. -->
<!-- All changesets will run in alphanumeric order based on their filename. Read Liquibase documentation on "includeAll" for more info. -->
<includeAll path="extensions" relativeToChangelogFile="true" errorIfMissingOrEmpty="false"/>
</databaseChangeLog>

View File

@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet id="1" author="Ponk">
<sqlFile path="db/tables/001-account.sql"/>
</changeSet>
<changeSet id="2" author="Ponk">
<sqlFile path="db/tables/002-character.sql"/>
</changeSet>
<changeSet id="3" author="Ponk">
<sqlFile path="db/tables/003-inventory.sql"/>
</changeSet>
<changeSet id="4" author="Ponk">
<sqlFile path="db/tables/004-skill.sql"/>
</changeSet>
<changeSet id="5" author="Ponk">
<sqlFile path="db/tables/005-pet.sql"/>
</changeSet>
<changeSet id="6" author="Ponk">
<sqlFile path="db/tables/006-quest.sql"/>
</changeSet>
<changeSet id="7" author="Ponk">
<sqlFile path="db/tables/007-guild.sql"/>
</changeSet>
<changeSet id="8" author="Ponk">
<sqlFile path="db/tables/008-keymap.sql"/>
</changeSet>
<changeSet id="9" author="Ponk">
<sqlFile path="db/tables/009-drop.sql"/>
</changeSet>
<changeSet id="10" author="Ponk">
<sqlFile path="db/tables/010-storage.sql"/>
</changeSet>
<changeSet id="11" author="Ponk">
<sqlFile path="db/tables/011-shop.sql"/>
</changeSet>
<changeSet id="12" author="Ponk">
<sqlFile path="db/tables/012-character-state.sql"/>
</changeSet>
<changeSet id="13" author="Ponk">
<sqlFile path="db/tables/013-cashshop.sql"/>
</changeSet>
<changeSet id="14" author="Ponk">
<sqlFile path="db/tables/014-gift.sql"/>
</changeSet>
<changeSet id="15" author="Ponk">
<sqlFile path="db/tables/015-marriage.sql"/>
</changeSet>
<changeSet id="16" author="Ponk">
<sqlFile path="db/tables/016-monsterbook.sql"/>
</changeSet>
<changeSet id="17" author="Ponk">
<sqlFile path="db/tables/017-family.sql"/>
</changeSet>
<changeSet id="18" author="Ponk">
<sqlFile path="db/tables/018-transfer.sql"/>
</changeSet>
<changeSet id="19" author="Ponk">
<sqlFile path="db/tables/019-mts.sql"/>
</changeSet>
<changeSet id="20" author="Ponk">
<sqlFile path="db/tables/020-maker.sql"/>
</changeSet>
<changeSet id="21" author="Ponk">
<sqlFile path="db/tables/021-field-object.sql"/>
</changeSet>
<changeSet id="22" author="Ponk">
<sqlFile path="db/tables/022-ban.sql"/>
</changeSet>
<changeSet id="23" author="Ponk">
<sqlFile path="db/tables/023-bosslog.sql"/>
</changeSet>
<changeSet id="24" author="Ponk">
<sqlFile path="db/tables/024-duey.sql"/>
</changeSet>
</databaseChangeLog>

View File

@@ -0,0 +1,111 @@
INSERT INTO shops (shopid, npcid)
VALUES (11000, 11000),
(11100, 11100),
(21000, 21000),
(1001000, 1001000),
(1001001, 1001001),
(1001100, 1001100),
(1011000, 1011000),
(1011001, 1011001),
(1011100, 1011100),
(1012004, 1012004),
(1021000, 1021000),
(1021001, 1021001),
(1021100, 1021100),
(1031000, 1031000),
(1031001, 1031001),
(1031100, 1031100),
(1032103, 1032103),
(1051000, 1051000),
(1051001, 1051001),
(1051002, 1051002),
(1052104, 1052104),
(1061001, 1061001),
(1061002, 1061002),
(1081000, 1081000),
(1091000, 1091000),
(1091001, 1091001),
(1091002, 1091002),
(1093000, 1093000),
(1100001, 1100001),
(1100002, 1100002),
(2010004, 2010004),
(2012003, 2012003),
(2012004, 2012004),
(2012005, 2012005),
(2020001, 2020001),
(2022000, 2022000),
(2022001, 2022001),
(2022002, 2022002),
(2030009, 2030009),
(2040049, 2040049),
(2040051, 2040051),
(2041002, 2041002),
(2041003, 2041003),
(2041006, 2041006),
(2041014, 2041014),
(2041016, 2041016),
(2050000, 2050000),
(2050003, 2050003),
(2051000, 2051000),
(2060003, 2060003),
(2060004, 2060004),
(2060007, 2060007),
(2070001, 2070001),
(2070002, 2070002),
(2070003, 2070003),
(2080001, 2080001),
(2080002, 2080002),
(2080003, 2080003),
(2080004, 2080004),
(2090001, 2090001),
(2090002, 2090002),
(2090003, 2090003),
(2090006, 2090006),
(2093000, 2093000),
(2093001, 2093001),
(2093002, 2093002),
(2100002, 2100002),
(2100003, 2100003),
(2100004, 2100004),
(2110001, 2110001),
(2130000, 2130000),
(9110003, 9110003),
(9110004, 9110004),
(9110005, 9110005),
(9110006, 9110006),
(9110007, 9110007),
(9120000, 9120000),
(9120002, 9120002),
(9120004, 9120004),
(9120019, 9120019),
(9201020, 9201020),
(9201058, 9201058),
(9201059, 9201059),
(9201060, 9201060),
(9201099, 9201099),
(9270019, 9270019),
(9270020, 9270020),
(9270021, 9270021),
(9270022, 9270022),
(9270027, 9270027),
(9999992, 9001002),
(9999993, 9001002),
(9999994, 9001002),
(9999995, 9001002),
(9999996, 9001002),
(9999997, 9001002),
(9999998, 9001002),
(9999999, 9001002),
(1337, 11000),
(9000069, 9000069),
(1338, 9090000),
(9270055, 9270055),
(9270056, 9270056),
(9270057, 9270057),
(9270065, 9270065),
(57, 2002001),
(1052116, 1052116),
(1301000, 1301000),
(1200001, 1200001),
(1200002, 1200002);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,837 @@
# generated with the SkillMakerFetcher tool
INSERT INTO makercreatedata (id, itemid, req_level, req_maker_level, req_meso, req_item, req_equip, catalyst,
quantity, tuc)
VALUES (0, 4250000, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250100, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250200, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250300, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250400, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250500, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250600, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250700, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250800, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4250900, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4251000, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4251100, 45, 1, 110000, 0, 0, 0, 1, 0),
(0, 4251300, 75, 2, 165000, 0, 0, 0, 1, 0),
(0, 4251400, 75, 2, 165000, 0, 0, 0, 1, 0),
(0, 4250001, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250101, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250201, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250301, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250401, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250501, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250601, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250701, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250801, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4250901, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4251001, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4251101, 45, 1, 330000, 0, 0, 0, 1, 0),
(0, 4251301, 75, 2, 495000, 0, 0, 0, 1, 0),
(0, 4251401, 75, 2, 495000, 0, 0, 0, 1, 0),
(0, 4250002, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250102, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250202, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250302, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250402, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250502, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250602, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250702, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250802, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4250902, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4251002, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4251102, 45, 2, 550000, 0, 0, 0, 1, 0),
(0, 4251302, 75, 3, 825000, 0, 0, 0, 1, 0),
(0, 4251402, 75, 3, 825000, 0, 0, 0, 1, 0),
(0, 4001174, 45, 1, 0, 4031966, 0, 0, 1, 0),
(0, 4001175, 50, 1, 0, 4031967, 0, 0, 1, 0),
(0, 4001176, 55, 1, 0, 4031968, 0, 0, 10, 0),
(0, 4001177, 60, 1, 0, 4031969, 0, 0, 100, 0),
(0, 4001178, 65, 1, 0, 4031970, 0, 0, 5, 0),
(0, 4001179, 70, 1, 0, 4031971, 0, 0, 7, 0),
(0, 4001180, 75, 2, 0, 4031972, 0, 0, 1, 0),
(0, 4001181, 80, 2, 0, 4031973, 0, 0, 1, 0),
(0, 4001182, 85, 2, 0, 4031974, 0, 0, 6, 0),
(0, 4001183, 90, 2, 0, 4031975, 0, 0, 30, 0),
(0, 4001184, 95, 2, 0, 4031976, 0, 0, 2, 0),
(0, 4001185, 100, 2, 0, 4031977, 0, 0, 1, 0),
(0, 4031980, 105, 2, 0, 4031979, 0, 0, 1, 0),
(0, 4001186, 105, 3, 0, 4031978, 0, 0, 1, 0),
(0, 4032334, 150, 1, 0, 0, 0, 0, 1, 0),
(0, 4032312, 70, 1, 0, 0, 0, 0, 1, 0),
(0, 2041058, 50, 1, 55000, 0, 1122013, 0, 1, 0),
(0, 2040727, 50, 1, 55000, 0, 1122013, 0, 1, 0),
(0, 4260007, 105, 3, 2200000, 4001126, 0, 0, 5, 0),
(0, 4260008, 105, 3, 5500000, 4001126, 0, 0, 10, 0),
(1, 1002028, 45, 1, 55000, 0, 0, 4130018, 1, 1),
(1, 1002085, 45, 1, 50000, 0, 0, 4130018, 1, 1),
(1, 1002086, 45, 1, 41000, 0, 0, 4130018, 1, 1),
(1, 1002022, 50, 1, 60000, 0, 0, 4130018, 1, 1),
(1, 1002100, 50, 1, 60000, 0, 0, 4130018, 1, 1),
(1, 1002101, 50, 1, 60000, 0, 0, 4130018, 1, 1),
(1, 1002029, 55, 1, 82000, 0, 0, 4130018, 1, 1),
(1, 1002084, 55, 1, 82000, 0, 0, 4130018, 1, 1),
(1, 1002030, 65, 1, 93000, 0, 0, 4130018, 1, 1),
(1, 1002094, 65, 1, 93000, 0, 0, 4130018, 1, 1),
(1, 1002095, 65, 1, 93000, 0, 0, 4130018, 1, 1),
(1, 1002338, 75, 2, 146000, 0, 0, 4130018, 1, 2),
(1, 1002339, 75, 2, 146000, 0, 0, 4130018, 1, 2),
(1, 1002340, 75, 2, 146000, 0, 0, 4130018, 1, 2),
(1, 1002528, 85, 2, 161000, 0, 0, 4130018, 1, 2),
(1, 1002529, 85, 2, 161000, 0, 0, 4130018, 1, 2),
(1, 1002530, 85, 2, 161000, 0, 0, 4130018, 1, 2),
(1, 1002531, 85, 2, 161000, 0, 0, 4130018, 1, 2),
(1, 1002532, 85, 2, 161000, 0, 0, 4130018, 1, 2),
(1, 1002377, 95, 2, 184000, 0, 0, 4130018, 1, 2),
(1, 1002378, 95, 2, 184000, 0, 0, 4130018, 1, 2),
(1, 1002379, 95, 2, 184000, 0, 0, 4130018, 1, 2),
(1, 1002551, 105, 3, 308000, 0, 0, 4130018, 1, 3),
(1, 1002790, 115, 3, 352000, 0, 0, 4130018, 1, 3),
(1, 1002776, 115, 3, 352000, 0, 0, 4130018, 1, 3),
(1, 1040087, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(1, 1040088, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(1, 1040089, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(1, 1041087, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(1, 1041088, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(1, 1041089, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(1, 1040090, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1040091, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1040092, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1040093, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1041091, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1041092, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1041093, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(1, 1040102, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(1, 1040103, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(1, 1040104, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(1, 1041097, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(1, 1041098, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(1, 1041099, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(1, 1040111, 85, 2, 123000, 0, 0, 4130019, 1, 2),
(1, 1040112, 85, 2, 123000, 0, 0, 4130019, 1, 2),
(1, 1040113, 85, 2, 123000, 0, 0, 4130019, 1, 2),
(1, 1041119, 85, 2, 146000, 0, 0, 4130019, 1, 2),
(1, 1041120, 85, 2, 146000, 0, 0, 4130019, 1, 2),
(1, 1041121, 85, 2, 146000, 0, 0, 4130019, 1, 2),
(1, 1040120, 95, 2, 153000, 0, 0, 4130019, 1, 2),
(1, 1040121, 95, 2, 153000, 0, 0, 4130019, 1, 2),
(1, 1040122, 95, 2, 153000, 0, 0, 4130019, 1, 2),
(1, 1041122, 95, 2, 153000, 0, 0, 4130019, 1, 2),
(1, 1041123, 95, 2, 153000, 0, 0, 4130019, 1, 2),
(1, 1041124, 95, 2, 153000, 0, 0, 4130019, 1, 2),
(1, 1060076, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(1, 1060077, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(1, 1060078, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(1, 1061086, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(1, 1061087, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(1, 1061088, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(1, 1060079, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1060080, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1060081, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1060082, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1061090, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1061091, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1061092, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(1, 1060090, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(1, 1060091, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(1, 1060092, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(1, 1061096, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(1, 1061097, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(1, 1061098, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(1, 1060100, 85, 2, 107000, 0, 0, 4130020, 1, 2),
(1, 1060101, 85, 2, 107000, 0, 0, 4130020, 1, 2),
(1, 1060102, 85, 2, 107000, 0, 0, 4130020, 1, 2),
(1, 1061118, 85, 2, 130000, 0, 0, 4130020, 1, 2),
(1, 1061119, 85, 2, 130000, 0, 0, 4130020, 1, 2),
(1, 1061120, 85, 2, 130000, 0, 0, 4130020, 1, 2),
(1, 1060109, 95, 2, 138000, 0, 0, 4130020, 1, 2),
(1, 1060110, 95, 2, 138000, 0, 0, 4130020, 1, 2),
(1, 1060111, 95, 2, 138000, 0, 0, 4130020, 1, 2),
(1, 1061121, 95, 2, 138000, 0, 0, 4130020, 1, 2),
(1, 1061122, 95, 2, 138000, 0, 0, 4130020, 1, 2),
(1, 1061123, 95, 2, 138000, 0, 0, 4130020, 1, 2),
(1, 1050080, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1050081, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1050082, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1050083, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1051077, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1051078, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1051079, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1051080, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(1, 1052075, 105, 3, 352000, 0, 0, 4130021, 1, 3),
(1, 1052160, 115, 3, 418000, 0, 0, 4130021, 1, 3),
(1, 1052155, 115, 3, 418000, 0, 0, 4130021, 1, 3),
(1, 1072132, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(1, 1072133, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(1, 1072134, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(1, 1072135, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(1, 1072147, 55, 1, 39000, 0, 0, 4130001, 1, 1),
(1, 1072148, 55, 1, 39000, 0, 0, 4130001, 1, 1),
(1, 1072149, 55, 1, 39000, 0, 0, 4130001, 1, 1),
(1, 1072154, 65, 1, 47000, 0, 0, 4130001, 1, 1),
(1, 1072155, 65, 1, 47000, 0, 0, 4130001, 1, 1),
(1, 1072156, 65, 1, 47000, 0, 0, 4130001, 1, 1),
(1, 1072210, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(1, 1072211, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(1, 1072212, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(1, 1072196, 85, 2, 115000, 0, 0, 4130001, 1, 2),
(1, 1072197, 85, 2, 115000, 0, 0, 4130001, 1, 2),
(1, 1072198, 85, 2, 115000, 0, 0, 4130001, 1, 2),
(1, 1072220, 95, 2, 138000, 0, 0, 4130001, 1, 2),
(1, 1072221, 95, 2, 138000, 0, 0, 4130001, 1, 2),
(1, 1072222, 95, 2, 138000, 0, 0, 4130001, 1, 2),
(1, 1072273, 105, 3, 231000, 0, 0, 4130001, 1, 3),
(1, 1072361, 115, 3, 264000, 0, 0, 4130001, 1, 3),
(1, 1072355, 115, 3, 264000, 0, 0, 4130001, 1, 3),
(1, 1082009, 45, 1, 50000, 0, 0, 4130000, 1, 1),
(1, 1082010, 45, 1, 55000, 0, 0, 4130000, 1, 1),
(1, 1082011, 45, 1, 60000, 0, 0, 4130000, 1, 1),
(1, 1082059, 55, 1, 66000, 0, 0, 4130000, 1, 1),
(1, 1082060, 55, 1, 71000, 0, 0, 4130000, 1, 1),
(1, 1082061, 55, 1, 77000, 0, 0, 4130000, 1, 1),
(1, 1082103, 65, 1, 82000, 0, 0, 4130000, 1, 1),
(1, 1082104, 65, 1, 88000, 0, 0, 4130000, 1, 1),
(1, 1082105, 65, 1, 93000, 0, 0, 4130000, 1, 1),
(1, 1082114, 75, 2, 161000, 0, 0, 4130000, 1, 2),
(1, 1082115, 75, 2, 165000, 0, 0, 4130000, 1, 2),
(1, 1082116, 75, 2, 168000, 0, 0, 4130000, 1, 2),
(1, 1082117, 75, 2, 168000, 0, 0, 4130000, 1, 2),
(1, 1082128, 85, 2, 184000, 0, 0, 4130000, 1, 2),
(1, 1082129, 85, 2, 188000, 0, 0, 4130000, 1, 2),
(1, 1082130, 85, 2, 191000, 0, 0, 4130000, 1, 2),
(1, 1082139, 95, 2, 207000, 0, 0, 4130000, 1, 2),
(1, 1082140, 95, 2, 210000, 0, 0, 4130000, 1, 2),
(1, 1082141, 95, 2, 214000, 0, 0, 4130000, 1, 2),
(1, 1082168, 105, 3, 330000, 0, 0, 4130000, 1, 3),
(1, 1082239, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(1, 1082234, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(1, 1092004, 45, 1, 82000, 0, 0, 4130022, 1, 1),
(1, 1092009, 55, 1, 99000, 0, 0, 4130022, 1, 1),
(1, 1092010, 55, 1, 104000, 0, 0, 4130022, 1, 1),
(1, 1092011, 55, 1, 104000, 0, 0, 4130022, 1, 1),
(1, 1092015, 65, 1, 110000, 0, 0, 4130022, 1, 1),
(1, 1092016, 65, 1, 115000, 0, 0, 4130022, 1, 1),
(1, 1092017, 65, 1, 115000, 0, 0, 4130022, 1, 1),
(1, 1092023, 75, 2, 168000, 0, 0, 4130022, 1, 2),
(1, 1092024, 75, 2, 176000, 0, 0, 4130022, 1, 2),
(1, 1092025, 75, 2, 176000, 0, 0, 4130022, 1, 2),
(1, 1092026, 85, 2, 184000, 0, 0, 4130022, 1, 2),
(1, 1092027, 85, 2, 191000, 0, 0, 4130022, 1, 2),
(1, 1092028, 85, 2, 191000, 0, 0, 4130022, 1, 2),
(1, 1092036, 95, 2, 199000, 0, 0, 4130022, 1, 2),
(1, 1092037, 95, 2, 207000, 0, 0, 4130022, 1, 2),
(1, 1092038, 95, 2, 214000, 0, 0, 4130022, 1, 2),
(1, 1092060, 105, 3, 231000, 0, 0, 4130022, 1, 3),
(1, 1092058, 115, 3, 385000, 0, 0, 4130022, 1, 3),
(1, 1302010, 45, 1, 66000, 0, 0, 4130002, 1, 1),
(1, 1312008, 45, 1, 77000, 0, 0, 4130003, 1, 1),
(1, 1322017, 45, 1, 77000, 0, 0, 4130004, 1, 1),
(1, 1402003, 45, 1, 110000, 0, 0, 4130005, 1, 1),
(1, 1412003, 45, 1, 77000, 0, 0, 4130006, 1, 1),
(1, 1422005, 45, 1, 82000, 0, 0, 4130007, 1, 1),
(1, 1432004, 45, 1, 82000, 0, 0, 4130008, 1, 1),
(1, 1442005, 45, 1, 82000, 0, 0, 4130009, 1, 1),
(1, 1302011, 55, 1, 82000, 0, 0, 4130002, 1, 1),
(1, 1312009, 55, 1, 104000, 0, 0, 4130003, 1, 1),
(1, 1322018, 55, 1, 104000, 0, 0, 4130004, 1, 1),
(1, 1402011, 55, 1, 126000, 0, 0, 4130005, 1, 1),
(1, 1412007, 55, 1, 104000, 0, 0, 4130006, 1, 1),
(1, 1422009, 55, 1, 104000, 0, 0, 4130007, 1, 1),
(1, 1432006, 55, 1, 104000, 0, 0, 4130008, 1, 1),
(1, 1442010, 55, 1, 137000, 0, 0, 4130009, 1, 1),
(1, 1302012, 65, 1, 137000, 0, 0, 4130002, 1, 1),
(1, 1312010, 65, 1, 165000, 0, 0, 4130003, 1, 1),
(1, 1322019, 65, 1, 137000, 0, 0, 4130004, 1, 1),
(1, 1402012, 65, 1, 143000, 0, 0, 4130005, 1, 1),
(1, 1412008, 65, 1, 137000, 0, 0, 4130006, 1, 1),
(1, 1422010, 65, 1, 137000, 0, 0, 4130007, 1, 1),
(1, 1432007, 65, 1, 137000, 0, 0, 4130008, 1, 1),
(1, 1442008, 65, 1, 165000, 0, 0, 4130009, 1, 1),
(1, 1322020, 70, 1, 165000, 0, 0, 4130004, 1, 1),
(1, 1302018, 75, 2, 231000, 0, 0, 4130002, 1, 2),
(1, 1312011, 75, 2, 269000, 0, 0, 4130003, 1, 2),
(1, 1322028, 75, 2, 269000, 0, 0, 4130004, 1, 2),
(1, 1402004, 75, 2, 231000, 0, 0, 4130005, 1, 2),
(1, 1402015, 75, 2, 231000, 0, 0, 4130005, 1, 2),
(1, 1412009, 75, 2, 238000, 0, 0, 4130006, 1, 2),
(1, 1422012, 75, 2, 238000, 0, 0, 4130007, 1, 2),
(1, 1432010, 75, 2, 238000, 0, 0, 4130008, 1, 2),
(1, 1442019, 75, 2, 269000, 0, 0, 4130009, 1, 2),
(1, 1302023, 85, 2, 269000, 0, 0, 4130002, 1, 2),
(1, 1312015, 85, 2, 308000, 0, 0, 4130003, 1, 2),
(1, 1322029, 85, 2, 308000, 0, 0, 4130004, 1, 2),
(1, 1402005, 85, 2, 308000, 0, 0, 4130005, 1, 2),
(1, 1402016, 85, 2, 308000, 0, 0, 4130005, 1, 2),
(1, 1412010, 85, 2, 284000, 0, 0, 4130006, 1, 2),
(1, 1422013, 85, 2, 284000, 0, 0, 4130007, 1, 2),
(1, 1432011, 85, 2, 284000, 0, 0, 4130008, 1, 2),
(1, 1442020, 85, 2, 346000, 0, 0, 4130009, 1, 2),
(1, 1302056, 95, 2, 369000, 0, 0, 4130002, 1, 2),
(1, 1312030, 95, 2, 361000, 0, 0, 4130003, 1, 2),
(1, 1322045, 95, 2, 361000, 0, 0, 4130004, 1, 2),
(1, 1402035, 95, 2, 361000, 0, 0, 4130005, 1, 2),
(1, 1412021, 95, 2, 377000, 0, 0, 4130006, 1, 2),
(1, 1422027, 95, 2, 346000, 0, 0, 4130007, 1, 2),
(1, 1432030, 95, 2, 377000, 0, 0, 4130008, 1, 2),
(1, 1442044, 95, 2, 361000, 0, 0, 4130009, 1, 2),
(1, 1302059, 105, 3, 605000, 0, 0, 4130002, 1, 3),
(1, 1312031, 105, 3, 583000, 0, 0, 4130003, 1, 3),
(1, 1322052, 105, 3, 528000, 0, 0, 4130004, 1, 3),
(1, 1402036, 105, 3, 605000, 0, 0, 4130005, 1, 3),
(1, 1412026, 105, 3, 572000, 0, 0, 4130006, 1, 3),
(1, 1422028, 105, 3, 561000, 0, 0, 4130007, 1, 3),
(1, 1432038, 105, 3, 583000, 0, 0, 4130008, 1, 3),
(1, 1442045, 105, 3, 627000, 0, 0, 4130009, 1, 3),
(1, 1302086, 115, 3, 748000, 0, 0, 4130002, 1, 3),
(1, 1312038, 115, 3, 638000, 0, 0, 4130003, 1, 3),
(1, 1322061, 115, 3, 539000, 0, 0, 4130004, 1, 3),
(1, 1402047, 115, 3, 715000, 0, 0, 4130005, 1, 3),
(1, 1412034, 115, 3, 715000, 0, 0, 4130006, 1, 3),
(1, 1422038, 115, 3, 616000, 0, 0, 4130007, 1, 3),
(1, 1432049, 115, 3, 627000, 0, 0, 4130008, 1, 3),
(1, 1442067, 115, 3, 682000, 0, 0, 4130009, 1, 3),
(1, 1302081, 115, 3, 748000, 0, 0, 4130002, 1, 3),
(1, 1312037, 115, 3, 638000, 0, 0, 4130003, 1, 3),
(1, 1322060, 115, 3, 539000, 0, 0, 4130004, 1, 3),
(1, 1402046, 115, 3, 715000, 0, 0, 4130005, 1, 3),
(1, 1412033, 115, 3, 715000, 0, 0, 4130006, 1, 3),
(1, 1422037, 115, 3, 616000, 0, 0, 4130007, 1, 3),
(1, 1432047, 115, 3, 627000, 0, 0, 4130008, 1, 3),
(1, 1442063, 115, 3, 682000, 0, 0, 4130009, 1, 3),
(2, 1002215, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(2, 1002216, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(2, 1002217, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(2, 1002218, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(2, 1002242, 55, 1, 28000, 0, 0, 4130018, 1, 1),
(2, 1002243, 55, 1, 28000, 0, 0, 4130018, 1, 1),
(2, 1002244, 55, 1, 28000, 0, 0, 4130018, 1, 1),
(2, 1002245, 55, 1, 28000, 0, 0, 4130018, 1, 1),
(2, 1002246, 55, 1, 28000, 0, 0, 4130018, 1, 1),
(2, 1002252, 65, 1, 44000, 0, 0, 4130018, 1, 1),
(2, 1002253, 65, 1, 44000, 0, 0, 4130018, 1, 1),
(2, 1002254, 65, 1, 44000, 0, 0, 4130018, 1, 1),
(2, 1002271, 75, 2, 73000, 0, 0, 4130018, 1, 2),
(2, 1002272, 75, 2, 73000, 0, 0, 4130018, 1, 2),
(2, 1002273, 75, 2, 73000, 0, 0, 4130018, 1, 2),
(2, 1002274, 75, 2, 73000, 0, 0, 4130018, 1, 2),
(2, 1002363, 85, 2, 84000, 0, 0, 4130018, 1, 2),
(2, 1002364, 85, 2, 84000, 0, 0, 4130018, 1, 2),
(2, 1002365, 85, 2, 84000, 0, 0, 4130018, 1, 2),
(2, 1002366, 85, 2, 84000, 0, 0, 4130018, 1, 2),
(2, 1002398, 95, 2, 96000, 0, 0, 4130018, 1, 2),
(2, 1002399, 95, 2, 96000, 0, 0, 4130018, 1, 2),
(2, 1002400, 95, 2, 96000, 0, 0, 4130018, 1, 2),
(2, 1002401, 95, 2, 96000, 0, 0, 4130018, 1, 2),
(2, 1002773, 105, 3, 165000, 0, 0, 4130018, 1, 3),
(2, 1002791, 115, 3, 187000, 0, 0, 4130018, 1, 3),
(2, 1002777, 115, 3, 187000, 0, 0, 4130018, 1, 3),
(2, 1050045, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1050046, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1050047, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1050048, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1050049, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1051030, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1051031, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1051032, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1051033, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1051034, 43, 1, 50000, 0, 0, 4130021, 1, 1),
(2, 1050053, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1050054, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1050055, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1050056, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1051044, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1051045, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1051046, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1051047, 53, 1, 55000, 0, 0, 4130021, 1, 1),
(2, 1050067, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1050068, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1050069, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1050070, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1051052, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1051053, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1051054, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1051055, 63, 1, 66000, 0, 0, 4130021, 1, 1),
(2, 1050072, 73, 2, 123000, 0, 0, 4130021, 1, 2),
(2, 1050073, 73, 2, 123000, 0, 0, 4130021, 1, 2),
(2, 1050074, 73, 2, 123000, 0, 0, 4130021, 1, 2),
(2, 1051056, 73, 2, 123000, 0, 0, 4130021, 1, 2),
(2, 1051057, 73, 2, 123000, 0, 0, 4130021, 1, 2),
(2, 1051058, 73, 2, 123000, 0, 0, 4130021, 1, 2),
(2, 1050092, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1050093, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1050094, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1050095, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1051094, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1051095, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1051096, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1051097, 83, 2, 153000, 0, 0, 4130021, 1, 2),
(2, 1050102, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1050103, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1050104, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1050105, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1051101, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1051102, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1051103, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1051104, 93, 2, 184000, 0, 0, 4130021, 1, 2),
(2, 1052076, 103, 3, 319000, 0, 0, 4130021, 1, 3),
(2, 1052161, 115, 3, 374000, 0, 0, 4130021, 1, 3),
(2, 1052156, 115, 3, 374000, 0, 0, 4130021, 1, 3),
(2, 1072140, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(2, 1072141, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(2, 1072142, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(2, 1072143, 45, 1, 30000, 0, 0, 4130001, 1, 1),
(2, 1072136, 55, 1, 33000, 0, 0, 4130001, 1, 1),
(2, 1072137, 55, 1, 33000, 0, 0, 4130001, 1, 1),
(2, 1072138, 55, 1, 33000, 0, 0, 4130001, 1, 1),
(2, 1072139, 55, 1, 33000, 0, 0, 4130001, 1, 1),
(2, 1072157, 65, 1, 44000, 0, 0, 4130001, 1, 1),
(2, 1072158, 65, 1, 44000, 0, 0, 4130001, 1, 1),
(2, 1072159, 65, 1, 44000, 0, 0, 4130001, 1, 1),
(2, 1072160, 65, 1, 44000, 0, 0, 4130001, 1, 1),
(2, 1072177, 75, 2, 77000, 0, 0, 4130001, 1, 2),
(2, 1072178, 75, 2, 77000, 0, 0, 4130001, 1, 2),
(2, 1072179, 75, 2, 77000, 0, 0, 4130001, 1, 2),
(2, 1072206, 85, 2, 92000, 0, 0, 4130001, 1, 2),
(2, 1072207, 85, 2, 92000, 0, 0, 4130001, 1, 2),
(2, 1072208, 85, 2, 92000, 0, 0, 4130001, 1, 2),
(2, 1072209, 85, 2, 92000, 0, 0, 4130001, 1, 2),
(2, 1072223, 95, 2, 107000, 0, 0, 4130001, 1, 2),
(2, 1072224, 95, 2, 107000, 0, 0, 4130001, 1, 2),
(2, 1072225, 95, 2, 107000, 0, 0, 4130001, 1, 2),
(2, 1072226, 95, 2, 107000, 0, 0, 4130001, 1, 2),
(2, 1072268, 105, 3, 198000, 0, 0, 4130001, 1, 3),
(2, 1072362, 115, 3, 242000, 0, 0, 4130001, 1, 3),
(2, 1072356, 115, 3, 242000, 0, 0, 4130001, 1, 3),
(2, 1082080, 45, 1, 55000, 0, 0, 4130000, 1, 1),
(2, 1082081, 45, 1, 44000, 0, 0, 4130000, 1, 1),
(2, 1082082, 45, 1, 50000, 0, 0, 4130000, 1, 1),
(2, 1082086, 55, 1, 58000, 0, 0, 4130000, 1, 1),
(2, 1082087, 55, 1, 63000, 0, 0, 4130000, 1, 1),
(2, 1082088, 55, 1, 69000, 0, 0, 4130000, 1, 1),
(2, 1082098, 65, 1, 77000, 0, 0, 4130000, 1, 1),
(2, 1082099, 65, 1, 80000, 0, 0, 4130000, 1, 1),
(2, 1082100, 65, 1, 82000, 0, 0, 4130000, 1, 1),
(2, 1082121, 75, 2, 153000, 0, 0, 4130000, 1, 2),
(2, 1082122, 75, 2, 157000, 0, 0, 4130000, 1, 2),
(2, 1082123, 75, 2, 161000, 0, 0, 4130000, 1, 2),
(2, 1082131, 85, 2, 176000, 0, 0, 4130000, 1, 2),
(2, 1082132, 85, 2, 180000, 0, 0, 4130000, 1, 2),
(2, 1082133, 85, 2, 180000, 0, 0, 4130000, 1, 2),
(2, 1082134, 85, 2, 184000, 0, 0, 4130000, 1, 2),
(2, 1082151, 95, 2, 199000, 0, 0, 4130000, 1, 2),
(2, 1082152, 95, 2, 203000, 0, 0, 4130000, 1, 2),
(2, 1082153, 95, 2, 203000, 0, 0, 4130000, 1, 2),
(2, 1082154, 95, 2, 207000, 0, 0, 4130000, 1, 2),
(2, 1082164, 105, 3, 330000, 0, 0, 4130000, 1, 3),
(2, 1082240, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(2, 1082235, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(2, 1092057, 115, 3, 385000, 0, 0, 4130022, 1, 3),
(2, 1372007, 43, 1, 110000, 0, 0, 4130010, 1, 1),
(2, 1382006, 50, 1, 82000, 0, 0, 4130011, 1, 1),
(2, 1372014, 53, 1, 126000, 0, 0, 4130010, 1, 1),
(2, 1382007, 60, 1, 110000, 0, 0, 4130011, 1, 1),
(2, 1372015, 63, 1, 143000, 0, 0, 4130010, 1, 1),
(2, 1382010, 70, 1, 137000, 0, 0, 4130011, 1, 1),
(2, 1372016, 73, 2, 223000, 0, 0, 4130010, 1, 2),
(2, 1382008, 80, 2, 238000, 0, 0, 4130011, 1, 2),
(2, 1372009, 83, 2, 250000, 0, 0, 4130010, 1, 2),
(2, 1382035, 90, 2, 292000, 0, 0, 4130011, 1, 2),
(2, 1372010, 93, 2, 277000, 0, 0, 4130010, 1, 2),
(2, 1372032, 103, 3, 506000, 0, 0, 4130010, 1, 3),
(2, 1382036, 105, 3, 517000, 0, 0, 4130011, 1, 3),
(2, 1372045, 115, 3, 561000, 0, 0, 4130010, 1, 3),
(2, 1382059, 115, 3, 572000, 0, 0, 4130011, 1, 3),
(2, 1372044, 115, 3, 561000, 0, 0, 4130010, 1, 3),
(2, 1382057, 115, 3, 572000, 0, 0, 4130011, 1, 3),
(4, 1002211, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(4, 1002212, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(4, 1002213, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(4, 1002214, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(4, 1002267, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(4, 1002268, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(4, 1002269, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(4, 1002270, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(4, 1002286, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(4, 1002287, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(4, 1002288, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(4, 1002289, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(4, 1002275, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(4, 1002276, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(4, 1002277, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(4, 1002278, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(4, 1002402, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(4, 1002403, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(4, 1002404, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(4, 1002405, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(4, 1002406, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(4, 1002407, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(4, 1002408, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(4, 1002547, 105, 3, 165000, 0, 0, 4130018, 1, 3),
(4, 1002792, 115, 3, 187000, 0, 0, 4130018, 1, 3),
(4, 1002778, 115, 3, 187000, 0, 0, 4130018, 1, 3),
(4, 1050051, 45, 1, 52000, 0, 0, 4130021, 1, 1),
(4, 1050052, 45, 1, 52000, 0, 0, 4130021, 1, 1),
(4, 1051037, 45, 1, 52000, 0, 0, 4130021, 1, 1),
(4, 1051038, 45, 1, 52000, 0, 0, 4130021, 1, 1),
(4, 1051039, 45, 1, 52000, 0, 0, 4130021, 1, 1),
(4, 1050058, 55, 1, 58000, 0, 0, 4130021, 1, 1),
(4, 1050059, 55, 1, 58000, 0, 0, 4130021, 1, 1),
(4, 1050060, 55, 1, 58000, 0, 0, 4130021, 1, 1),
(4, 1051041, 55, 1, 58000, 0, 0, 4130021, 1, 1),
(4, 1051042, 55, 1, 58000, 0, 0, 4130021, 1, 1),
(4, 1051043, 55, 1, 58000, 0, 0, 4130021, 1, 1),
(4, 1050061, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1050062, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1050063, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1050064, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1051062, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1051063, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1051064, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1051065, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(4, 1050075, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1050076, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1050077, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1050078, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1051066, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1051067, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1051068, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1051069, 75, 2, 107000, 0, 0, 4130021, 1, 2),
(4, 1050088, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1050089, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1050090, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1050091, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1051082, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1051083, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1051084, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1051085, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(4, 1050106, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(4, 1050107, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(4, 1050108, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(4, 1051105, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(4, 1051106, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(4, 1051107, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(4, 1052071, 105, 3, 330000, 0, 0, 4130021, 1, 3),
(4, 1052162, 115, 3, 396000, 0, 0, 4130021, 1, 3),
(4, 1052157, 115, 3, 396000, 0, 0, 4130021, 1, 3),
(4, 1072122, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(4, 1072123, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(4, 1072124, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(4, 1072125, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(4, 1072144, 55, 1, 36000, 0, 0, 4130001, 1, 1),
(4, 1072145, 55, 1, 36000, 0, 0, 4130001, 1, 1),
(4, 1072146, 55, 1, 36000, 0, 0, 4130001, 1, 1),
(4, 1072164, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(4, 1072165, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(4, 1072166, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(4, 1072167, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(4, 1072182, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(4, 1072183, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(4, 1072184, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(4, 1072185, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(4, 1072203, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(4, 1072204, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(4, 1072205, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(4, 1072227, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(4, 1072228, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(4, 1072229, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(4, 1072269, 105, 3, 198000, 0, 0, 4130001, 1, 3),
(4, 1072363, 115, 3, 220000, 0, 0, 4130001, 1, 3),
(4, 1072357, 115, 3, 220000, 0, 0, 4130001, 1, 3),
(4, 1082083, 45, 1, 58000, 0, 0, 4130000, 1, 1),
(4, 1082084, 45, 1, 47000, 0, 0, 4130000, 1, 1),
(4, 1082085, 45, 1, 52000, 0, 0, 4130000, 1, 1),
(4, 1082089, 55, 1, 60000, 0, 0, 4130000, 1, 1),
(4, 1082090, 55, 1, 66000, 0, 0, 4130000, 1, 1),
(4, 1082091, 55, 1, 71000, 0, 0, 4130000, 1, 1),
(4, 1082106, 65, 1, 77000, 0, 0, 4130000, 1, 1),
(4, 1082107, 65, 1, 82000, 0, 0, 4130000, 1, 1),
(4, 1082108, 65, 1, 88000, 0, 0, 4130000, 1, 1),
(4, 1082109, 75, 2, 153000, 0, 0, 4130000, 1, 2),
(4, 1082110, 75, 2, 157000, 0, 0, 4130000, 1, 2),
(4, 1082111, 75, 2, 157000, 0, 0, 4130000, 1, 2),
(4, 1082112, 75, 2, 161000, 0, 0, 4130000, 1, 2),
(4, 1082125, 85, 2, 176000, 0, 0, 4130000, 1, 2),
(4, 1082126, 85, 2, 180000, 0, 0, 4130000, 1, 2),
(4, 1082127, 85, 2, 184000, 0, 0, 4130000, 1, 2),
(4, 1082158, 95, 2, 199000, 0, 0, 4130000, 1, 2),
(4, 1082159, 95, 2, 203000, 0, 0, 4130000, 1, 2),
(4, 1082160, 95, 2, 207000, 0, 0, 4130000, 1, 2),
(4, 1082163, 105, 3, 330000, 0, 0, 4130000, 1, 3),
(4, 1082241, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(4, 1082236, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(4, 1452008, 45, 1, 110000, 0, 0, 4130012, 1, 1),
(4, 1462007, 45, 1, 93000, 0, 0, 4130013, 1, 1),
(4, 1452004, 55, 1, 137000, 0, 0, 4130012, 1, 1),
(4, 1462008, 55, 1, 132000, 0, 0, 4130013, 1, 1),
(4, 1452009, 65, 1, 165000, 0, 0, 4130012, 1, 1),
(4, 1452010, 65, 1, 165000, 0, 0, 4130012, 1, 1),
(4, 1452011, 65, 1, 165000, 0, 0, 4130012, 1, 1),
(4, 1462009, 65, 1, 165000, 0, 0, 4130013, 1, 1),
(4, 1452012, 75, 2, 269000, 0, 0, 4130012, 1, 2),
(4, 1452013, 75, 2, 269000, 0, 0, 4130012, 1, 2),
(4, 1452014, 75, 2, 269000, 0, 0, 4130012, 1, 2),
(4, 1452015, 75, 2, 269000, 0, 0, 4130012, 1, 2),
(4, 1462010, 75, 2, 269000, 0, 0, 4130013, 1, 2),
(4, 1462011, 75, 2, 269000, 0, 0, 4130013, 1, 2),
(4, 1462012, 75, 2, 269000, 0, 0, 4130013, 1, 2),
(4, 1462013, 75, 2, 269000, 0, 0, 4130013, 1, 2),
(4, 1452017, 85, 2, 308000, 0, 0, 4130012, 1, 2),
(4, 1462018, 85, 2, 308000, 0, 0, 4130013, 1, 2),
(4, 1452019, 95, 2, 346000, 0, 0, 4130012, 1, 2),
(4, 1452020, 95, 2, 346000, 0, 0, 4130012, 1, 2),
(4, 1452021, 95, 2, 346000, 0, 0, 4130012, 1, 2),
(4, 1462015, 95, 2, 346000, 0, 0, 4130013, 1, 2),
(4, 1462016, 95, 2, 346000, 0, 0, 4130013, 1, 2),
(4, 1462017, 95, 2, 346000, 0, 0, 4130013, 1, 2),
(4, 1452044, 105, 3, 550000, 0, 0, 4130012, 1, 3),
(4, 1462039, 105, 3, 550000, 0, 0, 4130013, 1, 3),
(4, 1452059, 115, 3, 605000, 0, 0, 4130012, 1, 3),
(4, 1462051, 115, 3, 605000, 0, 0, 4130013, 1, 3),
(4, 1452057, 115, 3, 605000, 0, 0, 4130012, 1, 3),
(4, 1462050, 115, 3, 605000, 0, 0, 4130013, 1, 3),
(8, 1002207, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(8, 1002208, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(8, 1002209, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(8, 1002210, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(8, 1002247, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(8, 1002248, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(8, 1002249, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(8, 1002281, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(8, 1002282, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(8, 1002283, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(8, 1002284, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(8, 1002285, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(8, 1002327, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(8, 1002328, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(8, 1002329, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(8, 1002330, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(8, 1002323, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(8, 1002324, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(8, 1002325, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(8, 1002326, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(8, 1002380, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(8, 1002381, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(8, 1002382, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(8, 1002383, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(8, 1002550, 105, 3, 165000, 0, 0, 4130018, 1, 3),
(8, 1002793, 115, 3, 209000, 0, 0, 4130018, 1, 3),
(8, 1002779, 115, 3, 209000, 0, 0, 4130018, 1, 3),
(8, 1040094, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1040095, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1040096, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1040097, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1041077, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1041078, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1041079, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1041080, 45, 1, 41000, 0, 0, 4130019, 1, 1),
(8, 1040098, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(8, 1040099, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(8, 1040100, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(8, 1041094, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(8, 1041095, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(8, 1041096, 55, 1, 50000, 0, 0, 4130019, 1, 1),
(8, 1040105, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1040106, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1040107, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1041100, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1041101, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1041102, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1041103, 65, 1, 55000, 0, 0, 4130019, 1, 1),
(8, 1040108, 75, 2, 107000, 0, 0, 4130019, 1, 2),
(8, 1040109, 75, 2, 107000, 0, 0, 4130019, 1, 2),
(8, 1040110, 75, 2, 107000, 0, 0, 4130019, 1, 2),
(8, 1041105, 75, 2, 107000, 0, 0, 4130019, 1, 2),
(8, 1041106, 75, 2, 107000, 0, 0, 4130019, 1, 2),
(8, 1041107, 75, 2, 107000, 0, 0, 4130019, 1, 2),
(8, 1040115, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1040116, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1040117, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1040118, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1041115, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1041116, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1041117, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1041118, 85, 2, 138000, 0, 0, 4130019, 1, 2),
(8, 1060083, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1060084, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1060085, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1060086, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1061076, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1061077, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1061078, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1061079, 45, 1, 33000, 0, 0, 4130020, 1, 1),
(8, 1060087, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(8, 1060088, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(8, 1060089, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(8, 1061093, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(8, 1061094, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(8, 1061095, 55, 1, 41000, 0, 0, 4130020, 1, 1),
(8, 1060093, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1060094, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1060095, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1061099, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1061100, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1061101, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1061102, 65, 1, 50000, 0, 0, 4130020, 1, 1),
(8, 1060097, 75, 2, 92000, 0, 0, 4130020, 1, 2),
(8, 1060098, 75, 2, 92000, 0, 0, 4130020, 1, 2),
(8, 1060099, 75, 2, 92000, 0, 0, 4130020, 1, 2),
(8, 1061104, 75, 2, 92000, 0, 0, 4130020, 1, 2),
(8, 1061105, 75, 2, 92000, 0, 0, 4130020, 1, 2),
(8, 1061106, 75, 2, 92000, 0, 0, 4130020, 1, 2),
(8, 1060104, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1060105, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1060106, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1060107, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1061114, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1061115, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1061116, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1061117, 85, 2, 123000, 0, 0, 4130020, 1, 2),
(8, 1050096, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1050097, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1050098, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1050099, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1051090, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1051091, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1051092, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1051093, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(8, 1052072, 105, 3, 330000, 0, 0, 4130021, 1, 3),
(8, 1052163, 115, 3, 396000, 0, 0, 4130021, 1, 3),
(8, 1052158, 115, 3, 396000, 0, 0, 4130021, 1, 3),
(8, 1072128, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(8, 1072129, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(8, 1072130, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(8, 1072131, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(8, 1072150, 55, 1, 36000, 0, 0, 4130001, 1, 1),
(8, 1072151, 55, 1, 36000, 0, 0, 4130001, 1, 1),
(8, 1072152, 55, 1, 39000, 0, 0, 4130001, 1, 1),
(8, 1072161, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(8, 1072162, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(8, 1072163, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(8, 1072172, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(8, 1072173, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(8, 1072174, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(8, 1072192, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(8, 1072193, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(8, 1072194, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(8, 1072195, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(8, 1072213, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(8, 1072214, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(8, 1072215, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(8, 1072216, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(8, 1072272, 105, 3, 215000, 0, 0, 4130001, 1, 3),
(8, 1072364, 115, 3, 248000, 0, 0, 4130001, 1, 3),
(8, 1072358, 115, 3, 248000, 0, 0, 4130001, 1, 3),
(8, 1082065, 45, 1, 47000, 0, 0, 4130000, 1, 1),
(8, 1082066, 45, 1, 52000, 0, 0, 4130000, 1, 1),
(8, 1082067, 45, 1, 50000, 0, 0, 4130000, 1, 1),
(8, 1082092, 55, 1, 60000, 0, 0, 4130000, 1, 1),
(8, 1082093, 55, 1, 66000, 0, 0, 4130000, 1, 1),
(8, 1082094, 55, 1, 71000, 0, 0, 4130000, 1, 1),
(8, 1082095, 65, 1, 82000, 0, 0, 4130000, 1, 1),
(8, 1082096, 65, 1, 88000, 0, 0, 4130000, 1, 1),
(8, 1082097, 65, 1, 93000, 0, 0, 4130000, 1, 1),
(8, 1082118, 75, 2, 153000, 0, 0, 4130000, 1, 2),
(8, 1082119, 75, 2, 157000, 0, 0, 4130000, 1, 2),
(8, 1082120, 75, 2, 161000, 0, 0, 4130000, 1, 2),
(8, 1082142, 85, 2, 165000, 0, 0, 4130000, 1, 2),
(8, 1082143, 85, 2, 165000, 0, 0, 4130000, 1, 2),
(8, 1082144, 85, 2, 165000, 0, 0, 4130000, 1, 2),
(8, 1082135, 95, 2, 199000, 0, 0, 4130000, 1, 2),
(8, 1082136, 95, 2, 203000, 0, 0, 4130000, 1, 2),
(8, 1082137, 95, 2, 203000, 0, 0, 4130000, 1, 2),
(8, 1082138, 95, 2, 207000, 0, 0, 4130000, 1, 2),
(8, 1082167, 105, 3, 330000, 0, 0, 4130000, 1, 3),
(8, 1082242, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(8, 1082237, 115, 3, 363000, 0, 0, 4130000, 1, 3),
(8, 1092059, 115, 3, 385000, 0, 0, 4130022, 1, 3),
(8, 1332003, 45, 1, 121000, 0, 0, 4130014, 1, 1),
(8, 1472018, 45, 1, 55000, 0, 0, 4130015, 1, 1),
(8, 1472019, 45, 1, 57000, 0, 0, 4130015, 1, 1),
(8, 1472020, 45, 1, 57000, 0, 0, 4130015, 1, 1),
(8, 1472021, 45, 1, 60000, 0, 0, 4130015, 1, 1),
(8, 1332016, 45, 1, 121000, 0, 0, 4130014, 1, 1),
(8, 1332015, 55, 1, 137000, 0, 0, 4130014, 1, 1),
(8, 1472022, 55, 1, 137000, 0, 0, 4130015, 1, 1),
(8, 1472023, 55, 1, 140000, 0, 0, 4130015, 1, 1),
(8, 1472024, 55, 1, 140000, 0, 0, 4130015, 1, 1),
(8, 1472025, 55, 1, 143000, 0, 0, 4130015, 1, 1),
(8, 1332017, 55, 1, 137000, 0, 0, 4130014, 1, 1),
(8, 1332018, 65, 1, 154000, 0, 0, 4130014, 1, 1),
(8, 1472026, 65, 1, 165000, 0, 0, 4130015, 1, 1),
(8, 1472027, 65, 1, 167000, 0, 0, 4130015, 1, 1),
(8, 1472028, 65, 1, 167000, 0, 0, 4130015, 1, 1),
(8, 1472029, 65, 1, 170000, 0, 0, 4130015, 1, 1),
(8, 1332019, 65, 1, 154000, 0, 0, 4130014, 1, 1),
(8, 1472031, 75, 2, 308000, 0, 0, 4130015, 1, 2),
(8, 1332022, 75, 2, 238000, 0, 0, 4130014, 1, 2),
(8, 1332023, 75, 2, 238000, 0, 0, 4130014, 1, 2),
(8, 1332027, 85, 2, 261000, 0, 0, 4130014, 1, 2),
(8, 1472033, 85, 2, 346000, 0, 0, 4130015, 1, 2),
(8, 1332026, 85, 2, 261000, 0, 0, 4130014, 1, 2),
(8, 1332052, 95, 2, 308000, 0, 0, 4130014, 1, 2),
(8, 1472053, 95, 2, 392000, 0, 0, 4130015, 1, 2),
(8, 1332051, 95, 2, 308000, 0, 0, 4130014, 1, 2),
(8, 1332050, 105, 3, 495000, 0, 0, 4130014, 1, 3),
(8, 1472051, 105, 3, 627000, 0, 0, 4130015, 1, 3),
(8, 1472052, 105, 3, 627000, 0, 0, 4130015, 1, 3),
(8, 1332049, 105, 3, 495000, 0, 0, 4130014, 1, 3),
(8, 1332075, 115, 3, 550000, 0, 0, 4130014, 1, 3),
(8, 1332076, 115, 3, 550000, 0, 0, 4130014, 1, 3),
(8, 1472071, 115, 3, 693000, 0, 0, 4130015, 1, 3),
(8, 1332073, 115, 3, 550000, 0, 0, 4130014, 1, 3),
(8, 1332074, 115, 3, 561000, 0, 0, 4130014, 1, 3),
(8, 1472068, 115, 3, 693000, 0, 0, 4130015, 1, 3),
(16, 1002631, 45, 1, 22000, 0, 0, 4130018, 1, 1),
(16, 1002634, 55, 1, 30000, 0, 0, 4130018, 1, 1),
(16, 1002637, 65, 1, 47000, 0, 0, 4130018, 1, 1),
(16, 1002640, 75, 2, 77000, 0, 0, 4130018, 1, 2),
(16, 1002643, 85, 2, 88000, 0, 0, 4130018, 1, 2),
(16, 1002646, 95, 2, 100000, 0, 0, 4130018, 1, 2),
(16, 1002649, 105, 3, 165000, 0, 0, 4130018, 1, 3),
(16, 1002794, 115, 3, 187000, 0, 0, 4130018, 1, 3),
(16, 1002780, 115, 3, 187000, 0, 0, 4130018, 1, 3),
(16, 1052116, 45, 1, 52000, 0, 0, 4130021, 1, 1),
(16, 1052119, 55, 1, 55000, 0, 0, 4130021, 1, 1),
(16, 1052122, 65, 1, 63000, 0, 0, 4130021, 1, 1),
(16, 1052125, 75, 2, 138000, 0, 0, 4130021, 1, 2),
(16, 1052128, 85, 2, 153000, 0, 0, 4130021, 1, 2),
(16, 1052131, 95, 2, 184000, 0, 0, 4130021, 1, 2),
(16, 1052134, 105, 3, 330000, 0, 0, 4130021, 1, 3),
(16, 1052164, 115, 3, 396000, 0, 0, 4130021, 1, 3),
(16, 1052159, 115, 3, 396000, 0, 0, 4130021, 1, 3),
(16, 1072303, 45, 1, 28000, 0, 0, 4130001, 1, 1),
(16, 1072306, 55, 1, 36000, 0, 0, 4130001, 1, 1),
(16, 1072309, 65, 1, 50000, 0, 0, 4130001, 1, 1),
(16, 1072312, 75, 2, 84000, 0, 0, 4130001, 1, 2),
(16, 1072315, 85, 2, 107000, 0, 0, 4130001, 1, 2),
(16, 1072318, 95, 2, 130000, 0, 0, 4130001, 1, 2),
(16, 1072321, 105, 3, 198000, 0, 0, 4130001, 1, 3),
(16, 1072365, 115, 3, 220000, 0, 0, 4130001, 1, 3),
(16, 1072359, 115, 3, 220000, 0, 0, 4130001, 1, 3),
(16, 1082198, 45, 1, 47000, 0, 0, 4130000, 1, 1),
(16, 1082201, 55, 1, 60000, 0, 0, 4130000, 1, 1),
(16, 1082204, 65, 1, 82000, 0, 0, 4130000, 1, 1),
(16, 1082207, 75, 2, 153000, 0, 0, 4130000, 1, 2),
(16, 1082210, 85, 2, 176000, 0, 0, 4130000, 1, 2),
(16, 1082213, 95, 2, 203000, 0, 0, 4130000, 1, 2),
(16, 1082216, 105, 3, 330000, 0, 0, 4130000, 1, 3),
(16, 1082243, 115, 3, 369000, 0, 0, 4130000, 1, 3),
(16, 1082238, 115, 3, 369000, 0, 0, 4130000, 1, 3),
(16, 1482007, 45, 1, 71000, 0, 0, 4130016, 1, 1),
(16, 1492007, 45, 1, 77000, 0, 0, 4130017, 1, 1),
(16, 1482008, 55, 1, 132000, 0, 0, 4130016, 1, 1),
(16, 1492008, 55, 1, 137000, 0, 0, 4130017, 1, 1),
(16, 1482009, 65, 1, 165000, 0, 0, 4130016, 1, 1),
(16, 1492009, 65, 1, 170000, 0, 0, 4130017, 1, 1),
(16, 1482010, 75, 2, 269000, 0, 0, 4130016, 1, 2),
(16, 1492010, 75, 2, 269000, 0, 0, 4130017, 1, 2),
(16, 1482011, 85, 2, 300000, 0, 0, 4130016, 1, 2),
(16, 1492011, 85, 2, 308000, 0, 0, 4130017, 1, 2),
(16, 1482012, 95, 2, 338000, 0, 0, 4130016, 1, 2),
(16, 1492012, 95, 2, 346000, 0, 0, 4130017, 1, 2),
(16, 1482013, 105, 3, 561000, 0, 0, 4130016, 1, 3),
(16, 1492013, 105, 3, 572000, 0, 0, 4130017, 1, 3),
(16, 1482024, 115, 3, 616000, 0, 0, 4130016, 1, 3),
(16, 1492025, 115, 3, 627000, 0, 0, 4130017, 1, 3),
(16, 1482023, 115, 3, 616000, 0, 0, 4130016, 1, 3),
(16, 1492023, 115, 3, 627000, 0, 0, 4130017, 1, 3);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,99 @@
INSERT INTO makerrewarddata (itemid, rewardid, quantity, prob)
VALUES (4250000, 4250000, 1, 14),
(4250000, 4250001, 1, 5),
(4250000, 4250002, 1, 1),
(4250100, 4250100, 1, 14),
(4250100, 4250101, 1, 5),
(4250100, 4250102, 1, 1),
(4250200, 4250200, 1, 14),
(4250200, 4250201, 1, 5),
(4250200, 4250202, 1, 1),
(4250300, 4250300, 1, 14),
(4250300, 4250301, 1, 5),
(4250300, 4250302, 1, 1),
(4250400, 4250400, 1, 14),
(4250400, 4250401, 1, 5),
(4250400, 4250402, 1, 1),
(4250500, 4250500, 1, 14),
(4250500, 4250501, 1, 5),
(4250500, 4250502, 1, 1),
(4250600, 4250600, 1, 14),
(4250600, 4250601, 1, 5),
(4250600, 4250602, 1, 1),
(4250700, 4250700, 1, 14),
(4250700, 4250701, 1, 5),
(4250700, 4250702, 1, 1),
(4250800, 4250800, 1, 75),
(4250800, 4250801, 1, 24),
(4250800, 4250802, 1, 1),
(4250900, 4250900, 1, 75),
(4250900, 4250901, 1, 24),
(4250900, 4250902, 1, 1),
(4251000, 4251000, 1, 75),
(4251000, 4251001, 1, 24),
(4251000, 4251002, 1, 1),
(4251100, 4251100, 1, 75),
(4251100, 4251101, 1, 24),
(4251100, 4251102, 1, 1),
(4251300, 4251300, 1, 27),
(4251300, 4251301, 1, 12),
(4251300, 4251302, 1, 1),
(4251400, 4251400, 1, 27),
(4251400, 4251401, 1, 12),
(4251400, 4251402, 1, 1),
(4250001, 4250001, 1, 3),
(4250001, 4250000, 9, 2),
(4250101, 4250101, 1, 3),
(4250101, 4250100, 9, 2),
(4250201, 4250201, 1, 3),
(4250201, 4250200, 9, 2),
(4250301, 4250301, 1, 3),
(4250301, 4250300, 9, 2),
(4250401, 4250401, 1, 3),
(4250401, 4250400, 9, 2),
(4250501, 4250501, 1, 3),
(4250501, 4250500, 9, 2),
(4250601, 4250601, 1, 3),
(4250601, 4250600, 9, 2),
(4250701, 4250701, 1, 3),
(4250701, 4250700, 9, 2),
(4250801, 4250801, 1, 3),
(4250801, 4250800, 9, 2),
(4250901, 4250901, 1, 3),
(4250901, 4250900, 9, 2),
(4251001, 4251001, 1, 3),
(4251001, 4251000, 9, 2),
(4251101, 4251101, 1, 3),
(4251101, 4251100, 9, 2),
(4251301, 4251301, 1, 1),
(4251301, 4251300, 9, 1),
(4251401, 4251401, 1, 1),
(4251401, 4251400, 9, 1),
(4250002, 4250002, 1, 3),
(4250002, 4250001, 9, 7),
(4250102, 4250102, 1, 3),
(4250102, 4250101, 9, 7),
(4250202, 4250202, 1, 3),
(4250202, 4250201, 9, 7),
(4250302, 4250302, 1, 3),
(4250302, 4250301, 9, 7),
(4250402, 4250402, 1, 3),
(4250402, 4250401, 9, 7),
(4250502, 4250502, 1, 3),
(4250502, 4250501, 9, 7),
(4250602, 4250602, 1, 3),
(4250602, 4250601, 9, 7),
(4250702, 4250702, 1, 3),
(4250702, 4250701, 9, 7),
(4250802, 4250802, 1, 3),
(4250802, 4250801, 9, 7),
(4250902, 4250902, 1, 3),
(4250902, 4250901, 9, 7),
(4251002, 4251002, 1, 3),
(4251002, 4251001, 9, 7),
(4251102, 4251102, 1, 3),
(4251102, 4251101, 9, 7),
(4251302, 4251302, 1, 1),
(4251302, 4251301, 9, 4),
(4251402, 4251402, 1, 1),
(4251402, 4251401, 9, 4);

View File

@@ -0,0 +1,47 @@
# generated with the SkillMakerReagentIndexer tool
INSERT INTO makerreagentdata (itemid, stat, value)
VALUES (4250000, "incPAD", 1),
(4250001, "incPAD", 2),
(4250002, "incPAD", 3),
(4250100, "incMAD", 1),
(4250101, "incMAD", 2),
(4250102, "incMAD", 3),
(4250200, "incACC", 2),
(4250201, "incACC", 3),
(4250202, "incACC", 5),
(4250300, "incEVA", 2),
(4250301, "incEVA", 3),
(4250302, "incEVA", 5),
(4250400, "incSpeed", 2),
(4250401, "incSpeed", 3),
(4250402, "incSpeed", 5),
(4250500, "incJump", 1),
(4250501, "incJump", 2),
(4250502, "incJump", 3),
(4250600, "incMaxHP", 10),
(4250601, "incMaxHP", 20),
(4250602, "incMaxHP", 30),
(4250700, "incMaxMP", 10),
(4250701, "incMaxMP", 20),
(4250702, "incMaxMP", 30),
(4250800, "incSTR", 2),
(4250801, "incSTR", 3),
(4250802, "incSTR", 5),
(4250900, "incINT", 2),
(4250901, "incINT", 3),
(4250902, "incINT", 5),
(4251000, "incLUK", 2),
(4251001, "incLUK", 3),
(4251002, "incLUK", 5),
(4251100, "incDEX", 2),
(4251101, "incDEX", 3),
(4251102, "incDEX", 5),
(4251200, "incReqLevel", -1),
(4251201, "incReqLevel", -2),
(4251202, "incReqLevel", -3),
(4251300, "randOption", 1),
(4251301, "randOption", 2),
(4251302, "randOption", 3),
(4251400, "randStat", 2),
(4251401, "randStat", 3),
(4251402, "randStat", 5);

View File

@@ -0,0 +1,344 @@
INSERT INTO monstercarddata (cardid, mobid)
VALUES (2380000, 100100),
(2380001, 100101),
(2380015, 100130),
(2380016, 100131),
(2380017, 100132),
(2380018, 100133),
(2380019, 100134),
(2380002, 120100),
(2380003, 130100),
(2380004, 130101),
(2380005, 210100),
(2380011, 1110100),
(2380008, 1110101),
(2380014, 1110130),
(2380010, 1120100),
(2381000, 1130100),
(2381001, 1140100),
(2381082, 1140130),
(2380006, 1210100),
(2380009, 1210101),
(2380007, 1210102),
(2380012, 1210103),
(2381004, 2100100),
(2381005, 2100101),
(2381010, 2100102),
(2381023, 2100103),
(2381028, 2100104),
(2381015, 2100105),
(2381019, 2100106),
(2381025, 2100107),
(2381030, 2100108),
(2381007, 2110200),
(2381020, 2110300),
(2381031, 2110301),
(2381008, 2130100),
(2381006, 2130103),
(2388000, 2220000),
(2381002, 2220100),
(2381024, 2230100),
(2381016, 2230101),
(2381022, 2230102),
(2381011, 2230103),
(2381027, 2230104),
(2381013, 2230105),
(2381021, 2230106),
(2381017, 2230107),
(2381009, 2230108),
(2381026, 2230109),
(2381014, 2230110),
(2381018, 2230111),
(2381083, 2230131),
(2381029, 2230200),
(2381003, 2300100),
(2381032, 3000000),
(2381033, 3000001),
(2381034, 3000005),
(2381035, 3000006),
(2382008, 3100101),
(2381036, 3100102),
(2382002, 3110100),
(2382004, 3110101),
(2382005, 3110102),
(2382009, 3110300),
(2382010, 3110301),
(2382024, 3110302),
(2382036, 3110303),
(2382003, 3210100),
(2382011, 3210200),
(2382012, 3210201),
(2382013, 3210202),
(2382025, 3210203),
(2382015, 3210204),
(2382016, 3210205),
(2382026, 3210206),
(2382017, 3210207),
(2382028, 3210208),
(2382027, 3210450),
(2382029, 3210800),
(2388025, 3220000),
(2388029, 3220001),
(2382018, 3230100),
(2382019, 3230101),
(2382030, 3230102),
(2382033, 3230103),
(2382007, 3230104),
(2382020, 3230200),
(2382021, 3230300),
(2382022, 3230302),
(2382031, 3230303),
(2382034, 3230304),
(2382038, 3230305),
(2382032, 3230306),
(2382000, 3230307),
(2382037, 3230308),
(2382001, 3230400),
(2382035, 3230405),
(2382092, 3300000),
(2382093, 3300001),
(2382094, 3300002),
(2382095, 3300003),
(2382096, 3300004),
(2388067, 3300005),
(2388068, 3300006),
(2388069, 3300007),
(2388070, 3300008),
(2382057, 4110300),
(2382072, 4110301),
(2383007, 4110302),
(2382065, 4130100),
(2383001, 4130101),
(2383003, 4130102),
(2383004, 4130103),
(2388030, 4220000),
(2382039, 4230100),
(2382040, 4230101),
(2383008, 4230102),
(2382053, 4230103),
(2383009, 4230104),
(2382052, 4230105),
(2382064, 4230106),
(2382047, 4230107),
(2382058, 4230108),
(2382054, 4230109),
(2382066, 4230110),
(2382048, 4230111),
(2382062, 4230112),
(2382041, 4230113),
(2382049, 4230114),
(2383002, 4230115),
(2382042, 4230116),
(2382055, 4230117),
(2382067, 4230118),
(2382050, 4230119),
(2382061, 4230120),
(2383000, 4230121),
(2382059, 4230123),
(2382056, 4230124),
(2382063, 4230125),
(2383005, 4230126),
(2382043, 4230200),
(2382044, 4230201),
(2382068, 4230300),
(2382069, 4230400),
(2382045, 4230500),
(2382051, 4230501),
(2382060, 4230502),
(2382070, 4230503),
(2382071, 4230504),
(2383006, 4230505),
(2383010, 4230506),
(2382046, 4230600),
(2383011, 4240000),
(2382076, 4250000),
(2383056, 4250001),
(2383048, 5090000),
(2383049, 5090001),
(2383013, 5100000),
(2383017, 5100002),
(2383014, 5100003),
(2383034, 5100004),
(2383024, 5100005),
(2383016, 5110300),
(2383028, 5110301),
(2383042, 5110302),
(2383020, 5120000),
(2383021, 5120001),
(2383022, 5120002),
(2383023, 5120003),
(2383026, 5120100),
(2383035, 5120500),
(2383025, 5120501),
(2383027, 5120502),
(2383015, 5120503),
(2383018, 5120504),
(2383041, 5120505),
(2383032, 5120506),
(2383012, 5130100),
(2383030, 5130101),
(2383039, 5130102),
(2383019, 5130103),
(2383031, 5130104),
(2383033, 5130105),
(2383037, 5130107),
(2383038, 5130108),
(2383040, 5140000),
(2383043, 5150000),
(2383036, 5150001),
(2381012, 5200000),
(2381037, 5200001),
(2381038, 5200002),
(2388003, 5220000),
(2388002, 5220002),
(2388005, 5220003),
(2388052, 5220004),
(2383057, 5250000),
(2383059, 5250001),
(2383058, 5250002),
(2382006, 5300000),
(2382014, 5300001),
(2383029, 5300100),
(2382023, 5400000),
(2384010, 6090000),
(2384037, 6090001),
(2384039, 6090003),
(2384040, 6090004),
(2384011, 6110300),
(2384018, 6110301),
(2383044, 6130100),
(2388006, 6130101),
(2383045, 6130102),
(2384000, 6130200),
(2383046, 6130202),
(2383047, 6130203),
(2384008, 6130204),
(2384002, 6130207),
(2384017, 6130208),
(2384013, 6130209),
(2388007, 6220000),
(2388031, 6220001),
(2384001, 6230100),
(2384007, 6230200),
(2384012, 6230300),
(2384004, 6230400),
(2384005, 6230401),
(2384014, 6230500),
(2384006, 6230600),
(2384015, 6230601),
(2384003, 6230602),
(2384009, 6300000),
(2388008, 6300005),
(2384032, 6300100),
(2384016, 6400000),
(2388017, 6400006),
(2388026, 6400008),
(2385003, 6400100),
(2384038, 7090000),
(2384034, 7110300),
(2384031, 7110301),
(2384030, 7130000),
(2384026, 7130001),
(2384027, 7130002),
(2385001, 7130003),
(2385005, 7130004),
(2385012, 7130010),
(2385013, 7130020),
(2384020, 7130100),
(2384036, 7130101),
(2385004, 7130102),
(2384029, 7130103),
(2384025, 7130104),
(2384035, 7130200),
(2385020, 7130300),
(2384021, 7130400),
(2384022, 7130401),
(2384023, 7130402),
(2384024, 7130500),
(2384033, 7130501),
(2384028, 7130600),
(2385002, 7130601),
(2385010, 7140000),
(2385015, 7160000),
(2388010, 7220000),
(2388009, 7220001),
(2388013, 7220002),
(2385023, 8090000),
(2385008, 8110300),
(2385006, 8140000),
(2385007, 8140001),
(2385011, 8140002),
(2385009, 8140100),
(2385016, 8140101),
(2385017, 8140102),
(2385018, 8140103),
(2385014, 8140110),
(2385019, 8140111),
(2384019, 8140200),
(2385000, 8140300),
(2385021, 8140500),
(2386000, 8140600),
(2385022, 8140700),
(2386001, 8140701),
(2386005, 8140702),
(2386006, 8140703),
(2386002, 8141000),
(2386009, 8141100),
(2386003, 8141300),
(2386004, 8142000),
(2386007, 8142100),
(2386010, 8143000),
(2386012, 8150100),
(2386014, 8150101),
(2386011, 8150200),
(2386016, 8150201),
(2386008, 8150300),
(2386013, 8150301),
(2386015, 8150302),
(2387000, 8160000),
(2387001, 8170000),
(2388018, 8180000),
(2388019, 8180001),
(2386017, 8190000),
(2387004, 8190002),
(2387002, 8190003),
(2387003, 8190004),
(2385025, 8200000),
(2386021, 8200001),
(2386022, 8200002),
(2386023, 8200003),
(2386024, 8200004),
(2387006, 8200005),
(2387007, 8200006),
(2387008, 8200007),
(2387009, 8200008),
(2387010, 8200009),
(2387011, 8200010),
(2387012, 8200011),
(2387013, 8200012),
(2388015, 8220000),
(2388016, 8220001),
(2388032, 8220002),
(2388033, 8220003),
(2388040, 8220004),
(2388041, 8220005),
(2388042, 8220006),
(2388053, 8220007),
(2388054, 8220009),
(2388022, 8500002),
(2388020, 8510000),
(2388023, 8800002),
(2388024, 8810018),
(2388043, 8820001),
(2388055, 8830000),
(2388001, 9300003),
(2388004, 9300012),
(2388021, 9300028),
(2388012, 9300039),
(2388011, 9300105),
(2388014, 9300139),
(2388039, 9300182),
(2388046, 9300215),
(2380013, 9300274),
(2388028, 9500317),
(2388027, 9500320);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
INSERT INTO specialcashitems (id, sn, modifier, info)
VALUES (1, 10000617, 1024, 1);

View File

@@ -0,0 +1,41 @@
INSERT INTO nxcoupons (couponid, rate, activeday, starthour, endhour)
VALUES (211000, 2, 254, 18, 20),
(211004, 2, 124, 7, 11),
(211005, 2, 124, 10, 14),
(211006, 2, 124, 13, 17),
(211007, 2, 124, 16, 20),
(211008, 2, 124, 19, 23),
(211009, 2, 130, 7, 11),
(211010, 2, 130, 10, 14),
(211011, 2, 130, 13, 17),
(5211012, 2, 130, 16, 20),
(5211013, 2, 130, 19, 23),
(5211014, 2, 254, 7, 11),
(5211015, 2, 254, 10, 14),
(5211016, 2, 254, 13, 17),
(5211017, 2, 254, 16, 20),
(5211018, 2, 254, 19, 23),
(5211037, 2, 124, 0, 4),
(5211038, 2, 130, 0, 4),
(5211039, 2, 254, 0, 4),
(5211040, 2, 124, 3, 7),
(5211041, 2, 130, 3, 7),
(5211042, 2, 254, 3, 7),
(5211043, 2, 124, 6, 10),
(5211044, 2, 130, 6, 10),
(5211045, 2, 254, 6, 10),
(5211046, 2, 254, 0, 24),
(5211048, 2, 254, 0, 24),
(5211049, 2, 254, 0, 24),
(5211052, 3, 255, 0, 24),
(5211060, 3, 255, 0, 24),
(5360000, 2, 254, 0, 24),
(5360001, 2, 254, 7, 11),
(5360002, 2, 254, 10, 14),
(5360003, 2, 254, 13, 17),
(5360004, 2, 254, 16, 20),
(5360005, 2, 254, 19, 23),
(5360006, 2, 254, 0, 4),
(5360007, 2, 254, 3, 7),
(5360008, 2, 254, 6, 10),
(5360042, 2, 254, 0, 24);

View File

@@ -0,0 +1,6 @@
INSERT INTO drop_data_global (continent, itemid, minimum_quantity, maximum_quantity, questid, chance, comments)
VALUES (-1, 4031865, 1, 1, 0, 2000, 'NX Card 100 PTS'),
(-1, 4031866, 1, 1, 0, 500, 'NX Card 250 PTS'),
(-1, 4001126, 1, 2, 0, 500, 'Maple Leaf'),
(-1, 2049100, 1, 1, 0, 50, 'Chaos Scroll 60%'),
(-1, 2340000, 1, 1, 0, 50, 'White Scroll');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,97 @@
INSERT INTO accounts (`name`, password, pin, pic, birthday, nxcredit, maplepoint, nxprepaid, characterslots, gender,
tos)
VALUES ('admin', '$2y$12$aFD9BDeUocDMY1X4tDYDyeJw/HhkQwCQWs3KAY7gCaRG0cpqJcaL.', '0000', '000000',
'2005-05-11', 1000000, 1000000, 1000000, 3, 0, 1);
INSERT INTO characters (accountid, world, `name`, level, exp,
str, dex, luk, `int`, hp, mp, maxhp, maxmp, meso, job, skincolor, gender,
hair, face, ap, map, spawnpoint, gm, equipslots, useslots,
setupslots, etcslots)
VALUES ((SELECT id FROM accounts WHERE `name` = 'admin'), 0, 'Admin', 1, 0,
12, 5, 4, 4, 50, 5, 50, 5, 100000000, 0, 0, 0,
30030, 20000, 500, 10000, 2, 6, 96, 96,
96, 96);
INSERT INTO inventoryitems (type, characterid, itemid, inventorytype,
position, quantity, owner, flag, giftFrom)
VALUES (1, (SELECT id FROM characters WHERE `name` = 'Admin'), 4161001, 4,
1, 1, '', 0, ''),
(1, (SELECT id FROM characters WHERE `name` = 'Admin'), 1040002, -1,
-5, 1, '', 0, ''),
(1, (SELECT id FROM characters WHERE `name` = 'Admin'), 1060002, -1,
-6, 1, '', 0, ''),
(1, (SELECT id FROM characters WHERE `name` = 'Admin'), 1072001, -1,
-7, 1, '', 0, ''),
(1, (SELECT id FROM characters WHERE `name` = 'Admin'), 1302000, -1,
-11, 1, '', 0, '');
INSERT INTO inventoryequipment (inventoryitemid, upgradeslots, watk, wdef)
VALUES ((SELECT inventoryitemid
FROM inventoryitems ii
INNER JOIN characters chr ON chr.id = ii.characterid
WHERE itemid = 1040002
AND position = -5
AND chr.`name` = 'Admin'), 7, 0, 3),
((SELECT inventoryitemid
FROM inventoryitems ii
INNER JOIN characters chr ON chr.id = ii.characterid
WHERE itemid = 1060002
AND position = -6
AND chr.`name` = 'Admin'), 7, 0, 2),
((SELECT inventoryitemid
FROM inventoryitems ii
INNER JOIN characters chr ON chr.id = ii.characterid
WHERE itemid = 1072001
AND position = -7
AND chr.`name` = 'Admin'), 5, 0, 2),
((SELECT inventoryitemid
FROM inventoryitems ii
INNER JOIN characters chr ON chr.id = ii.characterid
WHERE itemid = 1302000
AND position = -11
AND chr.`name` = 'Admin'), 7, 17, 0);
INSERT INTO keymap (characterid, `key`, type, action)
VALUES ((SELECT id FROM characters WHERE `name` = 'Admin'),18,4,0),
((SELECT id FROM characters WHERE `name` = 'Admin'),65,6,106),
((SELECT id FROM characters WHERE `name` = 'Admin'),2,4,10),
((SELECT id FROM characters WHERE `name` = 'Admin'),23,4,1),
((SELECT id FROM characters WHERE `name` = 'Admin'),3,4,12),
((SELECT id FROM characters WHERE `name` = 'Admin'),4,4,13),
((SELECT id FROM characters WHERE `name` = 'Admin'),5,4,18),
((SELECT id FROM characters WHERE `name` = 'Admin'),6,4,24),
((SELECT id FROM characters WHERE `name` = 'Admin'),16,4,8),
((SELECT id FROM characters WHERE `name` = 'Admin'),17,4,5),
((SELECT id FROM characters WHERE `name` = 'Admin'),19,4,4),
((SELECT id FROM characters WHERE `name` = 'Admin'),25,4,19),
((SELECT id FROM characters WHERE `name` = 'Admin'),26,4,14),
((SELECT id FROM characters WHERE `name` = 'Admin'),27,4,15),
((SELECT id FROM characters WHERE `name` = 'Admin'),31,4,2),
((SELECT id FROM characters WHERE `name` = 'Admin'),34,4,17),
((SELECT id FROM characters WHERE `name` = 'Admin'),35,4,11),
((SELECT id FROM characters WHERE `name` = 'Admin'),37,4,3),
((SELECT id FROM characters WHERE `name` = 'Admin'),38,4,20),
((SELECT id FROM characters WHERE `name` = 'Admin'),40,4,16),
((SELECT id FROM characters WHERE `name` = 'Admin'),43,4,9),
((SELECT id FROM characters WHERE `name` = 'Admin'),44,5,50),
((SELECT id FROM characters WHERE `name` = 'Admin'),45,5,51),
((SELECT id FROM characters WHERE `name` = 'Admin'),46,4,6),
((SELECT id FROM characters WHERE `name` = 'Admin'),50,4,7),
((SELECT id FROM characters WHERE `name` = 'Admin'),56,5,53),
((SELECT id FROM characters WHERE `name` = 'Admin'),59,6,100),
((SELECT id FROM characters WHERE `name` = 'Admin'),60,6,101),
((SELECT id FROM characters WHERE `name` = 'Admin'),61,6,102),
((SELECT id FROM characters WHERE `name` = 'Admin'),62,6,103),
((SELECT id FROM characters WHERE `name` = 'Admin'),63,6,104),
((SELECT id FROM characters WHERE `name` = 'Admin'),64,6,105),
((SELECT id FROM characters WHERE `name` = 'Admin'),57,5,54),
((SELECT id FROM characters WHERE `name` = 'Admin'),48,4,22),
((SELECT id FROM characters WHERE `name` = 'Admin'),29,5,52),
((SELECT id FROM characters WHERE `name` = 'Admin'),7,4,21),
((SELECT id FROM characters WHERE `name` = 'Admin'),24,4,25),
((SELECT id FROM characters WHERE `name` = 'Admin'),33,4,26),
((SELECT id FROM characters WHERE `name` = 'Admin'),41,4,23),
((SELECT id FROM characters WHERE `name` = 'Admin'),39,4,27);
INSERT INTO storages (accountid, world, slots, meso)
VALUES ((SELECT id FROM accounts WHERE `name` = 'admin'),0, 24,1000000000);

View File

@@ -0,0 +1,38 @@
CREATE TABLE accounts
(
id INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(13) NOT NULL DEFAULT '',
password VARCHAR(128) NOT NULL DEFAULT '',
pin VARCHAR(10) NOT NULL DEFAULT '',
pic VARCHAR(26) NOT NULL DEFAULT '',
loggedin TINYINT NOT NULL DEFAULT '0',
lastlogin TIMESTAMP NULL DEFAULT NULL,
createdat TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
birthday DATE NOT NULL DEFAULT '2005-05-11',
banned TINYINT NOT NULL DEFAULT '0',
banreason TEXT,
macs TINYTEXT,
nxCredit INT DEFAULT NULL,
maplePoint INT DEFAULT NULL,
nxPrepaid INT DEFAULT NULL,
characterslots TINYINT NOT NULL DEFAULT '3',
gender TINYINT NOT NULL DEFAULT '10',
tempban TIMESTAMP NOT NULL DEFAULT '2005-05-11 00:00:00',
greason TINYINT NOT NULL DEFAULT '0',
tos TINYINT NOT NULL DEFAULT '0',
sitelogged TEXT,
webadmin INT DEFAULT '0',
nick VARCHAR(20) DEFAULT NULL,
mute INT DEFAULT '0',
email VARCHAR(45) DEFAULT NULL,
ip TEXT,
rewardpoints INT NOT NULL DEFAULT '0',
votepoints INT NOT NULL DEFAULT '0',
hwid VARCHAR(12) NOT NULL DEFAULT '',
language INT NOT NULL DEFAULT '2',
PRIMARY KEY (id),
UNIQUE KEY `name` (`name`),
KEY ranking1 (id, banned),
INDEX (id, `name`),
INDEX (id, nxCredit, maplePoint, nxPrepaid)
);

View File

@@ -0,0 +1,84 @@
CREATE TABLE characters
(
id INT NOT NULL AUTO_INCREMENT,
accountid INT NOT NULL DEFAULT '0',
world INT NOT NULL DEFAULT '0',
`name` VARCHAR(13) NOT NULL DEFAULT '',
level INT NOT NULL DEFAULT '1',
exp INT NOT NULL DEFAULT '0',
gachaexp INT NOT NULL DEFAULT '0',
str INT NOT NULL DEFAULT '12',
dex INT NOT NULL DEFAULT '5',
luk INT NOT NULL DEFAULT '4',
`int` INT NOT NULL DEFAULT '4',
hp INT NOT NULL DEFAULT '50',
mp INT NOT NULL DEFAULT '5',
maxhp INT NOT NULL DEFAULT '50',
maxmp INT NOT NULL DEFAULT '5',
meso INT NOT NULL DEFAULT '0',
hpMpUsed INT UNSIGNED NOT NULL DEFAULT '0',
job INT NOT NULL DEFAULT '0',
skincolor INT NOT NULL DEFAULT '0',
gender INT NOT NULL DEFAULT '0',
fame INT NOT NULL DEFAULT '0',
fquest INT NOT NULL DEFAULT '0',
hair INT NOT NULL DEFAULT '0',
face INT NOT NULL DEFAULT '0',
ap INT NOT NULL DEFAULT '0',
sp VARCHAR(128) NOT NULL DEFAULT '0,0,0,0,0,0,0,0,0,0',
map INT NOT NULL DEFAULT '0',
spawnpoint INT NOT NULL DEFAULT '0',
gm TINYINT NOT NULL DEFAULT '0',
party INT NOT NULL DEFAULT '0',
buddyCapacity INT NOT NULL DEFAULT '25',
createdate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`rank` INT UNSIGNED NOT NULL DEFAULT '1',
rankMove INT NOT NULL DEFAULT '0',
jobRank INT UNSIGNED NOT NULL DEFAULT '1',
jobRankMove INT NOT NULL DEFAULT '0',
guildid INT UNSIGNED NOT NULL DEFAULT '0',
guildrank INT UNSIGNED NOT NULL DEFAULT '5',
messengerid INT UNSIGNED NOT NULL DEFAULT '0',
messengerposition INT UNSIGNED NOT NULL DEFAULT '4',
mountlevel INT NOT NULL DEFAULT '1',
mountexp INT NOT NULL DEFAULT '0',
mounttiredness INT NOT NULL DEFAULT '0',
omokwins INT NOT NULL DEFAULT '0',
omoklosses INT NOT NULL DEFAULT '0',
omokties INT NOT NULL DEFAULT '0',
matchcardwins INT NOT NULL DEFAULT '0',
matchcardlosses INT NOT NULL DEFAULT '0',
matchcardties INT NOT NULL DEFAULT '0',
MerchantMesos INT DEFAULT '0',
HasMerchant TINYINT DEFAULT '0',
equipslots INT NOT NULL DEFAULT '24',
useslots INT NOT NULL DEFAULT '24',
setupslots INT NOT NULL DEFAULT '24',
etcslots INT NOT NULL DEFAULT '24',
familyId INT NOT NULL DEFAULT '-1',
monsterbookcover INT NOT NULL DEFAULT '0',
allianceRank INT NOT NULL DEFAULT '5',
vanquisherStage INT UNSIGNED NOT NULL DEFAULT '0',
ariantPoints INT UNSIGNED NOT NULL DEFAULT '0',
dojoPoints INT UNSIGNED NOT NULL DEFAULT '0',
lastDojoStage INT UNSIGNED NOT NULL DEFAULT '0',
finishedDojoTutorial TINYINT UNSIGNED NOT NULL DEFAULT '0',
vanquisherKills INT UNSIGNED NOT NULL DEFAULT '0',
summonValue INT UNSIGNED NOT NULL DEFAULT '0',
partnerId INT NOT NULL DEFAULT '0',
marriageItemId INT NOT NULL DEFAULT '0',
reborns INT NOT NULL DEFAULT '0',
PQPoints INT NOT NULL DEFAULT '0',
dataString VARCHAR(64) NOT NULL DEFAULT '',
lastLogoutTime TIMESTAMP NOT NULL DEFAULT '2015-01-01 05:00:00',
lastExpGainTime TIMESTAMP NOT NULL DEFAULT '2015-01-01 05:00:00',
partySearch TINYINT NOT NULL DEFAULT '1',
jailexpire BIGINT NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY accountid (accountid),
KEY party (party),
KEY ranking1 (`level`, exp),
KEY ranking2 (gm, job),
INDEX (id, accountid, world),
INDEX (id, accountid, `name`)
);

View File

@@ -0,0 +1,58 @@
CREATE TABLE inventoryitems
(
inventoryitemid INT UNSIGNED NOT NULL AUTO_INCREMENT,
type TINYINT UNSIGNED NOT NULL,
characterid INT DEFAULT NULL,
accountid INT DEFAULT NULL,
itemid INT NOT NULL DEFAULT '0',
inventorytype INT NOT NULL DEFAULT '0',
position INT NOT NULL DEFAULT '0',
quantity INT NOT NULL DEFAULT '0',
owner TINYTEXT NOT NULL,
petid INT NOT NULL DEFAULT '-1',
flag INT NOT NULL,
expiration BIGINT NOT NULL DEFAULT '-1',
giftFrom VARCHAR(26) NOT NULL,
PRIMARY KEY (inventoryitemid),
KEY CHARID (characterid)
);
CREATE TABLE inventoryequipment
(
inventoryequipmentid INT UNSIGNED NOT NULL AUTO_INCREMENT,
inventoryitemid INT UNSIGNED NOT NULL DEFAULT '0',
upgradeslots INT NOT NULL DEFAULT '0',
level INT NOT NULL DEFAULT '0',
str INT NOT NULL DEFAULT '0',
dex INT NOT NULL DEFAULT '0',
`int` INT NOT NULL DEFAULT '0',
luk INT NOT NULL DEFAULT '0',
hp INT NOT NULL DEFAULT '0',
mp INT NOT NULL DEFAULT '0',
watk INT NOT NULL DEFAULT '0',
matk INT NOT NULL DEFAULT '0',
wdef INT NOT NULL DEFAULT '0',
mdef INT NOT NULL DEFAULT '0',
acc INT NOT NULL DEFAULT '0',
avoid INT NOT NULL DEFAULT '0',
hands INT NOT NULL DEFAULT '0',
speed INT NOT NULL DEFAULT '0',
jump INT NOT NULL DEFAULT '0',
locked INT NOT NULL DEFAULT '0',
vicious INT UNSIGNED NOT NULL DEFAULT '0',
itemlevel INT NOT NULL DEFAULT '1',
itemexp INT UNSIGNED NOT NULL DEFAULT '0',
ringid INT NOT NULL DEFAULT '-1',
PRIMARY KEY (inventoryequipmentid),
KEY INVENTORYITEMID (inventoryitemid)
);
CREATE TABLE inventorymerchant
(
inventorymerchantid INT UNSIGNED NOT NULL AUTO_INCREMENT,
inventoryitemid INT UNSIGNED NOT NULL DEFAULT '0',
characterid INT DEFAULT NULL,
bundles INT NOT NULL DEFAULT '0',
PRIMARY KEY (inventorymerchantid),
KEY INVENTORYITEMID (inventoryitemid)
);

View File

@@ -0,0 +1,35 @@
CREATE TABLE skills
(
id INT NOT NULL AUTO_INCREMENT,
skillid INT NOT NULL DEFAULT '0',
characterid INT NOT NULL DEFAULT '0',
skilllevel INT NOT NULL DEFAULT '0',
masterlevel INT NOT NULL DEFAULT '0',
expiration BIGINT NOT NULL DEFAULT '-1',
PRIMARY KEY (id),
UNIQUE INDEX skillpair (skillid, characterid),
FOREIGN KEY (characterid) REFERENCES characters (id) ON DELETE CASCADE
);
CREATE TABLE cooldowns
(
id INT NOT NULL AUTO_INCREMENT,
charid INT NOT NULL,
SkillID INT NOT NULL,
length BIGINT UNSIGNED NOT NULL,
StartTime BIGINT UNSIGNED NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE skillmacros
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL DEFAULT '0',
position TINYINT NOT NULL DEFAULT '0',
skill1 INT NOT NULL DEFAULT '0',
skill2 INT NOT NULL DEFAULT '0',
skill3 INT NOT NULL DEFAULT '0',
name VARCHAR(13) DEFAULT NULL,
shout TINYINT NOT NULL DEFAULT '0',
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,20 @@
CREATE TABLE pets
(
petid INT UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(13) DEFAULT NULL,
level INT UNSIGNED NOT NULL,
closeness INT UNSIGNED NOT NULL,
fullness INT UNSIGNED NOT NULL,
summoned TINYINT NOT NULL DEFAULT '0',
flag INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (petid)
);
CREATE TABLE petignores
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
petid INT UNSIGNED NOT NULL,
itemid INT UNSIGNED NOT NULL,
PRIMARY KEY (id),
CONSTRAINT fk_petignorepetid FOREIGN KEY (petid) REFERENCES pets (petid) ON DELETE CASCADE # thanks Optimist for noticing queries over petid taking too long, shavit for pointing out an improvement using foreign key
);

View File

@@ -0,0 +1,68 @@
CREATE TABLE questactions
(
questactionid INT UNSIGNED NOT NULL AUTO_INCREMENT,
questid INT NOT NULL DEFAULT '0',
status INT NOT NULL DEFAULT '0',
data BLOB NOT NULL,
PRIMARY KEY (questactionid)
);
CREATE TABLE questprogress
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
queststatusid INT UNSIGNED NOT NULL DEFAULT '0',
progressid INT NOT NULL DEFAULT '0',
progress VARCHAR(15) CHARACTER SET latin1 COLLATE latin1_german1_ci NOT NULL DEFAULT '',
PRIMARY KEY (id)
);
CREATE TABLE questrequirements
(
questrequirementid INT UNSIGNED NOT NULL AUTO_INCREMENT,
questid INT NOT NULL DEFAULT '0',
status INT NOT NULL DEFAULT '0',
data BLOB NOT NULL,
PRIMARY KEY (questrequirementid)
);
CREATE TABLE queststatus
(
queststatusid INT UNSIGNED NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL DEFAULT '0',
quest INT NOT NULL DEFAULT '0',
status INT NOT NULL DEFAULT '0',
time INT NOT NULL DEFAULT '0',
expires BIGINT NOT NULL DEFAULT '0',
forfeited INT NOT NULL DEFAULT '0',
completed INT NOT NULL DEFAULT '0',
info TINYINT NOT NULL DEFAULT '0',
PRIMARY KEY (queststatusid)
);
CREATE TABLE area_info
(
id INT NOT NULL AUTO_INCREMENT,
charid INT NOT NULL,
area INT NOT NULL,
info VARCHAR(200) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE eventstats
(
characterid INT UNSIGNED NOT NULL,
name VARCHAR(11) NOT NULL DEFAULT '0' COMMENT '0',
info INT NOT NULL,
PRIMARY KEY (characterid)
);
CREATE TABLE medalmaps
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
queststatusid INT UNSIGNED NOT NULL,
mapid INT NOT NULL,
PRIMARY KEY (id),
KEY queststatusid (queststatusid)
);

View File

@@ -0,0 +1,69 @@
CREATE TABLE guilds
(
guildid INT UNSIGNED NOT NULL AUTO_INCREMENT,
leader INT UNSIGNED NOT NULL DEFAULT '0',
GP INT UNSIGNED NOT NULL DEFAULT '0',
logo INT UNSIGNED DEFAULT NULL,
logoColor SMALLINT UNSIGNED NOT NULL DEFAULT '0',
name VARCHAR(45) NOT NULL,
rank1title VARCHAR(45) NOT NULL DEFAULT 'Master',
rank2title VARCHAR(45) NOT NULL DEFAULT 'Jr. Master',
rank3title VARCHAR(45) NOT NULL DEFAULT 'Member',
rank4title VARCHAR(45) NOT NULL DEFAULT 'Member',
rank5title VARCHAR(45) NOT NULL DEFAULT 'Member',
capacity INT UNSIGNED NOT NULL DEFAULT '10',
logoBG INT UNSIGNED DEFAULT NULL,
logoBGColor SMALLINT UNSIGNED NOT NULL DEFAULT '0',
notice VARCHAR(101) DEFAULT NULL,
signature INT NOT NULL DEFAULT '0',
allianceId INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (guildid),
INDEX (guildid, name)
);
CREATE TABLE bbs_replies
(
replyid INT UNSIGNED NOT NULL AUTO_INCREMENT,
threadid INT UNSIGNED NOT NULL,
postercid INT UNSIGNED NOT NULL,
timestamp BIGINT UNSIGNED NOT NULL,
content VARCHAR(26) NOT NULL DEFAULT '',
PRIMARY KEY (replyid)
);
CREATE TABLE bbs_threads
(
threadid INT UNSIGNED NOT NULL AUTO_INCREMENT,
postercid INT UNSIGNED NOT NULL,
name VARCHAR(26) NOT NULL DEFAULT '',
timestamp BIGINT UNSIGNED NOT NULL,
icon SMALLINT UNSIGNED NOT NULL,
replycount SMALLINT UNSIGNED NOT NULL DEFAULT '0',
startpost TEXT NOT NULL,
guildid INT UNSIGNED NOT NULL,
localthreadid INT UNSIGNED NOT NULL,
PRIMARY KEY (threadid)
);
CREATE TABLE alliance
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(13) NOT NULL,
capacity INT UNSIGNED NOT NULL DEFAULT '2',
notice VARCHAR(20) NOT NULL DEFAULT '',
rank1 VARCHAR(11) NOT NULL DEFAULT 'Master',
rank2 VARCHAR(11) NOT NULL DEFAULT 'Jr. Master',
rank3 VARCHAR(11) NOT NULL DEFAULT 'Member',
rank4 VARCHAR(11) NOT NULL DEFAULT 'Member',
rank5 VARCHAR(11) NOT NULL DEFAULT 'Member',
PRIMARY KEY (id),
INDEX (name)
);
CREATE TABLE allianceguilds
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
allianceid INT NOT NULL DEFAULT '-1',
guildid INT NOT NULL DEFAULT '-1',
PRIMARY KEY (id)
)

View File

@@ -0,0 +1,17 @@
CREATE TABLE keymap
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL DEFAULT '0',
`key` INT NOT NULL DEFAULT '0',
type INT NOT NULL DEFAULT '0',
action INT NOT NULL DEFAULT '0',
PRIMARY KEY (id)
);
CREATE TABLE quickslotkeymapped
(
accountid INT NOT NULL,
keymap BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (accountid),
FOREIGN KEY (accountid) REFERENCES accounts (id) ON DELETE CASCADE
);

View File

@@ -0,0 +1,38 @@
CREATE TABLE drop_data
(
id BIGINT NOT NULL AUTO_INCREMENT,
dropperid INT NOT NULL,
itemid INT NOT NULL DEFAULT '0',
minimum_quantity INT NOT NULL DEFAULT '1',
maximum_quantity INT NOT NULL DEFAULT '1',
questid INT NOT NULL DEFAULT '0',
chance INT NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY mobid (dropperid),
INDEX (dropperid, itemid)
);
CREATE TABLE drop_data_global
(
id BIGINT NOT NULL AUTO_INCREMENT,
continent TINYINT NOT NULL DEFAULT '-1',
itemid INT NOT NULL DEFAULT '0',
minimum_quantity INT NOT NULL DEFAULT '1',
maximum_quantity INT NOT NULL DEFAULT '1',
questid INT NOT NULL DEFAULT '0',
chance INT NOT NULL DEFAULT '0',
comments VARCHAR(45) DEFAULT NULL,
PRIMARY KEY (id),
KEY mobid (continent) USING BTREE
);
CREATE TABLE reactordrops
(
reactordropid INT UNSIGNED NOT NULL AUTO_INCREMENT,
reactorid INT NOT NULL,
itemid INT NOT NULL,
chance INT NOT NULL,
questid INT NOT NULL DEFAULT '-1',
PRIMARY KEY (reactordropid),
KEY reactorid (reactorid)
);

View File

@@ -0,0 +1,19 @@
CREATE TABLE storages
(
storageid INT UNSIGNED NOT NULL AUTO_INCREMENT,
accountid INT NOT NULL DEFAULT '0',
world INT NOT NULL,
slots INT NOT NULL DEFAULT '0',
meso INT NOT NULL DEFAULT '0',
PRIMARY KEY (storageid)
);
CREATE TABLE fredstorage
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
cid INT UNSIGNED NOT NULL,
daynotes INT UNSIGNED NOT NULL,
timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY cid_2 (cid),
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,17 @@
CREATE TABLE shops
(
shopid INT UNSIGNED NOT NULL AUTO_INCREMENT,
npcid INT NOT NULL DEFAULT '0',
PRIMARY KEY (shopid)
);
CREATE TABLE shopitems
(
shopitemid INT UNSIGNED NOT NULL AUTO_INCREMENT,
shopid INT UNSIGNED NOT NULL,
itemid INT NOT NULL,
price INT NOT NULL,
pitch INT NOT NULL DEFAULT '0',
position INT NOT NULL COMMENT 'sort is an arbitrary field designed to give leeway when modifying shops. The lowest number is 104 and it increments by 4 for each item to allow decent space for swapping/inserting/removing items.',
PRIMARY KEY (shopitemid)
)

View File

@@ -0,0 +1,63 @@
CREATE TABLE playerdiseases
(
id INT NOT NULL AUTO_INCREMENT,
charid INT NOT NULL,
disease INT NOT NULL,
mobskillid INT NOT NULL,
mobskilllv INT NOT NULL,
length INT NOT NULL DEFAULT '1',
PRIMARY KEY (id)
);
CREATE TABLE buddies
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
buddyid INT NOT NULL,
pending TINYINT NOT NULL DEFAULT '0',
`group` VARCHAR(17) DEFAULT '0',
PRIMARY KEY (id)
);
CREATE TABLE savedlocations
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
locationtype ENUM ('FREE_MARKET','WORLDTOUR','FLORINA','INTRO','SUNDAY_MARKET','MIRROR','EVENT','BOSSPQ','HAPPYVILLE','DEVELOPER','MONSTER_CARNIVAL') NOT NULL,
map INT NOT NULL,
portal INT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE famelog
(
famelogid INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL DEFAULT '0',
characterid_to INT NOT NULL DEFAULT '0',
`when` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (famelogid),
KEY characterid (characterid),
FOREIGN KEY (characterid) REFERENCES characters (id) ON DELETE CASCADE
);
CREATE TABLE trocklocations
(
trockid INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
mapid INT NOT NULL,
vip INT NOT NULL,
PRIMARY KEY (trockid)
);
CREATE TABLE characterexplogs
(
id BIGINT NOT NULL AUTO_INCREMENT,
world_exp_rate INT,
exp_coupon INT,
gained_exp BIGINT,
current_exp INT,
exp_gain_time DATETIME,
charid INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (charid) REFERENCES characters (id) ON DELETE CASCADE
)

View File

@@ -0,0 +1,46 @@
CREATE TABLE wishlists
(
id INT NOT NULL AUTO_INCREMENT,
charid INT NOT NULL,
sn INT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE specialcashitems
(
id INT NOT NULL,
sn INT NOT NULL,
modifier INT NOT NULL COMMENT '1024 is add/remove',
info INT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE nxcode
(
id INT NOT NULL AUTO_INCREMENT,
code VARCHAR(17) NOT NULL UNIQUE,
retriever VARCHAR(13) DEFAULT NULL,
expiration BIGINT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (id)
);
CREATE TABLE nxcode_items
(
id INT NOT NULL AUTO_INCREMENT,
codeid INT NOT NULL,
type INT NOT NULL DEFAULT '5',
item INT NOT NULL DEFAULT '4000000',
quantity INT NOT NULL DEFAULT '1',
PRIMARY KEY (id)
);
CREATE TABLE nxcoupons
(
id INT NOT NULL AUTO_INCREMENT,
couponid INT NOT NULL DEFAULT '0',
rate INT NOT NULL DEFAULT '0',
activeday INT NOT NULL DEFAULT '0',
starthour INT NOT NULL DEFAULT '0',
endhour INT NOT NULL DEFAULT '0',
PRIMARY KEY (id)
)

View File

@@ -0,0 +1,38 @@
CREATE TABLE gifts
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
`to` INT NOT NULL,
`from` VARCHAR(13) NOT NULL,
message TINYTEXT NOT NULL,
sn INT UNSIGNED NOT NULL,
ringid INT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE notes
(
id INT NOT NULL AUTO_INCREMENT,
`to` VARCHAR(13) NOT NULL DEFAULT '',
`from` VARCHAR(13) NOT NULL DEFAULT '',
message TEXT NOT NULL,
timestamp BIGINT UNSIGNED NOT NULL,
fame INT NOT NULL DEFAULT '0',
deleted INT NOT NULL DEFAULT '0',
PRIMARY KEY (id)
);
CREATE TABLE newyear
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
senderid INT NOT NULL DEFAULT '-1',
sendername VARCHAR(13) DEFAULT '',
receiverid INT NOT NULL DEFAULT '-1',
receivername VARCHAR(13) DEFAULT '',
message VARCHAR(120) DEFAULT '',
senderdiscard TINYINT NOT NULL DEFAULT '0',
receiverdiscard TINYINT NOT NULL DEFAULT '0',
received TINYINT NOT NULL DEFAULT '0',
timesent BIGINT UNSIGNED NOT NULL,
timereceived BIGINT UNSIGNED NOT NULL,
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,17 @@
CREATE TABLE marriages
(
marriageid INT UNSIGNED NOT NULL AUTO_INCREMENT,
husbandid INT UNSIGNED NOT NULL DEFAULT '0',
wifeid INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (marriageid)
);
CREATE TABLE rings
(
id INT NOT NULL AUTO_INCREMENT,
partnerRingId INT NOT NULL DEFAULT '0',
partnerChrId INT NOT NULL DEFAULT '0',
itemid INT NOT NULL DEFAULT '0',
partnername VARCHAR(255) NOT NULL,
PRIMARY KEY (id) USING BTREE
);

View File

@@ -0,0 +1,17 @@
CREATE TABLE monsterbook
(
charid INT NOT NULL,
cardid INT NOT NULL,
level INT NOT NULL DEFAULT '1',
PRIMARY KEY (charid, cardid),
FOREIGN KEY (charid) REFERENCES characters (id) ON UPDATE CASCADE ON DELETE CASCADE
);
CREATE TABLE monstercarddata
(
id INT NOT NULL AUTO_INCREMENT,
cardid INT NOT NULL DEFAULT '0',
mobid INT NOT NULL DEFAULT '0',
PRIMARY KEY (id) USING BTREE,
UNIQUE KEY id (id)
);

View File

@@ -0,0 +1,25 @@
CREATE TABLE family_character
(
cid INT NOT NULL,
familyid INT NOT NULL,
seniorid INT NOT NULL,
reputation INT NOT NULL DEFAULT '0',
todaysrep INT NOT NULL DEFAULT '0',
totalreputation INT NOT NULL DEFAULT '0',
reptosenior INT NOT NULL DEFAULT '0',
precepts VARCHAR(200) DEFAULT NULL,
lastresettime BIGINT NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
INDEX (cid, familyid),
FOREIGN KEY (cid) REFERENCES characters (`id`) ON DELETE CASCADE
);
CREATE TABLE family_entitlement
(
id INT NOT NULL AUTO_INCREMENT,
charid INT NOT NULL,
entitlementid INT NOT NULL,
timestamp BIGINT NOT NULL DEFAULT '0',
PRIMARY KEY (id),
INDEX (charid)
);

View File

@@ -0,0 +1,23 @@
CREATE TABLE namechanges
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
old VARCHAR(13) NOT NULL,
new VARCHAR(13) NOT NULL,
requestTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
completionTime TIMESTAMP NULL,
PRIMARY KEY (id),
INDEX (characterid)
);
CREATE TABLE worldtransfers
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
`from` TINYINT NOT NULL,
`to` TINYINT NOT NULL,
requestTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
completionTime TIMESTAMP NULL,
PRIMARY KEY (id),
INDEX (characterid)
);

View File

@@ -0,0 +1,52 @@
CREATE TABLE mts_cart
(
id INT NOT NULL AUTO_INCREMENT,
cid INT NOT NULL,
itemid INT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE mts_items
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
tab INT NOT NULL DEFAULT '0',
type INT NOT NULL DEFAULT '0',
itemid INT UNSIGNED NOT NULL DEFAULT '0',
quantity INT NOT NULL DEFAULT '1',
seller INT NOT NULL DEFAULT '0',
price INT NOT NULL DEFAULT '0',
bid_incre INT DEFAULT '0',
buy_now INT DEFAULT '0',
position INT DEFAULT '0',
upgradeslots INT DEFAULT '0',
level INT DEFAULT '0',
itemlevel INT NOT NULL DEFAULT '1',
itemexp INT UNSIGNED NOT NULL DEFAULT '0',
ringid INT NOT NULL DEFAULT '-1',
str INT DEFAULT '0',
dex INT DEFAULT '0',
`int` INT DEFAULT '0',
luk INT DEFAULT '0',
hp INT DEFAULT '0',
mp INT DEFAULT '0',
watk INT DEFAULT '0',
matk INT DEFAULT '0',
wdef INT DEFAULT '0',
mdef INT DEFAULT '0',
acc INT DEFAULT '0',
avoid INT DEFAULT '0',
hands INT DEFAULT '0',
speed INT DEFAULT '0',
jump INT DEFAULT '0',
locked INT DEFAULT '0',
isequip INT DEFAULT '0',
owner VARCHAR(16) DEFAULT '',
sellername VARCHAR(16) NOT NULL,
sell_ends VARCHAR(16) NOT NULL,
transfer INT DEFAULT '0',
vicious INT UNSIGNED NOT NULL DEFAULT '0',
flag INT UNSIGNED NOT NULL DEFAULT '0',
expiration BIGINT NOT NULL DEFAULT '-1',
giftFrom VARCHAR(26) NOT NULL,
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,39 @@
CREATE TABLE makercreatedata
(
id TINYINT UNSIGNED NOT NULL,
itemid INT NOT NULL,
req_level TINYINT UNSIGNED NOT NULL,
req_maker_level TINYINT UNSIGNED NOT NULL,
req_meso INT NOT NULL,
req_item INT NOT NULL,
req_equip INT NOT NULL,
catalyst INT NOT NULL,
quantity SMALLINT NOT NULL,
tuc TINYINT NOT NULL,
PRIMARY KEY (id, itemid)
);
CREATE TABLE makerrecipedata
(
itemid INT NOT NULL,
req_item INT NOT NULL,
count SMALLINT NOT NULL,
PRIMARY KEY (itemid, req_item)
);
CREATE TABLE makerrewarddata
(
itemid INT NOT NULL,
rewardid INT NOT NULL,
quantity SMALLINT NOT NULL,
prob TINYINT UNSIGNED NOT NULL DEFAULT '100',
PRIMARY KEY (itemid, rewardid)
);
CREATE TABLE makerreagentdata
(
itemid INT NOT NULL,
stat VARCHAR(20) NOT NULL,
value SMALLINT NOT NULL,
PRIMARY KEY (itemid)
);

View File

@@ -0,0 +1,63 @@
CREATE TABLE playernpcs
(
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(13) NOT NULL,
hair INT NOT NULL,
face INT NOT NULL,
skin INT NOT NULL,
gender INT NOT NULL DEFAULT '0',
x INT NOT NULL,
cy INT NOT NULL DEFAULT '0',
world INT NOT NULL DEFAULT '0',
map INT NOT NULL DEFAULT '0',
dir INT NOT NULL DEFAULT '0',
scriptid INT UNSIGNED NOT NULL DEFAULT '0',
fh INT NOT NULL DEFAULT '0',
rx0 INT NOT NULL DEFAULT '0',
rx1 INT NOT NULL DEFAULT '0',
worldrank INT NOT NULL DEFAULT '0',
overallrank INT NOT NULL DEFAULT '0',
worldjobrank INT NOT NULL DEFAULT '0',
job INT NOT NULL DEFAULT '0',
PRIMARY KEY (id) USING BTREE
);
CREATE TABLE playernpcs_equip
(
id INT NOT NULL AUTO_INCREMENT,
npcid INT NOT NULL DEFAULT '0',
equipid INT NOT NULL,
type INT NOT NULL DEFAULT '0',
equippos INT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE playernpcs_field
(
id INT NOT NULL AUTO_INCREMENT,
world INT NOT NULL,
map INT NOT NULL,
step TINYINT NOT NULL DEFAULT '0',
podium SMALLINT NOT NULL DEFAULT '0',
PRIMARY KEY (id)
);
CREATE TABLE plife
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
world INT NOT NULL DEFAULT '-1',
map INT NOT NULL DEFAULT '0',
life INT NOT NULL DEFAULT '0',
type VARCHAR(1) NOT NULL DEFAULT 'n',
cy INT NOT NULL DEFAULT '0',
f INT NOT NULL DEFAULT '0',
fh INT NOT NULL DEFAULT '0',
rx0 INT NOT NULL DEFAULT '0',
rx1 INT NOT NULL DEFAULT '0',
x INT NOT NULL DEFAULT '0',
y INT NOT NULL DEFAULT '0',
hide INT NOT NULL DEFAULT '0',
mobtime INT NOT NULL DEFAULT '0',
team INT NOT NULL DEFAULT '0',
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,52 @@
CREATE TABLE hwidaccounts
(
accountid INT NOT NULL DEFAULT '0',
hwid VARCHAR(40) NOT NULL DEFAULT '',
relevance TINYINT NOT NULL DEFAULT '0',
expiresat TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (accountid, hwid)
);
CREATE TABLE hwidbans
(
hwidbanid INT UNSIGNED NOT NULL AUTO_INCREMENT,
hwid VARCHAR(30) NOT NULL,
PRIMARY KEY (hwidbanid),
UNIQUE KEY hwid_2 (hwid)
);
CREATE TABLE ipbans
(
ipbanid INT UNSIGNED NOT NULL AUTO_INCREMENT,
ip VARCHAR(40) NOT NULL DEFAULT '',
aid VARCHAR(40) DEFAULT NULL,
PRIMARY KEY (ipbanid)
);
CREATE TABLE macbans
(
macbanid INT UNSIGNED NOT NULL AUTO_INCREMENT,
mac VARCHAR(30) NOT NULL,
aid VARCHAR(40) DEFAULT NULL,
PRIMARY KEY (macbanid),
UNIQUE KEY mac_2 (mac)
);
CREATE TABLE macfilters
(
macfilterid INT UNSIGNED NOT NULL AUTO_INCREMENT,
filter VARCHAR(30) NOT NULL,
PRIMARY KEY (macfilterid)
);
CREATE TABLE reports
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
reporttime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
reporterid INT NOT NULL,
victimid INT NOT NULL,
reason TINYINT NOT NULL,
chatlog TEXT NOT NULL,
description TEXT NOT NULL,
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,17 @@
CREATE TABLE bosslog_daily
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
bosstype ENUM ('ZAKUM','HORNTAIL','PINKBEAN','SCARGA','PAPULATUS') NOT NULL,
attempttime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
);
CREATE TABLE bosslog_weekly
(
id INT NOT NULL AUTO_INCREMENT,
characterid INT NOT NULL,
bosstype ENUM ('ZAKUM','HORNTAIL','PINKBEAN','SCARGA','PAPULATUS') NOT NULL,
attempttime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
);

View File

@@ -0,0 +1,23 @@
CREATE TABLE dueypackages
(
PackageId INT UNSIGNED NOT NULL AUTO_INCREMENT,
ReceiverId INT UNSIGNED NOT NULL,
SenderName VARCHAR(13) NOT NULL,
Mesos INT UNSIGNED DEFAULT '0',
TimeStamp TIMESTAMP NOT NULL DEFAULT '2015-01-01 05:00:00',
Message VARCHAR(200) NULL,
Checked TINYINT UNSIGNED DEFAULT '1',
Type TINYINT UNSIGNED DEFAULT '0',
PRIMARY KEY (PackageId)
);
CREATE TABLE dueyitems
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
PackageId INT UNSIGNED NOT NULL DEFAULT '0',
inventoryitemid INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY INVENTORYITEMID (inventoryitemid),
KEY PackageId (PackageId),
FOREIGN KEY (PackageId) REFERENCES dueypackages (PackageId) ON DELETE CASCADE
);