GithubHelp home page GithubHelp logo

azerothcore / mod-premium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talamortis/mod-premium

16.0 9.0 23.0 818 KB

This is a module for AzerothCore that adds Premium account features to players.

License: GNU Affero General Public License v3.0

CMake 4.60% C++ 89.61% Shell 5.79%
core-module acore-rev-2-x acore-rev-1-x azerothcore azerothcore-module

mod-premium's Introduction

logo AzerothCore

Premium Account

  • Latest Premium Account build status with azerothcore:

Build Status

This is a module for AzerothCore that adds Premium account features to players.

script screenshot

Current features:

This module allows players to:

  • Morph
  • Mobile Bank
  • Mobile Auction
  • Demoph
  • Mount (60%) players will mount the correct mount for the race
  • Summon Vendor
  • Trainer players will now spawn their class trainer also depending on faction.
  • Added creature spawn check.

Upcoming features:

  • Teleport players to major citys
  • Talent Reset features
  • Not allow morph if player is in shapeshift form

Requirements

Premium module currently requires: players to import the sql into character database

AzerothCore v1.0.1+

How to install

###1) Simply place the module under the modules folder of your AzerothCore source folder.

You can do clone it via git under the azerothcore/modules directory:

cd path/to/azerothcore/modules

git clone https://github.com/azerothcore/mod-premium.git

or you can manually download the module, unzip the premium folder and place it under the azerothcore/modules directory.

assign the script to an item such as hearthstone using the script name 'premium_account'

###2) Re-run cmake and launch a clean build of AzerothCore

That's it.

(Optional) Edit module configuration

If you need to change the module configuration, go to your server configuration folder (e.g. etc), copy premium.conf.dist to premium.conf and edit it as you prefer.

Test the module

There is a SQL query so you can create an item and test it quickly.

item screenshot

mod-premium's People

Contributors

barbzyhool avatar deku avatar devovh avatar eldoba avatar helias avatar locus313 avatar pangolp avatar svenbledt avatar talamortis avatar viskus avatar winfidonarleyan avatar yehonal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mod-premium's Issues

Module fails to compile, seems to need some API updates

Relevant part of the raw build output (path to azerothcore-wotlk redacted):

/.../azerothcore-wotlk/modules/mod-premium/src/premium.cpp:312:39: warning: 'GetIntDefault' is deprecated: Use GetOption<int32> instead [-Wdeprecated-declarations]
        int npcDuration = sConfigMgr->GetIntDefault("Premium.NpcDuration", 60) * IN_MILLISECONDS;
                                      ^
/.../azerothcore-wotlk/src/common/Configuration/Config.h:60:7: note: 'GetIntDefault' has been explicitly marked deprecated here
    [[deprecated("Use GetOption<int32> instead")]]
      ^
/.../azerothcore-wotlk/modules/mod-premium/src/premium.cpp:319:14: error: no member named 'setFaction' in 'Creature'; did you mean 'SetFaction'?
        npc->setFaction(player->getFaction());
             ^~~~~~~~~~
             SetFaction
/.../azerothcore-wotlk/src/server/game/Entities/Unit/Unit.h:1603:10: note: 'SetFaction' declared here
    void SetFaction(uint32 faction);
         ^
/.../azerothcore-wotlk/modules/mod-premium/src/premium.cpp:319:33: error: no member named 'getFaction' in 'Player'; did you mean 'GetFaction'?
        npc->setFaction(player->getFaction());
                                ^~~~~~~~~~
                                GetFaction
/.../azerothcore-wotlk/src/server/game/Entities/Unit/Unit.h:1602:26: note: 'GetFaction' declared here
    [[nodiscard]] uint32 GetFaction() const { return GetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE); }
                         ^
/.../azerothcore-wotlk/modules/mod-premium/src/premium.cpp:322:18: error: no member named 'MonsterWhisper' in 'Creature'
            npc->MonsterWhisper(salute, player, false);
            ~~~  ^
