Skip to content

Commit

Permalink
Ported npc config to libconfig
Browse files Browse the repository at this point in the history
Ported to modern Hercules and cleaned up from Panikon's commits: ca00958, 6d6adf9

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Aug 19, 2016
1 parent dc2130b commit 5b983fc
Show file tree
Hide file tree
Showing 23 changed files with 1,106 additions and 1,016 deletions.
126 changes: 63 additions & 63 deletions npc/pre-re/scripts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015 Hercules Dev Team
//= Copyright (C) 2012-2016 Hercules Dev Team
//= Copyright (C) Athena Dev Teams
//=
//= Hercules is free software: you can redistribute it and/or modify
Expand All @@ -29,84 +29,84 @@
//=========================================================================

//================= Airport ===============================================
npc: npc/pre-re/airports/izlude.txt
"npc/pre-re/airports/izlude.txt",

//================= Cities ================================================
npc: npc/pre-re/cities/alberta.txt
npc: npc/pre-re/cities/izlude.txt
npc: npc/pre-re/cities/jawaii.txt
npc: npc/pre-re/cities/yuno.txt
"npc/pre-re/cities/alberta.txt",
"npc/pre-re/cities/izlude.txt",
"npc/pre-re/cities/jawaii.txt",
"npc/pre-re/cities/yuno.txt",

//================= Guides ================================================
npc: npc/pre-re/guides/guides_alberta.txt
npc: npc/pre-re/guides/guides_aldebaran.txt
npc: npc/pre-re/guides/guides_amatsu.txt
npc: npc/pre-re/guides/guides_ayothaya.txt
npc: npc/pre-re/guides/guides_comodo.txt
npc: npc/pre-re/guides/guides_einbroch.txt
npc: npc/pre-re/guides/guides_geffen.txt
npc: npc/pre-re/guides/guides_gonryun.txt
npc: npc/pre-re/guides/guides_hugel.txt
npc: npc/pre-re/guides/guides_izlude.txt
npc: npc/pre-re/guides/guides_juno.txt
npc: npc/pre-re/guides/guides_lighthalzen.txt
npc: npc/pre-re/guides/guides_louyang.txt
npc: npc/pre-re/guides/guides_morroc.txt
npc: npc/pre-re/guides/guides_moscovia.txt
npc: npc/pre-re/guides/guides_niflheim.txt
npc: npc/pre-re/guides/guides_payon.txt
npc: npc/pre-re/guides/guides_prontera.txt
npc: npc/pre-re/guides/guides_rachel.txt
npc: npc/pre-re/guides/guides_umbala.txt
npc: npc/pre-re/guides/guides_veins.txt
"npc/pre-re/guides/guides_alberta.txt",
"npc/pre-re/guides/guides_aldebaran.txt",
"npc/pre-re/guides/guides_amatsu.txt",
"npc/pre-re/guides/guides_ayothaya.txt",
"npc/pre-re/guides/guides_comodo.txt",
"npc/pre-re/guides/guides_einbroch.txt",
"npc/pre-re/guides/guides_geffen.txt",
"npc/pre-re/guides/guides_gonryun.txt",
"npc/pre-re/guides/guides_hugel.txt",
"npc/pre-re/guides/guides_izlude.txt",
"npc/pre-re/guides/guides_juno.txt",
"npc/pre-re/guides/guides_lighthalzen.txt",
"npc/pre-re/guides/guides_louyang.txt",
"npc/pre-re/guides/guides_morroc.txt",
"npc/pre-re/guides/guides_moscovia.txt",
"npc/pre-re/guides/guides_niflheim.txt",
"npc/pre-re/guides/guides_payon.txt",
"npc/pre-re/guides/guides_prontera.txt",
"npc/pre-re/guides/guides_rachel.txt",
"npc/pre-re/guides/guides_umbala.txt",
"npc/pre-re/guides/guides_veins.txt",

//================= Kafras & Cool Event Corp. =============================
npc: npc/pre-re/kafras/kafras.txt
"npc/pre-re/kafras/kafras.txt",

//================= Merchants =============================================
npc: npc/pre-re/merchants/ammo_boxes.txt
npc: npc/pre-re/merchants/ammo_dealer.txt
npc: npc/pre-re/merchants/shops.txt
"npc/pre-re/merchants/ammo_boxes.txt",
"npc/pre-re/merchants/ammo_dealer.txt",
"npc/pre-re/merchants/shops.txt",

