mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +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:
+14
-8
@@ -77,29 +77,35 @@ public:
|
||||
|
||||
void ApplySpell(int spell_id);
|
||||
void ApplySpell(int spell_id, int duration);
|
||||
void ApplySpell(int spell_id, int duration, bool allow_pets);
|
||||
void ApplySpell(int spell_id, int duration, int level);
|
||||
void ApplySpell(int spell_id, int duration, int level, bool allow_pets);
|
||||
|
||||
void ApplySpellGroup(int spell_id);
|
||||
void ApplySpellGroup(int spell_id, int duration);
|
||||
void ApplySpellGroup(int spell_id, int duration, bool allow_pets);
|
||||
void ApplySpellGroup(int spell_id, int duration, int level);
|
||||
void ApplySpellGroup(int spell_id, int duration, int level, bool allow_pets);
|
||||
|
||||
void ApplySpellRaid(int spell_id);
|
||||
void ApplySpellRaid(int spell_id, int duration);
|
||||
void ApplySpellRaid(int spell_id, int duration, bool allow_pets);
|
||||
void ApplySpellRaid(int spell_id, int duration, bool allow_pets, bool is_raid_group_only);
|
||||
void ApplySpellRaid(int spell_id, int duration, int level);
|
||||
void ApplySpellRaid(int spell_id, int duration, int level, bool allow_pets);
|
||||
void ApplySpellRaid(int spell_id, int duration, int level, bool allow_pets, bool is_raid_group_only);
|
||||
|
||||
void SetSpellDuration(int spell_id);
|
||||
void SetSpellDuration(int spell_id, int duration);
|
||||
void SetSpellDuration(int spell_id, int duration, bool allow_pets);
|
||||
void SetSpellDuration(int spell_id, int duration, int level);
|
||||
void SetSpellDuration(int spell_id, int duration, int level, bool allow_pets);
|
||||
|
||||
void SetSpellDurationGroup(int spell_id);
|
||||
void SetSpellDurationGroup(int spell_id, int duration);
|
||||
void SetSpellDurationGroup(int spell_id, int duration, bool allow_pets);
|
||||
void SetSpellDurationGroup(int spell_id, int duration, int level);
|
||||
void SetSpellDurationGroup(int spell_id, int duration, int level, bool allow_pets);
|
||||
|
||||
void SetSpellDurationRaid(int spell_id);
|
||||
void SetSpellDurationRaid(int spell_id, int duration);
|
||||
void SetSpellDurationRaid(int spell_id, int duration, bool allow_pets);
|
||||
void SetSpellDurationRaid(int spell_id, int duration, bool allow_pets, bool is_raid_group_only);
|
||||
void SetSpellDurationRaid(int spell_id, int duration, int level);
|
||||
void SetSpellDurationRaid(int spell_id, int duration, int level, bool allow_pets);
|
||||
void SetSpellDurationRaid(int spell_id, int duration, int level, bool allow_pets, bool is_raid_group_only);
|
||||
|
||||
int CountAugmentEquippedByID(uint32 item_id);
|
||||
int CountItemEquippedByID(uint32 item_id);
|
||||
|
||||
Reference in New Issue
Block a user