promotional bannermobile promotional banner

RWPull

Does a "raid warning" /rw countdown

File Details

RWPull_v.0.3

  • R
  • Jun 28, 2023
  • 1.88 KB
  • 843
  • 5.4.8
  • Retail

File Name

RWPull.zip

Supported Versions

  • 5.4.8

Version 0.2:

  • Updated the pullState table to include an additional field, isReseted, which tracks whether the pull countdown has been reset.
  • Added the pullMessage variable to store the custom pull message.
  • Modified the pullCountdown function to incorporate the changes from the previous version.
  • Added a check to display the pull countdown message if the countdown is greater than 1 and not reset.
  • Added a check to display a specific message when the countdown reaches 1.
  • Added a check to send a specific message when the countdown reaches 0.
  • Added a check to display an "Aborted" message when the countdown is greater than 1 and has been reset.
  • Updated the pizzaCountdown function to match the changes from the previous version.
  • Added the /rwc command and RWC function to reset the pull countdown by setting isReseted to true.
  • Modified the /rwpull command and RWP_PULL function to incorporate the changes made in the previous version.
  • Added a check to handle the case when isReseted is true and the countdown is greater than 1.
  • Added the /rwpmsg command and RWP_MSG function to set a custom pull message.
  • Added the /rwp_help command and RWP_HELP function to display help information about available commands.

Version 0.3:

  • Added the SetTimer function to create timers with specified intervals, callbacks, and options for recurrence.
  • Added the KillTimer function to stop and remove timers.
  • Implemented a recurring timer system to handle multiple timers simultaneously.
  • Created a frame event handler OnUpdate to check timers at a specified granularity.
  • Introduced the totalElapsed variable to track the elapsed time for timer checks.
  • Modified the pullCountdown function to handle the pull countdown logic.
  • Updated the pull countdown messages to use the pullMessage variable for customization.
  • Added support for aborting the countdown if the countdown is reset.
  • Improved messaging for aborting the countdown.
  • Introduced the pizzaCountdown function to handle break countdown logic.
  • Modified the RWC slash command to reset the pull countdown.
  • Added checks to handle different scenarios, such as an active timer or no active timer.
  • Modified the RWP_PULL slash command to initiate the pull countdown.
  • Added checks for valid input and negative values.
  • Improved the messaging for initiating the countdown.
  • Modified the RWP_PIZZA slash command to initiate the break countdown.
  • Added checks for valid input and negative values.
  • Modified the RWP_MSG slash command to set a custom pull message.
  • Modified the RWP_HELP slash command to provide usage information for all commands.
  • Introduced the print function as a wrapper for the standard print function, with addon-specific formatting.
  • Added the initialization message to indicate successful loading of the addon.


    Now the addon works properly, i forgot to add the timer function in the Alpha version hehe