//================= Others ================================================
npc: npc/pre-re/other/bulletin_boards.txt
npc: npc/pre-re/other/mercenary_rent.txt
npc: npc/pre-re/other/pvp.txt
npc: npc/pre-re/other/msg_boards.txt
npc: npc/pre-re/other/resetskill.txt
npc: npc/pre-re/other/turbo_track.txt
"npc/pre-re/other/bulletin_boards.txt",
"npc/pre-re/other/mercenary_rent.txt",
"npc/pre-re/other/pvp.txt",
"npc/pre-re/other/msg_boards.txt",
"npc/pre-re/other/resetskill.txt",
"npc/pre-re/other/turbo_track.txt",

//================= Quests ================================================
// - Repeatable EXP Quests (iRO) --------------------------------
//npc: npc/pre-re/quests/collection/quest_alligator.txt
//npc: npc/pre-re/quests/collection/quest_caramel.txt
//"npc/pre-re/quests/collection/quest_alligator.txt",
//"npc/pre-re/quests/collection/quest_caramel.txt",
// - Exploitable due to vendor selling Acorns in Moscovia
//npc: npc/pre-re/quests/collection/quest_coco.txt
//npc: npc/pre-re/quests/collection/quest_creamy.txt
//npc: npc/pre-re/quests/collection/quest_demonpungus.txt
//npc: npc/pre-re/quests/collection/quest_disguiseloliruri.txt
//npc: npc/pre-re/quests/collection/quest_dokebi.txt
//npc: npc/pre-re/quests/collection/quest_dryad.txt
//npc: npc/pre-re/quests/collection/quest_fabre.txt
//npc: npc/pre-re/quests/collection/quest_frilldora.txt
//"npc/pre-re/quests/collection/quest_coco.txt",
//"npc/pre-re/quests/collection/quest_creamy.txt",
//"npc/pre-re/quests/collection/quest_demonpungus.txt",
//"npc/pre-re/quests/collection/quest_disguiseloliruri.txt",
//"npc/pre-re/quests/collection/quest_dokebi.txt",
//"npc/pre-re/quests/collection/quest_dryad.txt",
//"npc/pre-re/quests/collection/quest_fabre.txt",
//"npc/pre-re/quests/collection/quest_frilldora.txt",
// - Exploitable due to vendor selling Antelope Horns in Niflheim
//npc: npc/pre-re/quests/collection/quest_goat.txt
//npc: npc/pre-re/quests/collection/quest_golem.txt
//npc: npc/pre-re/quests/collection/quest_hode.txt
//npc: npc/pre-re/quests/collection/quest_leafcat.txt
//npc: npc/pre-re/quests/collection/quest_mantis.txt
//"npc/pre-re/quests/collection/quest_goat.txt",
//"npc/pre-re/quests/collection/quest_golem.txt",
//"npc/pre-re/quests/collection/quest_hode.txt",
//"npc/pre-re/quests/collection/quest_leafcat.txt",
//"npc/pre-re/quests/collection/quest_mantis.txt",
// - Exploitable due to vendor selling Bill of Birds in Morroc
//npc: npc/pre-re/quests/collection/quest_pecopeco.txt
//npc: npc/pre-re/quests/collection/quest_pupa.txt
//npc: npc/pre-re/quests/collection/quest_zhupolong.txt
//"npc/pre-re/quests/collection/quest_pecopeco.txt",
//"npc/pre-re/quests/collection/quest_pupa.txt",
//"npc/pre-re/quests/collection/quest_zhupolong.txt",
// --------------------------------------------------------------
// - Quests-Tutorials for basic classes (1st class quests) ------
npc: npc/pre-re/quests/first_class/tu_archer.txt
"npc/pre-re/quests/first_class/tu_archer.txt",
// --------------------------------------------------------------
npc: npc/pre-re/quests/monstertamers.txt
npc: npc/pre-re/quests/mrsmile.txt
npc: npc/pre-re/quests/quests_13_1.txt
npc: npc/pre-re/quests/quests_izlude.txt
npc: npc/pre-re/quests/quests_lighthalzen.txt
npc: npc/pre-re/quests/quests_nameless.txt
npc: npc/pre-re/quests/quests_veins.txt
"npc/pre-re/quests/monstertamers.txt",
"npc/pre-re/quests/mrsmile.txt",
"npc/pre-re/quests/quests_13_1.txt",
"npc/pre-re/quests/quests_izlude.txt",
"npc/pre-re/quests/quests_lighthalzen.txt",
"npc/pre-re/quests/quests_nameless.txt",
"npc/pre-re/quests/quests_veins.txt",
18 changes: 9 additions & 9 deletions npc/pre-re/scripts_jobs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015 Hercules Dev Team
//= Copyright (C) 2012-2016 Hercules Dev Team
//= Copyright (C) Athena Dev Teams
//=
//= Hercules is free software: you can redistribute it and/or modify
Expand All @@ -30,15 +30,15 @@

