Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quest API] Add Timer related methods to Mobs in Perl/Lua #3133

Merged
merged 3 commits into from
Mar 20, 2023

Commits on Mar 20, 2023

  1. [Quest API] Add Timer related methods to Mobs in Perl/Lua

    # Perl
    - Add `quest::ispausedtimer(timer_name)`.
    - Add `quest::pausetimer(timer_name)`.
    - Add `quest::resumetimer(timer_name)`.
    - Add `$mob->GetRemainingTimeMS(timer_name)`.
    - Add `$mob->GetTimerDurationMS(timer_name)`.
    - Add `$mob->HasTimer(timer_name)`.
    - Add `$mob->IsPausedTimer(timer_name)`.
    - Add `$mob->PauseTimer(timer_name)`.
    - Add `$mob->ResumeTimer(timer_name)`.
    - Add `$mob->SetTimer(timer_name)`.
    - Add `$mob->SetTimerMS(timer_name)`.
    - Add `$mob->StopTimer(timer_name)`.
    
    # Lua
    - Add `mob:GetRemainingTimeMS(timer_name)`.
    - Add `mob:GetTimerDurationMS(timer_name)`.
    - Add `mob:HasTimer(timer_name)`.
    - Add `mob:IsPausedTimer(timer_name)`.
    - Add `mob:PauseTimer(timer_name)`.
    - Add `mob:ResumeTimer(timer_name)`.
    - Add `mob:SetTimer(timer_name)`.
    - Add `mob:SetTimerMS(timer_name)`.
    - Add `mob:StopTimer(timer_name)`.
    
    # Notes
    - The mob-based methods allow operators to loop entity list or whatever to set, stop, resume, pause, etc for timers.
    Kinglykrab committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    31c5abc View commit details
    Browse the repository at this point in the history
  2. StopAllTimers()

    Kinglykrab committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    50cfa93 View commit details
    Browse the repository at this point in the history
  3. Update questmgr.cpp

    Kinglykrab committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    3293223 View commit details
    Browse the repository at this point in the history