1 warning and 3 errors generated.

Compile warnings after last core updates.

/home/wow/azerothcore/modules/mod-premium/src/premium.cpp:311:31: warning: unused variable 'trainer' [-Wunused-variable]
Creature* trainer = player->SummonCreature(HMAGE, player->GetPositionX(), player->GetPositionY(), player->GetPosition...
^
/home/wow/azerothcore/modules/mod-premium/src/premium.cpp:317:31: warning: unused variable 'trainer' [-Wunused-variable]
Creature* trainer = player->SummonCreature(APALADIN, player->GetPositionX(), player->GetPositionY(), player->GetPosit..

and many others

Not working

Compiled with latest core and not working.
No errors in build but the script doesn't trigger in-game

Searches wrong config

mod-premium/src/premium.cpp

Lines 336 to 342 in 23330ea

std::string conf_path = _CONF_DIR;
std::string cfg_file = conf_path + "/premium.conf";
#if PLATFORM == PLATFORM_WINDOWS
cfg_file = "my_custom.conf";
#endif
std::string cfg_def_file = cfg_file + ".dist";

windows is coded to search for different config than linux

How to not teleport to Dalaran!

May I ask how to remove the teleportation spell from this book?
I tried to set the value of spellid_1 to 0 in the database, but it doesn't seem to have taken effect.

Bug: Can't send mail items because Identified as cheating on the server.

Current Behaviour

When using the convenient mailbox to receive emails, it will cause the server to report cheating, and then players will not be able to send emails.
If there is no operation to receive emails at the beginning, you can directly send emails.

Expected Behaviour

Players can still send emails after receiving emails.

Steps to reproduce the problem

  1. Use mail
  2. Receive emails
  3. Send emails
  4. Unable to send emails, no response when clicked, server reports player cheating

Extra Notes

No response

AC rev. hash/commit

npcbots branch
854867630e

Operating system

Windows Server 2025

Custom changes or Modules

No response

Error compiling module

in the AzerothCore revision : 4ffecc078a09 2022-02-18 01:09:46 +0000 (master branch)

premium.cpp
2>D:\Temp\lk\azerothcore-wotlk\modules\mod-premium\src\premium.cpp(69,48): error C2039: "PQuery": no es un miembro de "DatabaseWorkerPool"
2>D:\Temp\lk\azerothcore-wotlk\src\server\database\Database\DatabaseEnv.h(37): message : vea la declaración de 'DatabaseWorkerPool'
2>D:\Temp\lk\azerothcore-wotlk\modules\mod-premium\src\premium.cpp(319,14): error C2039: "setFaction": no es un miembro de "Creature"
2>D:\Temp\lk\azerothcore-wotlk\src\server\game\Scripting\ScriptMgr.h(47): message : vea la declaración de 'Creature'
2>D:\Temp\lk\azerothcore-wotlk\modules\mod-premium\src\premium.cpp(319,33): error C2039: "getFaction": no es un miembro de "Player"
2>D:\Temp\lk\azerothcore-wotlk\src\server\game\Spells\Spell.h(28): message : vea la declaración de 'Player'
2>D:\Temp\lk\azerothcore-wotlk\modules\mod-premium\src\premium.cpp(322,18): error C2039: "MonsterWhisper": no es un miembro de "Creature"
2>D:\Temp\lk\azerothcore-wotlk\src\server\game\Scripting\ScriptMgr.h(47): message : vea la declaración de 'Creature'
2>Compilación del proyecto "modules.vcxproj" terminada -- ERROR.
3>------ Operación Compilar iniciada: proyecto: worldserver, configuración: Release x64 ------
3>LINK : fatal error LNK1181: no se puede abrir el archivo de entrada '......\modules\Release\modules.lib'
3>Compilación del proyecto "worldserver.vcxproj" terminada -- ERROR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.