//================= Job Quests ============================================
// - 1-1
npc: npc/pre-re/jobs/1-1/acolyte.txt
npc: npc/pre-re/jobs/1-1/archer.txt
npc: npc/pre-re/jobs/1-1/mage.txt
npc: npc/pre-re/jobs/1-1/merchant.txt
npc: npc/pre-re/jobs/1-1/swordman.txt
npc: npc/pre-re/jobs/1-1/thief.txt
"npc/pre-re/jobs/1-1/acolyte.txt",
"npc/pre-re/jobs/1-1/archer.txt",
"npc/pre-re/jobs/1-1/mage.txt",
"npc/pre-re/jobs/1-1/merchant.txt",
"npc/pre-re/jobs/1-1/swordman.txt",
"npc/pre-re/jobs/1-1/thief.txt",
// - Novice
npc: npc/pre-re/jobs/novice/novice.txt
"npc/pre-re/jobs/novice/novice.txt",

//================= Skill Quests ==========================================
// - Novice
npc: npc/pre-re/quests/skills/novice_skills.txt
"npc/pre-re/quests/skills/novice_skills.txt",
73 changes: 38 additions & 35 deletions npc/pre-re/scripts_main.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015 Hercules Dev Team
//= Copyright (C) 2012-2016 Hercules Dev Team
//= Copyright (C) Athena Dev Teams
//=
//= Hercules is free software: you can redistribute it and/or modify
Expand All @@ -27,46 +27,49 @@
//=========================================================================
//= Hercules Pre-Renewal Primary Scripts File
//=========================================================================
// The idea of this new system is to make scripts more organized
// since the old system was rather messy with all the NPCs in one
// file. Now scripts are organized in to files arraged by type.
// Custom scripts are now in scripts_custom.conf, all other
// scripts are deemed as 'official'. You should place your NPCs
// in to scripts_custom.conf to follow the trend.
//
// Thanks,
// Ancyker and the rest of the Hercules Team
//
// Note: "Comments" are all text on the right side of a double slash "//"
// Whatever text is commented will not be parsed by the servers, and serves
// only as information/reference.
// The idea of this new system is to make scripts more organized since the old
// system was rather messy with all the NPCs in one file. Now scripts are
// organized in to files arraged by type. Custom scripts are now in
// scripts_custom.conf, all other scripts are deemed as 'official'. You should
// place your NPCs in to scripts_custom.conf to follow the trend.
//=========================================================================

//================= Global Scripts Functions ==============================
//================= Disabled Scripts ======================================
// All NPCs that you wish to remove from your loading list should be put in
// this file
@include "npc/scripts_removed.conf"

//================= Global NPC list =======================================
// Only files that are included here will be read by the server
npc_global_list: (

//- Global Scripts Functions -
// Utilitarian functions used by many scripts.
npc: npc/other/Global_Functions.txt
"npc/other/Global_Functions.txt",

//================= Cash Shop Functions ===================================
//- Cash Shop Functions -
// Used by cash shop items in the Item Database.
npc: npc/other/CashShop_Functions.txt
"npc/other/CashShop_Functions.txt",

//- Common Script Files -
@include "npc/scripts.conf"
@include "npc/scripts_woe.conf"
@include "npc/scripts_jobs.conf"
@include "npc/scripts_mapflags.conf"
@include "npc/scripts_monsters.conf"
@include "npc/scripts_warps.conf"

//================= Common Script Files ===================================
import: npc/scripts.conf
import: npc/scripts_woe.conf
import: npc/scripts_jobs.conf
import: npc/scripts_mapflags.conf
import: npc/scripts_monsters.conf
import: npc/scripts_warps.conf
//- Pre-Renewal Script Files -
@include "npc/pre-re/scripts.conf"
@include "npc/pre-re/scripts_jobs.conf"
@include "npc/pre-re/scripts_monsters.conf"
@include "npc/pre-re/scripts_warps.conf"

//================= Pre-Renewal Script Files ==============================
import: npc/pre-re/scripts.conf
import: npc/pre-re/scripts_jobs.conf
import: npc/pre-re/scripts_monsters.conf
import: npc/pre-re/scripts_warps.conf
//- Development / Testing Script Files -
@include "npc/scripts_dev.conf"

//================= Development / Testing Script Files ====================
import: npc/scripts_dev.conf
//- Custom Script Files -
// Your NPCs go in this file!
@include "npc/scripts_custom.conf"

//================= Custom Script Files ===================================
// - Your NPCs go in this file!
import: npc/scripts_custom.conf
) // npc_global_list
Loading

0 comments on commit 5b983fc

Please sign in to comment.