azerothcore / mod-npc-gambler Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
heres the fix
diff --git a/src/npc_gambler.cpp b/src/npc_gambler.cpp
index e40b78d..a1c8556 100644
--- a/src/npc_gambler.cpp
+++ b/src/npc_gambler.cpp
@@ -68,7 +68,7 @@ gold. Beware.. He doesn't like cheapskates!
*/
-#include "config.h"
+#include "Config.h"
class GamblerAnnounce : public PlayerScript
{
core:tbcstar/azerothcore-wotlk@7d55071
/home/azerothcore-wotlk/modules/mod-npc-gambler/src/npc_gambler.cpp:408:23: fatal error: no member named 'MonsterWhisper' in 'Creature'
creature->MonsterWhisper(messageHelp.str().c_str(), player);
~~~~~~~~ ^
[ 97%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir////modules/mod-npc-services/src/Npc_Services.cpp.o
1 error generated.
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/build.make:8674: src/server/scripts/CMakeFiles/scripts.dir////modules/mod-npc-gambler/src/npc_gambler.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1575: src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
root@VM-0-8-ubuntu:/home/azerothcore-wotlk/build#
It would be very helpful to have an option to enable a gossip cool down on gambling to prevent abuse. In its current state, spamming the lowest bet provides endless money even with the build in spam prevention. If possible, this cooldown would look at the current bet amount and base the timer accordingly.
Example: Using a simple auto hot key setup to spam the lowest bet, the chances of winning outweigh losses even with the built in negative modifier over time, and you will always end up making profit.
Add an option in the config to enable a gossip cool down on gambling that looks at the bet amount if possible. This would allow for individual timers depending on the bet amount.
I'd like to personally have a large bet amount with a 12-24 hour+ cooldown to prevent abuse, but still allow for a fun all-in option where you can lose it all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.