mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add Area-Based Quest Methods to Perl/Lua (#4447)
* [Quest API] Add Area-Based Quest Methods to Perl/Lua * Convert some to mob * Fix
This commit is contained in:
@@ -680,11 +680,107 @@ Lua_Mob_List Lua_EntityList::GetCloseMobList(Lua_Mob mob, float distance, bool i
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaAttack(Lua_Mob attacker, float distance)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AEAttack(attacker, distance);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaAttack(Lua_Mob attacker, float distance, int16 slot_id)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AEAttack(attacker, distance, slot_id);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaAttack(Lua_Mob attacker, float distance, int16 slot_id, int count)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AEAttack(attacker, distance, slot_id, count);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaAttack(Lua_Mob attacker, float distance, int16 slot_id, int count, bool is_from_spell)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AEAttack(attacker, distance, slot_id, count, is_from_spell);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaAttack(Lua_Mob attacker, float distance, int16 slot_id, int count, bool is_from_spell, int attack_rounds)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AEAttack(attacker, distance, slot_id, count, is_from_spell, attack_rounds);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaSpell(Lua_Mob caster, Lua_Mob center, uint16 spell_id)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AESpell(caster, center, spell_id);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaSpell(Lua_Mob caster, Lua_Mob center, uint16 spell_id, bool affect_caster)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AESpell(caster, center, spell_id, affect_caster);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaSpell(Lua_Mob caster, Lua_Mob center, uint16 spell_id, bool affect_caster, int16 resist_adjust)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AESpell(caster, center, spell_id, affect_caster, resist_adjust);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaSpell(Lua_Mob caster, Lua_Mob center, uint16 spell_id, bool affect_caster, int16 resist_adjust, int max_targets)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AESpell(caster, center, spell_id, affect_caster, resist_adjust, &max_targets);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaTaunt(Lua_Client caster)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AETaunt(caster);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaTaunt(Lua_Client caster, float range)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AETaunt(caster, range);
|
||||
}
|
||||
|
||||
void Lua_EntityList::AreaTaunt(Lua_Client caster, float range, int bonus_hate)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->AETaunt(caster, range, bonus_hate);
|
||||
}
|
||||
|
||||
void Lua_EntityList::MassGroupBuff(Lua_Mob caster, Lua_Mob center, uint16 spell_id)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->MassGroupBuff(caster, center, spell_id);
|
||||
}
|
||||
|
||||
void Lua_EntityList::MassGroupBuff(Lua_Mob caster, Lua_Mob center, uint16 spell_id, bool affect_caster)
|
||||
{
|
||||
Lua_Safe_Call_Void();
|
||||
self->MassGroupBuff(caster, center, spell_id, affect_caster);
|
||||
}
|
||||
|
||||
luabind::scope lua_register_entity_list() {
|
||||
return luabind::class_<Lua_EntityList>("EntityList")
|
||||
.def(luabind::constructor<>())
|
||||
.property("null", &Lua_EntityList::Null)
|
||||
.property("valid", &Lua_EntityList::Valid)
|
||||
.def("AreaAttack", (void(Lua_EntityList::*)(Lua_Mob, float))&Lua_EntityList::AreaAttack)
|
||||
.def("AreaAttack", (void(Lua_EntityList::*)(Lua_Mob, float, int16))&Lua_EntityList::AreaAttack)
|
||||
.def("AreaAttack", (void(Lua_EntityList::*)(Lua_Mob, float, int16, int))&Lua_EntityList::AreaAttack)
|
||||
.def("AreaAttack", (void(Lua_EntityList::*)(Lua_Mob, float, int16, int, bool))&Lua_EntityList::AreaAttack)
|
||||
.def("AreaAttack", (void(Lua_EntityList::*)(Lua_Mob, float, int16, int, bool, int))&Lua_EntityList::AreaAttack)
|
||||
.def("AreaSpell", (void(Lua_EntityList::*)(Lua_Mob, Lua_Mob, uint16))&Lua_EntityList::AreaSpell)
|
||||
.def("AreaSpell", (void(Lua_EntityList::*)(Lua_Mob, Lua_Mob, uint16, bool))&Lua_EntityList::AreaSpell)
|
||||
.def("AreaSpell", (void(Lua_EntityList::*)(Lua_Mob, Lua_Mob, uint16, bool, int16))&Lua_EntityList::AreaSpell)
|
||||
.def("AreaSpell", (void(Lua_EntityList::*)(Lua_Mob, Lua_Mob, uint16, bool, int16, int))&Lua_EntityList::AreaSpell)
|
||||
.def("AreaTaunt", (void(Lua_EntityList::*)(Lua_Client))&Lua_EntityList::AreaTaunt)
|
||||
.def("AreaTaunt", (void(Lua_EntityList::*)(Lua_Client, float))&Lua_EntityList::AreaTaunt)
|
||||
.def("AreaTaunt", (void(Lua_EntityList::*)(Lua_Client, float, int))&Lua_EntityList::AreaTaunt)
|
||||
.def("CanAddHateForMob", (bool(Lua_EntityList::*)(Lua_Mob))&Lua_EntityList::CanAddHateForMob)
|
||||
.def("ChannelMessage", (void(Lua_EntityList::*)(Lua_Mob, int, uint8, const char*))&Lua_EntityList::ChannelMessage)
|
||||
.def("ClearClientPetitionQueue", (void(Lua_EntityList::*)(void))&Lua_EntityList::ClearClientPetitionQueue)
|
||||
@@ -759,6 +855,8 @@ luabind::scope lua_register_entity_list() {
|
||||
.def("Marquee", (void(Lua_EntityList::*)(uint32, std::string))&Lua_EntityList::Marquee)
|
||||
.def("Marquee", (void(Lua_EntityList::*)(uint32, std::string, uint32))&Lua_EntityList::Marquee)
|
||||
.def("Marquee", (void(Lua_EntityList::*)(uint32, uint32, uint32, uint32, uint32, std::string))&Lua_EntityList::Marquee)
|
||||
.def("MassGroupBuff", (void(Lua_EntityList::*)(Lua_Mob, Lua_Mob, uint16))&Lua_EntityList::MassGroupBuff)
|
||||
.def("MassGroupBuff", (void(Lua_EntityList::*)(Lua_Mob, Lua_Mob, uint16, bool))&Lua_EntityList::MassGroupBuff)
|
||||
.def("Message", (void(Lua_EntityList::*)(uint32, uint32, const char*))&Lua_EntityList::Message)
|
||||
.def("MessageClose", (void(Lua_EntityList::*)(Lua_Mob, bool, float, uint32, const char*))&Lua_EntityList::MessageClose)
|
||||
.def("MessageGroup", (void(Lua_EntityList::*)(Lua_Mob, bool, uint32, const char*))&Lua_EntityList::MessageGroup)
|
||||
|
||||
Reference in New Issue
Block a user