GithubHelp home page GithubHelp logo

mod-npc-gambler's Introduction

logo AzerothCore

Gambler NPC

  • Latest build status with azerothcore:

Build Status

This module was created for StygianCore. A World of Warcraft 3.3.5a Solo/LAN repack by StygianTheBest | GitHub | Website) This module has now being ported to AzerothCore by gtao725 (https://github.com/gtao725/).

Description

Hey, the name's Skinny. You feelin' lucky? This NPC will allow players to gamble copper, silver, or gold as defined in the configuration. It's a nice way for players to make a little extra coin.

  • Config:
    • Set bet and jackpot amounts
    • Enable/Disable coin type (gold, silver, copper)
    • Set coin type to gamble
  • A roll of 50 or higher wins double the bet!
  • A roll of less than 50 loses double the bet!
  • A roll of 100 within the first 10 rolls hits the jackpot!
  • The jackpot can only be hit in the first 10 rolls of each session to discourage spam.
  • A little help is given to players losing 5 rolls in a row.

To-Do

  • Track and display jackpot winners/dates.
  • Create lottery from player losses.

Data

  • Type: NPC
  • Script: gamble_npc
  • Config: Yes
  • SQL: Yes
    • NPC ID: 601020

Version

  • v2024.04.05 - Update the module to work with the latest version of the emulator
  • v2019.04.17 - Fix display of win/lose amount for values 100 or above, applicable to copper/silver/gold
  • v2019.04.15 - Ported to AzerothCore by gtao725 (https://github.com/gtao725/)
  • v2019.02.13 - Redesign, Add Coin Type Options, Update AI
  • v2018.12.09 - Update config
  • v2017.08.10 - Release

CREDITS

Styx StygianCore

This module was created for StygianCore. A World of Warcraft 3.3.5a Solo/LAN repack by StygianTheBest | GitHub | Website)

Additional Credits

LICENSE

This code and content is released under the GNU AGPL v3.

mod-npc-gambler's People

Contributors

acidmanifesto avatar bytesgalore avatar gtao725 avatar helias avatar locus313 avatar manguyny avatar mattburchett avatar milestorme avatar mitradis avatar nelnamara avatar nyeriah avatar pangolp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mod-npc-gambler's Issues

Feature: Cooldown \ Restriction option on bets

Describe your feature request or suggestion in detail

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.

Describe a possible solution to your feature or suggestion in detail

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.

Additional context

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.

Build an error

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#

Bug: cant build on ubuntu 22.04

Current Behaviour

image

Expected Behaviour

build pass

Steps to reproduce the problem

make

Extra Notes

No response

AC rev. hash/commit

last version

Operating system

ubuntu22.04.4

Custom changes or Modules

No response

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.