mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Quest API] Add CampAllBots() to Perl/Lua. (#2732)
# Perl - Add `$client->CampAllBots()`. - Add `$client->CampAllBots(class_id)`. # Lua - Add `client:CampAllBots()`. - Add `client:CampAllBots(class_id)`. # Notes - Adds constants for `NO_CLASS` which is class `0` and uses `RACE_DOUG_0` for any spots that use race ID `0`. - Cleans up magic number usage of race/class of `0`.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#ifdef BOTS
|
||||
|
||||
#include "bot.h"
|
||||
#include "client.h"
|
||||
|
||||
bool Client::GetBotOption(BotOwnerOption boo) const {
|
||||
@@ -156,4 +157,9 @@ void Client::SetBotSpawnLimit(int new_spawn_limit, uint8 class_id)
|
||||
SetBucket(bucket_name, std::to_string(new_spawn_limit));
|
||||
}
|
||||
|
||||
void Client::CampAllBots(uint8 class_id)
|
||||
{
|
||||
Bot::BotOrderCampAll(this, class_id);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user