Git Product home page Git Product logo

mod-individual-xp's Introduction

logo AzerothCore

Individual XP Module

  • Latest build status with azerothcore: Build Status

Allows players to View, Set, or Toggle the rate at which they gain experience individually.

How to install

  1. clone this module into the modules directory of the main source
  2. apply the provided sql in the character database
  3. re-run cmake
  4. compile.

Config

There are two variables to configure in the Config:

  1. Max XP Rate
  2. Default XP Rate

The Max XP Rate variable dictates how high a player can set their XP rate.
While the Default XP Rate variable dictates what XP rate players start with and the rate will be set to if the user does '.XP Default'

Player Commands

Command Description
.XP Main Module Command
.XP View Displays the current XP rate
.XP Set # Changes the XP rate to the value specified
.XP Default Returns the XP rate to the default value
.XP Disable Disables all XP gain until user does '.XP Enable'
.XP Enable Enables all XP gain if it was disabled

Video Showcase

Youtube Link

mod-individual-xp's People

Contributors

0xciber avatar 55honey avatar barbzyhool avatar bytesgalore avatar dunjeon avatar helias avatar locus313 avatar majordot avatar nyeriah avatar pangolp avatar rochet2 avatar talamortis avatar ultranix avatar wizzymore avatar xclid avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

mod-individual-xp's Issues

Refactor commands and view actual XP rate

  • Add general command .xp This command shows the other commands
  • Add subcommand "view". Allows to view the actual xp rate with .xp view
  • Add subcommand "set". .xp set 5 set your rate to 5
  • Add subcommand "default". .xp default set your rate to the original server rate
  • Add subcommand "disable". .xp disable set your rate to 0 (disable xp gain but reenable it with set or default)

remove this or replace

if (IndividualXpEnabled) {

@wizzymore this is in the wrong place either redo this statement or remove it and the } at the same time to fix travis and build warning, thats all i did

and comment victim

/home/travis/build/azerothcore/azerothcore-wotlk/modules/mod-individual-xp/src/Individual_XP.cpp:85:52: fatal error: unused parameter 'victim' [-Wunused-parameter]
    void OnGiveXP(Player* p, uint32& amount, Unit* victim) override
                                                     ^
1 error generated.

Compile faild

azerothcore/azerothcore-wotlk@b0b9fec

df37085

/root/azerothcore/modules/mod-individual-xp/src/Individual_XP.cpp:70:48: fatal error: no member named 'PQuery' in 'DatabaseWorkerPool<CharacterDatabaseConnection>'; did you mean 'Query'?
        QueryResult result = CharacterDatabase.PQuery("SELECT `XPRate` FROM `individualxp` WHERE `CharacterGUID` = %u", p->GetGUID().GetCounter());
                                               ^~~~~~
                                               Query
/root/azerothcore/src/server/database/Database/DatabaseWorkerPool.h:119:17: note: 'Query' declared here
    QueryResult Query(std::string_view sql, Args&&... args)
                ^
1 error generated.
make[2]: *** [modules/CMakeFiles/modules.dir/build.make:862: modules/CMakeFiles/modules.dir/mod-individual-xp/src/Individual_XP.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1235: modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

[Suggestion] Allow xp rate of 0

I'm not sure if this is the right place but on my server I find it useful to be able to set xp rate to 0, for example for level 60 characters who want to explore level 60 content before moving on to the burning crusade content.

I've made that change to my version of this module by simply changing line 83 from "if (rate == 0 || rate > MaxRate)" to "if (rate > MaxRate)" and thought I'd make the suggestion here in case other people would want the same way to individually turn off xp.

[Suggestion] Add others rates

I know this is out of mod-individual xp but adding other configurable "rates" such as honor rate, arena rate, loot rate, reputation rate...

(sorry I use a translator)

Error while parsing SQL

Running Induvidual-xp on mysql server version 8.0.27.0
gives you the following error in the worldserver

[1064] You have an error in your SQL syntax; check the manual that corresponds to your 
MySQL server version for the right syntax to use near '%u' at line 1 Error while parsing SQL. 
Core fix required.

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.