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:
@@ -3108,6 +3108,11 @@ bool Perl_Client_RemoveAAPoints(Client* self, uint32 points)
|
||||
return self->RemoveAAPoints(points);
|
||||
}
|
||||
|
||||
bool Perl_Client_RemoveAlternateCurrencyValue(Client* self, uint32 currency_id, uint32 amount)
|
||||
{
|
||||
return self->RemoveAlternateCurrencyValue(currency_id, amount);
|
||||
}
|
||||
|
||||
void perl_register_client()
|
||||
{
|
||||
perl::interpreter perl(PERL_GET_THX);
|
||||
@@ -3478,6 +3483,7 @@ void perl_register_client()
|
||||
package.add("RemoveAAPoints", &Perl_Client_RemoveAAPoints);
|
||||
package.add("RemoveAllExpeditionLockouts", (void(*)(Client*))&Perl_Client_RemoveAllExpeditionLockouts);
|
||||
package.add("RemoveAllExpeditionLockouts", (void(*)(Client*, std::string))&Perl_Client_RemoveAllExpeditionLockouts);
|
||||
package.add("RemoveAlternateCurrencyValue", (bool(*)(Client*, uint32, uint32))&Perl_Client_RemoveAlternateCurrencyValue);
|
||||
package.add("RemoveEbonCrystals", &Perl_Client_RemoveEbonCrystals);
|
||||
package.add("RemoveExpeditionLockout", &Perl_Client_RemoveExpeditionLockout);
|
||||
package.add("RemoveFromInstance", &Perl_Client_RemoveFromInstance);
|
||||
|
||||
Reference in New Issue
Block a user