mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Quest API] Add RemoveAlternateCurrencyValue() to Perl/Lua (#4190)
# Perl - Add `$client->RemoveAlternateCurrencyValue(currency_id, amount)`. # Lua - Add `client:RemoveAlternateCurrencyValue(currency_id, amount)`. # Notes - Allows operators to more easily remove alternate currencies, returns a `bool`, `false` if failed`, `true` if succeeded. - Added `Zone::DoesAlternateCurrencyExist` that will reject setting, removing, or adding to a currency that does not exist.
This commit is contained in:
@@ -3302,6 +3302,12 @@ bool Lua_Client::RemoveAAPoints(uint32 points)
|
||||
return self->RemoveAAPoints(points);
|
||||
}
|
||||
|
||||
bool Lua_Client::RemoveAlternateCurrencyValue(uint32 currency_id, uint32 amount)
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->RemoveAlternateCurrencyValue(currency_id, amount);
|
||||
}
|
||||
|
||||
luabind::scope lua_register_client() {
|
||||
return luabind::class_<Lua_Client, Lua_Mob>("Client")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -3678,6 +3684,7 @@ luabind::scope lua_register_client() {
|
||||
.def("RemoveAAPoints", (bool(Lua_Client::*)(uint32))&Lua_Client::RemoveAAPoints)
|
||||
.def("RemoveAllExpeditionLockouts", (void(Lua_Client::*)(std::string))&Lua_Client::RemoveAllExpeditionLockouts)
|
||||
.def("RemoveAllExpeditionLockouts", (void(Lua_Client::*)(void))&Lua_Client::RemoveAllExpeditionLockouts)
|
||||
.def("RemoveAlternateCurrencyValue", (bool(Lua_Client::*)(uint32,uint32))&Lua_Client::RemoveAlternateCurrencyValue)
|
||||
.def("RemoveExpeditionLockout", (void(Lua_Client::*)(std::string, std::string))&Lua_Client::RemoveExpeditionLockout)
|
||||
.def("RemoveItem", (void(Lua_Client::*)(uint32))&Lua_Client::RemoveItem)
|
||||
.def("RemoveItem", (void(Lua_Client::*)(uint32,uint32))&Lua_Client::RemoveItem)
|
||||
|
||||
Reference in New Issue
Block a user