mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add ResetCastbarCooldownBySlot / ResetCastbarCooldownBySpellID / ResetAllCastbarCooldowns (#1873)
* New function to reset spellbar in perl/lua ResetCastbarCooldownsBySlot -1 for all slots and anything else to do it by slot number * Add ResetCastbarCooldownsBySlot / ResetCastbarCooldownsBySpellID / ResetAllCastbarCooldowns
This commit is contained in:
@@ -2321,6 +2321,21 @@ int Lua_Client::GetNextAvailableDisciplineSlot(int starting_slot) {
|
||||
return self->GetNextAvailableDisciplineSlot(starting_slot);
|
||||
}
|
||||
|
||||
void Lua_Client::ResetCastbarCooldownBySlot(int slot) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->ResetCastbarCooldownBySlot(slot);
|
||||
}
|
||||
|
||||
void Lua_Client::ResetAllCastbarCooldowns() {
|
||||
Lua_Safe_Call_Void();
|
||||
self->ResetAllCastbarCooldowns();
|
||||
}
|
||||
|
||||
void Lua_Client::ResetCastbarCooldownBySpellID(uint32 spell_id) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->ResetCastbarCooldownBySpellID(spell_id);
|
||||
}
|
||||
|
||||
luabind::scope lua_register_client() {
|
||||
return luabind::class_<Lua_Client, Lua_Mob>("Client")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -2598,6 +2613,9 @@ luabind::scope lua_register_client() {
|
||||
.def("RemoveLDoNWin", (void(Lua_Client::*)(uint32))&Lua_Client::RemoveLDoNWin)
|
||||
.def("ResetAA", (void(Lua_Client::*)(void))&Lua_Client::ResetAA)
|
||||
.def("ResetAllDisciplineTimers", (void(Lua_Client::*)(void))&Lua_Client::ResetAllDisciplineTimers)
|
||||
.def("ResetAllCastbarCooldowns", (void(Lua_Client::*)(void))&Lua_Client::ResetAllCastbarCooldowns)
|
||||
.def("ResetCastbarCooldownBySlot", (void(Lua_Client::*)(int))&Lua_Client::ResetCastbarCooldownBySlot)
|
||||
.def("ResetCastbarCooldownBySpellID", (void(Lua_Client::*)(uint32))&Lua_Client::ResetCastbarCooldownBySpellID)
|
||||
.def("ResetDisciplineTimer", (void(Lua_Client::*)(uint32))&Lua_Client::ResetDisciplineTimer)
|
||||
.def("ResetTrade", (void(Lua_Client::*)(void))&Lua_Client::ResetTrade)
|
||||
.def("Save", (void(Lua_Client::*)(int))&Lua_Client::Save)
|
||||
|
||||
Reference in New Issue
Block a user