-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Quest API] Add Timer related methods to Mobs in Perl/Lua (#3133)
* [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. * StopAllTimers() * Update questmgr.cpp
- Loading branch information
1 parent
63a8d2d
commit 4fe44f4
Showing
6 changed files
with
216 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.