diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b0597dd --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +[*] +charset = utf-8 +indent_style = space +indent_size = 4 +tab_width = 4 +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 80 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f41b4f9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,105 @@ +## AUTO-DETECT +## Handle line endings automatically for files detected as +## text and leave all files detected as binary untouched. +## This will handle all files NOT defined below. +* text = auto eol = lf + +# Text +* .conf text +* .conf.dist text +* .cmake text + +## Scripts +* .sh text +* .fish text +* .lua text + +## SQL +* .sql text + +## C++ +* .c text +* .cc text +* .cxx text +* .cpp text +* .c++ text +* .hpp text +* .h text +* .h++ text +* .hh text + + +## For documentation + +# Documents +* .doc diff = astextplain +* .DOC diff = astextplain +* .docx diff = astextplain +* .DOCX diff = astextplain +* .dot diff = astextplain +* .DOT diff = astextplain +* .pdf diff = astextplain +* .PDF diff = astextplain +* .rtf diff = astextplain +* .RTF diff = astextplain + +## DOCUMENTATION +* .markdown text +* .md text +* .mdwn text +* .mdown text +* .mkd text +* .mkdn text +* .mdtxt text +* .mdtext text +* .txt text +AUTHORS text +CHANGELOG text +CHANGES text +CONTRIBUTING text +COPYING text +copyright text +* COPYRIGHT * text +INSTALL text +license text +LICENSE text +NEWS text +readme text +* README * text +TODO text + +## GRAPHICS +* .ai binary +* .bmp binary +* .eps binary +* .gif binary +* .ico binary +* .jng binary +* .jp2 binary +* .jpg binary +* .jpeg binary +* .jpx binary +* .jxr binary +* .pdf binary +* .png binary +* .psb binary +* .psd binary +* .svg text +* .svgz binary +* .tif binary +* .tiff binary +* .wbmp binary +* .webp binary + + +## ARCHIVES +* .7z binary +* .gz binary +* .jar binary +* .rar binary +* .tar binary +* .zip binary + +## EXECUTABLES +* .exe binary +* .pyc binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be4c57d --- /dev/null +++ b/.gitignore @@ -0,0 +1,47 @@ +!.gitignore + +# +#Generic +# +.directory +.mailmap +* .orig +* .rej +* .*~ +.hg / +*.kdev * +.DS_Store +CMakeLists.txt.user +* .bak +* .patch +* .diff +* .REMOTE.* +* .BACKUP.* +* .BASE.* +* .LOCAL.* + +# +# IDE & other softwares +# +/ .settings/ +/.externalToolBuilders/* +# exclude in all levels +nbproject/ +.sync.ffs_db +*.kate-swp + +# +# Eclipse +# +*.pydevproject +.metadata +.gradle +tmp/ +*.tmp +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.project +.cproject diff --git a/conf/AoeLoot.conf.dist b/conf/AoeLoot.conf.dist new file mode 100644 index 0000000..9a4700a --- /dev/null +++ b/conf/AoeLoot.conf.dist @@ -0,0 +1,26 @@ +# +# This file is part of the AzerothCore Project. See AUTHORS file for Copyright information +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# User has manually chosen to ignore the git-tests, so throw them a warning. +# This is done EACH compile so they can be alerted about the consequences. +# + +######################################## +# AoeLoot module configuration +######################################## +# +# AOELoot.Enable +# Description: Enables Module +# Default: 0 - (Disabled) +# 1 - (Enabled) +# + +AOELoot.Enable = 0 diff --git a/src/AoeLoot.cpp b/src/AoeLoot.cpp new file mode 100644 index 0000000..5ad13f2 --- /dev/null +++ b/src/AoeLoot.cpp @@ -0,0 +1,20 @@ +/* + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "AoeLoot.h" +#include "Log.h" +#include "Config.h" diff --git a/src/AoeLoot.h b/src/AoeLoot.h new file mode 100644 index 0000000..f740bed --- /dev/null +++ b/src/AoeLoot.h @@ -0,0 +1,21 @@ +/* + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#ifndef _AOE_LOOT_H_ +#define _AOE_LOOT_H_ + +#endif /* _AOE_LOOT_H_ */ diff --git a/src/AoeLoot_SC.cpp b/src/AoeLoot_SC.cpp new file mode 100644 index 0000000..ac51928 --- /dev/null +++ b/src/AoeLoot_SC.cpp @@ -0,0 +1,41 @@ +/* + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "AoeLoot.h" +#include "Log.h" +#include "ScriptMgr.h" +#include "Config.h" +#include "Chat.h" +#include "Player.h" +#include "ScriptedGossip.h" + +class AoeLoot_World : public WorldScript +{ +public: + AoeLoot_World() : WorldScript("AoeLoot_World") { } + + void OnAfterConfigLoad(bool /*reload*/) override + { + // Add conigs options configiration + } +}; + +// Group all custom scripts +void AddSC_AoeLoot() +{ + new AoeLoot_World(); +} diff --git a/src/aoe_loot_loader.cpp b/src/aoe_loot_loader.cpp new file mode 100644 index 0000000..21c39e3 --- /dev/null +++ b/src/aoe_loot_loader.cpp @@ -0,0 +1,25 @@ +/* + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +// From SC +void AddSC_AoeLoot(); + +// Add all +void Addmod_aoe_lootScripts() +{ + AddSC_AoeLoot(); +}