mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Quest API] Add ApplySpell() and SetBuffDuration() overloads to Perl/Lua (#3576)
# Perl - Add `$bot->ApplySpell(spell_id, duration, level)`. - Add `$bot->ApplySpell(spell_id, duration, level, allow_pets)`. - Add `$bot->ApplySpellGroup(spell_id, duration, level)`. - Add `$bot->ApplySpellGroup(spell_id, duration, level, allow_pets)`. - Add `$bot->ApplySpellRaid(spell_id)`. - Add `$bot->ApplySpellRaid(spell_id, duration)`. - Add `$bot->ApplySpellRaid(spell_id, duration, level)`. - Add `$bot->ApplySpellRaid(spell_id, duration, level, allow_pets)`. - Add `$bot->ApplySpellRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `$bot->SetSpellDuration(spell_id, duration, level)`. - Add `$bot->SetSpellDuration(spell_id, duration, level, allow_pets)`. - Add `$bot->SetSpellDurationGroup(spell_id, duration, level)`. - Add `$bot->SetSpellDurationGroup(spell_id, duration, level, allow_pets)`. - Add `$bot->SetSpellDurationRaid(spell_id)`. - Add `$bot->SetSpellDurationRaid(spell_id, duration)`. - Add `$bot->SetSpellDurationRaid(spell_id, duration, level)`. - Add `$bot->SetSpellDurationRaid(spell_id, duration, level, allow_pets)`. - Add `$bot->SetSpellDurationRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `$client->ApplySpell(spell_id, duration, level)`. - Add `$client->ApplySpell(spell_id, duration, level, allow_pets)`. - Add `$client->ApplySpellGroup(spell_id, duration, level)`. - Add `$client->ApplySpellGroup(spell_id, duration, level, allow_pets)`. - Add `$client->ApplySpellRaid(spell_id, duration, level)`. - Add `$client->ApplySpellRaid(spell_id, duration, level, allow_pets)`. - Add `$client->ApplySpellRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `$client->ApplySpellRaid(spell_id, duration, level, allow_pets, is_raid_group_only, allow_bots)`. - Add `$client->SetSpellDuration(spell_id, duration, level)`. - Add `$client->SetSpellDuration(spell_id, duration, level, allow_pets)`. - Add `$client->SetSpellDurationGroup(spell_id, duration, level)`. - Add `$client->SetSpellDurationGroup(spell_id, duration, level, allow_pets)`. - Add `$client->SetSpellDurationRaid(spell_id, duration, level)`. - Add `$client->SetSpellDurationRaid(spell_id, duration, level, allow_pets)`. - Add `$client->SetSpellDurationRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `$client->SetSpellDurationRaid(spell_id, duration, level, allow_pets, is_raid_group_only, allow_bots)`. - Add `$mob->ApplySpellBuff(spell_id, duration, level)`. - Add `$mob->SetSpellDuration(spell_id, duration, level)`. # Lua - Add `bot:ApplySpell(spell_id, duration, level)`. - Add `bot:ApplySpell(spell_id, duration, level, allow_pets)`. - Add `bot:ApplySpellGroup(spell_id, duration, level)`. - Add `bot:ApplySpellGroup(spell_id, duration, level, allow_pets)`. - Add `bot:ApplySpellRaid(spell_id)`. - Add `bot:ApplySpellRaid(spell_id, duration)`. - Add `bot:ApplySpellRaid(spell_id, duration, level)`. - Add `bot:ApplySpellRaid(spell_id, duration, level, allow_pets)`. - Add `bot:ApplySpellRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `bot:SetSpellDuration(spell_id, duration, level)`. - Add `bot:SetSpellDuration(spell_id, duration, level, allow_pets)`. - Add `bot:SetSpellDurationGroup(spell_id, duration, level)`. - Add `bot:SetSpellDurationGroup(spell_id, duration, level, allow_pets)`. - Add `bot:SetSpellDurationRaid(spell_id, duration, level)`. - Add `bot:SetSpellDurationRaid(spell_id, duration, level, allow_pets)`. - Add `bot:SetSpellDurationRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `client:ApplySpell(spell_id, duration, level)`. - Add `client:ApplySpell(spell_id, duration, level, allow_pets)`. - Add `client:ApplySpellGroup(spell_id, duration, level)`. - Add `client:ApplySpellGroup(spell_id, duration, level, allow_pets)`. - Add `client:ApplySpellRaid(spell_id, duration, level)`. - Add `client:ApplySpellRaid(spell_id, duration, level, allow_pets)`. - Add `client:ApplySpellRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `client:ApplySpellRaid(spell_id, duration, level, allow_pets, is_raid_group_only, allow_bots)`. - Add `client:SetSpellDuration(spell_id, duration, level)`. - Add `client:SetSpellDuration(spell_id, duration, level, allow_pets)`. - Add `client:SetSpellDurationGroup(spell_id, duration, level)`. - Add `client:SetSpellDurationGroup(spell_id, duration, level, allow_pets)`. - Add `client:SetSpellDurationRaid(spell_id, duration, level)`. - Add `client:SetSpellDurationRaid(spell_id, duration, level, allow_pets)`. - Add `client:SetSpellDurationRaid(spell_id, duration, level, allow_pets, is_raid_group_only)`. - Add `client:SetSpellDurationRaid(spell_id, duration, level, allow_pets, is_raid_group_only, allow_bots)`. - Add `mob:ApplySpellBuff(spell_id, duration, level)`. - Add `mob:SetSpellDuration(spell_id, duration, level)`. # Notes - This allows operators to override the spell level.
This commit is contained in:
+4
-2
@@ -11288,6 +11288,7 @@ std::vector<Mob*> Client::GetApplySpellList(
|
||||
void Client::ApplySpell(
|
||||
int spell_id,
|
||||
int duration,
|
||||
int level,
|
||||
ApplySpellType apply_type,
|
||||
bool allow_pets,
|
||||
bool is_raid_group_only,
|
||||
@@ -11296,13 +11297,14 @@ void Client::ApplySpell(
|
||||
const auto& l = GetApplySpellList(apply_type, allow_pets, is_raid_group_only, allow_bots);
|
||||
|
||||
for (const auto& m : l) {
|
||||
m->ApplySpellBuff(spell_id, duration);
|
||||
m->ApplySpellBuff(spell_id, duration, level);
|
||||
}
|
||||
}
|
||||
|
||||
void Client::SetSpellDuration(
|
||||
int spell_id,
|
||||
int duration,
|
||||
int level,
|
||||
ApplySpellType apply_type,
|
||||
bool allow_pets,
|
||||
bool is_raid_group_only,
|
||||
@@ -11311,7 +11313,7 @@ void Client::SetSpellDuration(
|
||||
const auto& l = GetApplySpellList(apply_type, allow_pets, is_raid_group_only, allow_bots);
|
||||
|
||||
for (const auto& m : l) {
|
||||
m->SetBuffDuration(spell_id, duration);
|
||||
m->SetBuffDuration(spell_id, duration, level);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user