2013-05-10 20:13:35 -07:00
# ifdef LUA_EQEMU
2013-05-23 12:43:21 -07:00
# include "lua.hpp"
# include <luabind/luabind.hpp>
2013-06-02 13:47:52 -07:00
# include "client.h"
# include "npc.h"
2013-05-18 14:42:54 -07:00
# include "lua_item.h"
# include "lua_iteminst.h"
2013-05-10 20:13:35 -07:00
# include "lua_mob.h"
2013-05-17 09:49:02 -07:00
# include "lua_hate_list.h"
2013-05-13 21:56:42 -07:00
# include "lua_client.h"
2017-04-26 22:56:18 -07:00
# include "lua_stat_bonuses.h"
2013-05-10 20:13:35 -07:00
2013-07-07 15:22:20 -07:00
struct SpecialAbilities { } ;
2013-05-10 20:13:35 -07:00
const char * Lua_Mob : : GetName ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_String ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetName ( ) ;
2013-05-10 20:13:35 -07:00
}
2013-05-11 01:29:58 -07:00
void Lua_Mob : : Depop ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Depop ( ) ;
2013-05-11 01:29:58 -07:00
}
void Lua_Mob : : Depop ( bool start_spawn_timer ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Depop ( start_spawn_timer ) ;
2013-05-11 01:29:58 -07:00
}
2013-05-11 13:51:57 -07:00
bool Lua_Mob : : BehindMob ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > BehindMob ( ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : BehindMob ( Lua_Mob other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > BehindMob ( other ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : BehindMob ( Lua_Mob other , float x ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > BehindMob ( other , x ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : BehindMob ( Lua_Mob other , float x , float y ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > BehindMob ( other , x , y ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : SetLevel ( int level ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SetLevel ( level ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : SetLevel ( int level , bool command ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SetLevel ( level , command ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : SendWearChange ( int material_slot ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SendWearChange ( material_slot ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : IsMoving ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > IsMoving ( ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : GotoBind ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > GoToBind ( ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : Gate ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > Gate ( ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : Attack ( Lua_Mob other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Attack ( other ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : Attack ( Lua_Mob other , int hand ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Attack ( other , hand ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : Attack ( Lua_Mob other , int hand , bool from_riposte ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Attack ( other , hand , from_riposte ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : Attack ( Lua_Mob other , int hand , bool from_riposte , bool is_strikethrough ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Attack ( other , hand , from_riposte , is_strikethrough ) ;
2013-05-11 13:51:57 -07:00
}
bool Lua_Mob : : Attack ( Lua_Mob other , int hand , bool from_riposte , bool is_strikethrough , bool is_from_spell ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > Attack ( other , hand , from_riposte , is_strikethrough , is_from_spell ) ;
2013-05-11 13:51:57 -07:00
}
2014-06-23 16:56:37 -07:00
bool Lua_Mob : : Attack ( Lua_Mob other , int hand , bool from_riposte , bool is_strikethrough , bool is_from_spell , luabind : : adl : : object opts ) {
2013-07-08 14:37:01 -07:00
Lua_Safe_Call_Bool ( ) ;
ExtraAttackOptions options ;
if ( luabind : : type ( opts ) = = LUA_TTABLE ) {
auto cur = opts [ " armor_pen_flat " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . armor_pen_flat = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " crit_flat " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
2013-07-12 22:21:43 -07:00
options . crit_flat = luabind : : object_cast < float > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " damage_flat " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . damage_flat = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " hate_flat " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . hate_flat = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " armor_pen_percent " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . armor_pen_percent = luabind : : object_cast < float > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " crit_percent " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . crit_percent = luabind : : object_cast < float > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " damage_percent " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . damage_percent = luabind : : object_cast < float > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
cur = opts [ " hate_percent " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
options . hate_percent = luabind : : object_cast < float > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-07-08 14:37:01 -07:00
}
}
}
return self - > Attack ( other , hand , from_riposte , is_strikethrough , is_from_spell , & options ) ;
}
2013-05-11 13:51:57 -07:00
void Lua_Mob : : Damage ( Lua_Mob from , int damage , int spell_id , int attack_skill ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
return self - > Damage ( from , damage , spell_id , static_cast < EQ : : skills : : SkillType > ( attack_skill ) ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : Damage ( Lua_Mob from , int damage , int spell_id , int attack_skill , bool avoidable ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
return self - > Damage ( from , damage , spell_id , static_cast < EQ : : skills : : SkillType > ( attack_skill ) , avoidable ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : Damage ( Lua_Mob from , int damage , int spell_id , int attack_skill , bool avoidable , int buffslot ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
return self - > Damage ( from , damage , spell_id , static_cast < EQ : : skills : : SkillType > ( attack_skill ) , avoidable , buffslot ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : Damage ( Lua_Mob from , int damage , int spell_id , int attack_skill , bool avoidable , int buffslot , bool buff_tic ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
return self - > Damage ( from , damage , spell_id , static_cast < EQ : : skills : : SkillType > ( attack_skill ) , avoidable , buffslot , buff_tic ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : RangedAttack ( Lua_Mob other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > RangedAttack ( other ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : ThrowingAttack ( Lua_Mob other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > ThrowingAttack ( other ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : Heal ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > Heal ( ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : HealDamage ( uint32 amount ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > HealDamage ( amount ) ;
2013-05-11 13:51:57 -07:00
}
void Lua_Mob : : HealDamage ( uint32 amount , Lua_Mob other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > HealDamage ( amount , other ) ;
2013-05-11 13:51:57 -07:00
}
2013-05-11 20:34:04 -07:00
uint32 Lua_Mob : : GetLevelCon ( int other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetLevelCon ( other ) ;
2013-05-11 20:34:04 -07:00
}
uint32 Lua_Mob : : GetLevelCon ( int my , int other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetLevelCon ( my , other ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : SetHP ( int hp ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SetHP ( hp ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : DoAnim ( int anim_num ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > DoAnim ( anim_num ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : DoAnim ( int anim_num , int type ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > DoAnim ( anim_num , type ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : DoAnim ( int anim_num , int type , bool ackreq ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > DoAnim ( anim_num , type , ackreq ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : DoAnim ( int anim_num , int type , bool ackreq , int filter ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > DoAnim ( anim_num , type , ackreq , static_cast < eqFilterType > ( filter ) ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : ChangeSize ( double in_size ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-18 14:42:54 -07:00
self - > ChangeSize ( static_cast < float > ( in_size ) ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : ChangeSize ( double in_size , bool no_restriction ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-18 14:42:54 -07:00
self - > ChangeSize ( static_cast < float > ( in_size ) , no_restriction ) ;
2013-05-11 20:34:04 -07:00
}
2019-04-24 10:32:09 -04:00
void Lua_Mob : : RandomizeFeatures ( bool send_illusion , bool save_variables ) {
Lua_Safe_Call_Void ( ) ;
self - > RandomizeFeatures ( send_illusion , save_variables ) ;
}
2013-05-11 20:34:04 -07:00
void Lua_Mob : : GMMove ( double x , double y , double z ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-18 14:42:54 -07:00
self - > GMMove ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : GMMove ( double x , double y , double z , double heading ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-18 14:42:54 -07:00
self - > GMMove ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) , static_cast < float > ( heading ) ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : GMMove ( double x , double y , double z , double heading , bool send_update ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-18 14:42:54 -07:00
self - > GMMove ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) , static_cast < float > ( heading ) , send_update ) ;
2013-05-11 20:34:04 -07:00
}
2018-03-06 23:03:55 -05:00
void Lua_Mob : : TryMoveAlong ( float distance , float angle ) {
Lua_Safe_Call_Void ( ) ;
self - > TryMoveAlong ( distance , angle ) ;
}
void Lua_Mob : : TryMoveAlong ( float distance , float angle , bool send ) {
Lua_Safe_Call_Void ( ) ;
self - > TryMoveAlong ( distance , angle , send ) ;
}
2013-05-11 20:34:04 -07:00
bool Lua_Mob : : HasProcs ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > HasProcs ( ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : IsInvisible ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > IsInvisible ( ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : IsInvisible ( Lua_Mob other ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > IsInvisible ( other ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : SetInvisible ( int state ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SetInvisible ( state ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : FindBuff ( int spell_id ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > FindBuff ( spell_id ) ;
2013-05-11 20:34:04 -07:00
}
2019-06-13 18:17:37 -04:00
uint16 Lua_Mob : : FindBuffBySlot ( int slot ) {
Lua_Safe_Call_Int ( ) ;
return self - > FindBuffBySlot ( slot ) ;
}
uint32 Lua_Mob : : BuffCount ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > BuffCount ( ) ;
}
2013-05-11 20:34:04 -07:00
bool Lua_Mob : : FindType ( int type ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > FindType ( type ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : FindType ( int type , bool offensive ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > FindType ( type , offensive ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : FindType ( int type , bool offensive , int threshold ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > FindType ( type , offensive , threshold ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetBuffSlotFromType ( int slot ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetBuffSlotFromType ( slot ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetBaseRace ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetBaseRace ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetBaseGender ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetBaseGender ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetDeity ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetDeity ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetRace ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetRace ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetGender ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetGender ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetTexture ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetTexture ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetHelmTexture ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetHelmTexture ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetHairColor ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetHairColor ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetBeardColor ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetBeardColor ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetEyeColor1 ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetEyeColor1 ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetEyeColor2 ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetEyeColor2 ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetHairStyle ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetHairStyle ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetLuclinFace ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetLuclinFace ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetBeard ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetBeard ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetDrakkinHeritage ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetDrakkinHeritage ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetDrakkinTattoo ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetDrakkinTattoo ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetDrakkinDetails ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetDrakkinDetails ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetClass ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetClass ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetLevel ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetLevel ( ) ;
2013-05-11 20:34:04 -07:00
}
const char * Lua_Mob : : GetCleanName ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_String ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCleanName ( ) ;
2013-05-11 20:34:04 -07:00
}
Lua_Mob Lua_Mob : : GetTarget ( ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_Mob ) ;
2013-05-13 14:29:50 -07:00
return Lua_Mob ( self - > GetTarget ( ) ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : SetTarget ( Lua_Mob t ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SetTarget ( t ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetHPRatio ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetHPRatio ( ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : IsWarriorClass ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > IsWarriorClass ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetHP ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetHP ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxHP ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxHP ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetItemHPBonuses ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetItemHPBonuses ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetSpellHPBonuses ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetSpellHPBonuses ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetWalkspeed ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetWalkspeed ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetRunspeed ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetRunspeed ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetCasterLevel ( int spell_id ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCasterLevel ( spell_id ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxMana ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxMana ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMana ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMana ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : SetMana ( int mana ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > SetMana ( mana ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetManaRatio ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetManaRatio ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetAC ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetAC ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetATK ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetATK ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetSTR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetSTR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetSTA ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetSTA ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetDEX ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetDEX ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetAGI ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetAGI ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetINT ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetINT ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetWIS ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetWIS ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetCHA ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCHA ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetFR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetFR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetDR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetDR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetPR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetPR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetCR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetCorruption ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCorrup ( ) ;
2013-05-11 20:34:04 -07:00
}
2015-01-06 13:51:36 -05:00
int Lua_Mob : : GetPhR ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetPhR ( ) ;
}
2013-05-11 20:34:04 -07:00
int Lua_Mob : : GetMaxSTR ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxSTR ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxSTA ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxSTA ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxDEX ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxDEX ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxAGI ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxAGI ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxINT ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxINT ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxWIS ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxWIS ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetMaxCHA ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetMaxCHA ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : ResistSpell ( int resist_type , int spell_id , Lua_Mob caster ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > ResistSpell ( resist_type , spell_id , caster ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : ResistSpell ( int resist_type , int spell_id , Lua_Mob caster , bool use_resist_override ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > ResistSpell ( resist_type , spell_id , caster , use_resist_override ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : ResistSpell ( int resist_type , int spell_id , Lua_Mob caster , bool use_resist_override , int resist_override ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > ResistSpell ( resist_type , spell_id , caster , use_resist_override , resist_override ) ;
2013-05-11 20:34:04 -07:00
}
2014-11-26 17:34:45 -08:00
double Lua_Mob : : ResistSpell ( int resist_type , int spell_id , Lua_Mob caster , bool use_resist_override , int resist_override ,
2013-05-11 20:34:04 -07:00
bool charisma_check ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > ResistSpell ( resist_type , spell_id , caster , use_resist_override , resist_override , charisma_check ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetSpecializeSkillValue ( int spell_id ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetSpecializeSkillValue ( spell_id ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetNPCTypeID ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetNPCTypeID ( ) ;
2013-05-11 20:34:04 -07:00
}
bool Lua_Mob : : IsTargeted ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Bool ( ) ;
2013-05-13 14:29:50 -07:00
return self - > IsTargeted ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetX ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetX ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetY ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetY ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetZ ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetZ ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetHeading ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetHeading ( ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetWaypointX ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2015-01-23 00:01:10 -08:00
return self - > GetCurrentWayPoint ( ) . x ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetWaypointY ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2015-01-23 00:01:10 -08:00
return self - > GetCurrentWayPoint ( ) . y ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetWaypointZ ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2015-01-23 00:01:10 -08:00
return self - > GetCurrentWayPoint ( ) . z ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetWaypointH ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2015-01-23 00:01:10 -08:00
return self - > GetCurrentWayPoint ( ) . w ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetWaypointPause ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCWPP ( ) ;
2013-05-11 20:34:04 -07:00
}
int Lua_Mob : : GetWaypointID ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Int ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetCWP ( ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : SetCurrentWP ( int wp ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > SetCurrentWP ( wp ) ;
2013-05-11 20:34:04 -07:00
}
double Lua_Mob : : GetSize ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Real ( ) ;
2013-05-13 14:29:50 -07:00
return self - > GetSize ( ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : Message ( int type , const char * message ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > Message ( type , message ) ;
2013-05-11 20:34:04 -07:00
}
2019-08-11 00:14:02 -05:00
void Lua_Mob : : MessageString ( int type , int string_id , uint32 distance ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2019-08-11 00:14:02 -05:00
self - > MessageString ( type , string_id , distance ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : Say ( const char * message ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > Say ( message ) ;
2013-05-11 20:34:04 -07:00
}
2019-07-18 18:20:22 -07:00
void Lua_Mob : : Say ( const char * message , int language ) {
Lua_Safe_Call_Void ( ) ;
entity_list . ChannelMessage ( self , ChatChannel_Say , language , message ) ; // these run through the client channels and probably shouldn't for NPCs, but oh well
}
2013-05-13 21:56:42 -07:00
void Lua_Mob : : QuestSay ( Lua_Client client , const char * message ) {
Lua_Safe_Call_Void ( ) ;
2019-07-18 00:56:46 -04:00
Journal : : Options journal_opts ;
journal_opts . speak_mode = Journal : : SpeakMode : : Say ;
journal_opts . journal_mode = RuleB ( NPC , EnableNPCQuestJournal ) ? Journal : : Mode : : Log2 : Journal : : Mode : : None ;
journal_opts . language = 0 ;
2019-08-11 00:00:55 -05:00
journal_opts . message_type = Chat : : NPCQuestSay ;
2019-07-18 00:56:46 -04:00
journal_opts . target_spawn_id = 0 ;
self - > QuestJournalledSay ( client , message , journal_opts ) ;
}
void Lua_Mob : : QuestSay ( Lua_Client client , const char * message , luabind : : adl : : object opts ) {
Lua_Safe_Call_Void ( ) ;
Journal : : Options journal_opts ;
// defaults
journal_opts . speak_mode = Journal : : SpeakMode : : Say ;
journal_opts . journal_mode = Journal : : Mode : : Log2 ;
journal_opts . language = 0 ;
2019-08-11 00:00:55 -05:00
journal_opts . message_type = Chat : : NPCQuestSay ;
2019-07-18 00:56:46 -04:00
journal_opts . target_spawn_id = 0 ;
if ( luabind : : type ( opts ) = = LUA_TTABLE ) {
auto cur = opts [ " speak_mode " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
journal_opts . speak_mode = static_cast < Journal : : SpeakMode > ( luabind : : object_cast < int > ( cur ) ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2019-07-18 00:56:46 -04:00
}
}
cur = opts [ " journal_mode " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
journal_opts . journal_mode = static_cast < Journal : : Mode > ( luabind : : object_cast < int > ( cur ) ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2019-07-18 00:56:46 -04:00
}
}
cur = opts [ " language " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
journal_opts . language = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2019-07-18 00:56:46 -04:00
}
}
cur = opts [ " message_type " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
journal_opts . message_type = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2019-07-18 00:56:46 -04:00
}
}
}
// if rule disables it, we override provided
if ( ! RuleB ( NPC , EnableNPCQuestJournal ) )
journal_opts . journal_mode = Journal : : Mode : : None ;
self - > QuestJournalledSay ( client , message , journal_opts ) ;
2013-05-13 21:56:42 -07:00
}
2013-05-11 20:34:04 -07:00
void Lua_Mob : : Shout ( const char * message ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > Shout ( message ) ;
2013-05-11 20:34:04 -07:00
}
2019-07-18 18:20:22 -07:00
void Lua_Mob : : Shout ( const char * message , int language ) {
Lua_Safe_Call_Void ( ) ;
entity_list . ChannelMessage ( self , ChatChannel_Shout , language , message ) ;
}
2013-05-11 20:34:04 -07:00
void Lua_Mob : : Emote ( const char * message ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > Emote ( message ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : InterruptSpell ( ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > InterruptSpell ( ) ;
2013-05-11 20:34:04 -07:00
}
void Lua_Mob : : InterruptSpell ( int spell_id ) {
2013-05-13 14:40:15 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-13 14:29:50 -07:00
self - > InterruptSpell ( spell_id ) ;
}
2013-05-13 21:56:42 -07:00
bool Lua_Mob : : CastSpell ( int spell_id , int target_id ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CastSpell ( spell_id , target_id ) ;
}
bool Lua_Mob : : CastSpell ( int spell_id , int target_id , int slot ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > CastSpell ( spell_id , target_id , static_cast < EQ : : spells : : CastingSlot > ( slot ) ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : CastSpell ( int spell_id , int target_id , int slot , int cast_time ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > CastSpell ( spell_id , target_id , static_cast < EQ : : spells : : CastingSlot > ( slot ) , cast_time ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : CastSpell ( int spell_id , int target_id , int slot , int cast_time , int mana_cost ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > CastSpell ( spell_id , target_id , static_cast < EQ : : spells : : CastingSlot > ( slot ) , cast_time , mana_cost ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : CastSpell ( int spell_id , int target_id , int slot , int cast_time , int mana_cost , int item_slot ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > CastSpell ( spell_id , target_id , static_cast < EQ : : spells : : CastingSlot > ( slot ) , cast_time , mana_cost , nullptr , static_cast < uint32 > ( item_slot ) ) ;
2013-05-13 21:56:42 -07:00
}
2014-11-26 17:34:45 -08:00
bool Lua_Mob : : CastSpell ( int spell_id , int target_id , int slot , int cast_time , int mana_cost , int item_slot , int timer ,
2013-05-13 21:56:42 -07:00
int timer_duration ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > CastSpell ( spell_id , target_id , static_cast < EQ : : spells : : CastingSlot > ( slot ) , cast_time , mana_cost , nullptr , static_cast < uint32 > ( item_slot ) ,
2013-05-13 21:56:42 -07:00
static_cast < uint32 > ( timer ) , static_cast < uint32 > ( timer_duration ) ) ;
}
2014-11-26 17:34:45 -08:00
bool Lua_Mob : : CastSpell ( int spell_id , int target_id , int slot , int cast_time , int mana_cost , int item_slot , int timer ,
2013-05-13 21:56:42 -07:00
int timer_duration , int resist_adjust ) {
Lua_Safe_Call_Bool ( ) ;
int16 res = resist_adjust ;
2020-05-17 18:36:06 -07:00
return self - > CastSpell ( spell_id , target_id , static_cast < EQ : : spells : : CastingSlot > ( slot ) , cast_time , mana_cost , nullptr , static_cast < uint32 > ( item_slot ) ,
2015-06-16 23:41:46 -07:00
static_cast < uint32 > ( timer ) , static_cast < uint32 > ( timer_duration ) , & res ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : SpellFinished ( int spell_id , Lua_Mob target ) {
Lua_Safe_Call_Bool ( ) ;
return self - > SpellFinished ( spell_id , target ) ;
}
bool Lua_Mob : : SpellFinished ( int spell_id , Lua_Mob target , int slot ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > SpellFinished ( spell_id , target , static_cast < EQ : : spells : : CastingSlot > ( slot ) ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : SpellFinished ( int spell_id , Lua_Mob target , int slot , int mana_used ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > SpellFinished ( spell_id , target , static_cast < EQ : : spells : : CastingSlot > ( slot ) , mana_used ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : SpellFinished ( int spell_id , Lua_Mob target , int slot , int mana_used , uint32 inventory_slot ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > SpellFinished ( spell_id , target , static_cast < EQ : : spells : : CastingSlot > ( slot ) , mana_used , inventory_slot ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : SpellFinished ( int spell_id , Lua_Mob target , int slot , int mana_used , uint32 inventory_slot , int resist_adjust ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > SpellFinished ( spell_id , target , static_cast < EQ : : spells : : CastingSlot > ( slot ) , mana_used , inventory_slot , resist_adjust ) ;
2013-05-13 21:56:42 -07:00
}
bool Lua_Mob : : SpellFinished ( int spell_id , Lua_Mob target , int slot , int mana_used , uint32 inventory_slot , int resist_adjust , bool proc ) {
Lua_Safe_Call_Bool ( ) ;
2020-05-17 18:36:06 -07:00
return self - > SpellFinished ( spell_id , target , static_cast < EQ : : spells : : CastingSlot > ( slot ) , mana_used , inventory_slot , resist_adjust , proc ) ;
2013-05-13 21:56:42 -07:00
}
2017-04-08 02:07:08 -04:00
void Lua_Mob : : SendBeginCast ( int spell_id , int cast_time ) {
Lua_Safe_Call_Void ( ) ;
self - > SendBeginCast ( spell_id , cast_time ) ;
}
2013-05-13 21:56:42 -07:00
void Lua_Mob : : SpellEffect ( Lua_Mob caster , int spell_id , double partial ) {
Lua_Safe_Call_Void ( ) ;
2013-05-18 14:42:54 -07:00
self - > SpellEffect ( caster , spell_id , static_cast < float > ( partial ) ) ;
2013-05-13 21:56:42 -07:00
}
2013-05-13 14:29:50 -07:00
2013-05-13 21:56:42 -07:00
Lua_Mob Lua_Mob : : GetPet ( ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_Mob ) ;
2013-05-13 21:56:42 -07:00
return Lua_Mob ( self - > GetPet ( ) ) ;
}
Lua_Mob Lua_Mob : : GetOwner ( ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_Mob ) ;
2013-05-13 21:56:42 -07:00
return Lua_Mob ( self - > GetOwner ( ) ) ;
}
2013-05-11 20:34:04 -07:00
2013-05-17 09:49:02 -07:00
Lua_HateList Lua_Mob : : GetHateList ( ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_HateList ) ;
2013-05-17 09:49:02 -07:00
Lua_HateList ret ;
2014-11-26 17:34:45 -08:00
2013-05-17 10:48:59 -07:00
auto h_list = self - > GetHateList ( ) ;
2013-05-17 09:49:02 -07:00
auto iter = h_list . begin ( ) ;
while ( iter ! = h_list . end ( ) ) {
2013-05-17 17:10:38 -07:00
Lua_HateEntry e ( * iter ) ;
2013-05-17 09:49:02 -07:00
ret . entries . push_back ( e ) ;
+ + iter ;
}
return ret ;
}
2013-05-11 13:51:57 -07:00
2013-05-18 14:42:54 -07:00
Lua_Mob Lua_Mob : : GetHateTop ( ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_Mob ) ;
2013-05-18 14:42:54 -07:00
return Lua_Mob ( self - > GetHateTop ( ) ) ;
}
Lua_Mob Lua_Mob : : GetHateDamageTop ( Lua_Mob other ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_Mob ) ;
2013-05-18 14:42:54 -07:00
return Lua_Mob ( self - > GetHateDamageTop ( other ) ) ;
}
Lua_Mob Lua_Mob : : GetHateRandom ( ) {
2013-06-02 00:15:26 -07:00
Lua_Safe_Call_Class ( Lua_Mob ) ;
2013-05-18 14:42:54 -07:00
return Lua_Mob ( self - > GetHateRandom ( ) ) ;
}
void Lua_Mob : : AddToHateList ( Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
self - > AddToHateList ( other ) ;
}
void Lua_Mob : : AddToHateList ( Lua_Mob other , int hate ) {
Lua_Safe_Call_Void ( ) ;
self - > AddToHateList ( other , hate ) ;
}
void Lua_Mob : : AddToHateList ( Lua_Mob other , int hate , int damage ) {
Lua_Safe_Call_Void ( ) ;
self - > AddToHateList ( other , hate , damage ) ;
}
void Lua_Mob : : AddToHateList ( Lua_Mob other , int hate , int damage , bool yell_for_help ) {
Lua_Safe_Call_Void ( ) ;
self - > AddToHateList ( other , hate , damage , yell_for_help ) ;
}
void Lua_Mob : : AddToHateList ( Lua_Mob other , int hate , int damage , bool yell_for_help , bool frenzy ) {
Lua_Safe_Call_Void ( ) ;
self - > AddToHateList ( other , hate , damage , yell_for_help , frenzy ) ;
}
void Lua_Mob : : AddToHateList ( Lua_Mob other , int hate , int damage , bool yell_for_help , bool frenzy , bool buff_tic ) {
Lua_Safe_Call_Void ( ) ;
self - > AddToHateList ( other , hate , damage , yell_for_help , frenzy , buff_tic ) ;
}
void Lua_Mob : : SetHate ( Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
2014-12-27 18:24:42 -06:00
self - > SetHateAmountOnEnt ( other ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : SetHate ( Lua_Mob other , int hate ) {
Lua_Safe_Call_Void ( ) ;
2014-12-27 18:24:42 -06:00
self - > SetHateAmountOnEnt ( other , hate ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : SetHate ( Lua_Mob other , int hate , int damage ) {
Lua_Safe_Call_Void ( ) ;
2014-12-27 18:24:42 -06:00
self - > SetHateAmountOnEnt ( other , hate , damage ) ;
2013-05-18 14:42:54 -07:00
}
2014-02-18 16:52:51 -05:00
void Lua_Mob : : HalveAggro ( Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
self - > HalveAggro ( other ) ;
}
void Lua_Mob : : DoubleAggro ( Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
self - > DoubleAggro ( other ) ;
}
2013-05-18 14:42:54 -07:00
uint32 Lua_Mob : : GetHateAmount ( Lua_Mob target ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetHateAmount ( target ) ;
}
uint32 Lua_Mob : : GetHateAmount ( Lua_Mob target , bool is_damage ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetHateAmount ( target , is_damage ) ;
}
uint32 Lua_Mob : : GetDamageAmount ( Lua_Mob target ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetDamageAmount ( target ) ;
}
void Lua_Mob : : WipeHateList ( ) {
Lua_Safe_Call_Void ( ) ;
self - > WipeHateList ( ) ;
}
bool Lua_Mob : : CheckAggro ( Lua_Mob other ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CheckAggro ( other ) ;
}
void Lua_Mob : : Stun ( int duration ) {
Lua_Safe_Call_Void ( ) ;
self - > Stun ( duration ) ;
}
void Lua_Mob : : UnStun ( ) {
Lua_Safe_Call_Void ( ) ;
self - > UnStun ( ) ;
}
bool Lua_Mob : : IsStunned ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsStunned ( ) ;
}
void Lua_Mob : : Spin ( ) {
Lua_Safe_Call_Void ( ) ;
self - > Spin ( ) ;
}
void Lua_Mob : : Kill ( ) {
Lua_Safe_Call_Void ( ) ;
self - > Kill ( ) ;
}
bool Lua_Mob : : CanThisClassDoubleAttack ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CanThisClassDoubleAttack ( ) ;
}
bool Lua_Mob : : CanThisClassDualWield ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CanThisClassDualWield ( ) ;
}
bool Lua_Mob : : CanThisClassRiposte ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CanThisClassRiposte ( ) ;
}
bool Lua_Mob : : CanThisClassDodge ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CanThisClassDodge ( ) ;
}
bool Lua_Mob : : CanThisClassParry ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CanThisClassParry ( ) ;
}
bool Lua_Mob : : CanThisClassBlock ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CanThisClassBlock ( ) ;
}
void Lua_Mob : : SetInvul ( bool value ) {
Lua_Safe_Call_Void ( ) ;
self - > SetInvul ( value ) ;
}
bool Lua_Mob : : GetInvul ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > GetInvul ( ) ;
}
void Lua_Mob : : SetExtraHaste ( int haste ) {
Lua_Safe_Call_Void ( ) ;
self - > SetExtraHaste ( haste ) ;
}
int Lua_Mob : : GetHaste ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetHaste ( ) ;
}
2016-01-03 14:38:50 -05:00
int Lua_Mob : : GetHandToHandDamage ( ) {
2013-05-18 14:42:54 -07:00
Lua_Safe_Call_Int ( ) ;
2016-01-03 14:38:50 -05:00
return self - > GetHandToHandDamage ( ) ;
2013-05-18 14:42:54 -07:00
}
2016-01-03 14:38:50 -05:00
int Lua_Mob : : GetHandToHandDelay ( ) {
2013-05-18 14:42:54 -07:00
Lua_Safe_Call_Int ( ) ;
2016-01-03 14:38:50 -05:00
return self - > GetHandToHandDelay ( ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : Mesmerize ( ) {
Lua_Safe_Call_Void ( ) ;
self - > Mesmerize ( ) ;
}
bool Lua_Mob : : IsMezzed ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsMezzed ( ) ;
}
bool Lua_Mob : : IsEnraged ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsEnraged ( ) ;
}
int Lua_Mob : : GetReverseFactionCon ( Lua_Mob other ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetReverseFactionCon ( other ) ;
}
bool Lua_Mob : : IsAIControlled ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsAIControlled ( ) ;
}
float Lua_Mob : : GetAggroRange ( ) {
Lua_Safe_Call_Real ( ) ;
return self - > GetAggroRange ( ) ;
}
float Lua_Mob : : GetAssistRange ( ) {
Lua_Safe_Call_Real ( ) ;
return self - > GetAssistRange ( ) ;
}
void Lua_Mob : : SetPetOrder ( int order ) {
Lua_Safe_Call_Void ( ) ;
self - > SetPetOrder ( static_cast < Mob : : eStandingPetOrder > ( order ) ) ;
}
int Lua_Mob : : GetPetOrder ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetPetOrder ( ) ;
}
bool Lua_Mob : : IsRoamer ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsRoamer ( ) ;
}
bool Lua_Mob : : IsRooted ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsRooted ( ) ;
}
bool Lua_Mob : : IsEngaged ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsEngaged ( ) ;
}
void Lua_Mob : : FaceTarget ( Lua_Mob target ) {
Lua_Safe_Call_Void ( ) ;
self - > FaceTarget ( target ) ;
}
void Lua_Mob : : SetHeading ( double in ) {
Lua_Safe_Call_Void ( ) ;
self - > SetHeading ( static_cast < float > ( in ) ) ;
}
double Lua_Mob : : CalculateHeadingToTarget ( double in_x , double in_y ) {
Lua_Safe_Call_Real ( ) ;
return self - > CalculateHeadingToTarget ( static_cast < float > ( in_x ) , static_cast < float > ( in_y ) ) ;
}
2018-10-12 00:03:58 -07:00
void Lua_Mob : : RunTo ( double x , double y , double z ) {
2018-09-20 16:14:47 -07:00
Lua_Safe_Call_Void ( ) ;
2018-10-12 00:03:58 -07:00
self - > RunTo ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
}
void Lua_Mob : : WalkTo ( double x , double y , double z ) {
Lua_Safe_Call_Void ( ) ;
self - > WalkTo ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
}
void Lua_Mob : : NavigateTo ( double x , double y , double z ) {
Lua_Safe_Call_Void ( ) ;
self - > NavigateTo ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
2018-09-21 23:54:07 -07:00
}
void Lua_Mob : : StopNavigation ( ) {
Lua_Safe_Call_Void ( ) ;
self - > StopNavigation ( ) ;
2013-05-18 14:42:54 -07:00
}
float Lua_Mob : : CalculateDistance ( double x , double y , double z ) {
Lua_Safe_Call_Real ( ) ;
return self - > CalculateDistance ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
}
void Lua_Mob : : SendTo ( double x , double y , double z ) {
Lua_Safe_Call_Void ( ) ;
self - > SendTo ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
}
void Lua_Mob : : SendToFixZ ( double x , double y , double z ) {
Lua_Safe_Call_Void ( ) ;
self - > SendToFixZ ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
}
void Lua_Mob : : NPCSpecialAttacks ( const char * parse , int perm ) {
Lua_Safe_Call_Void ( ) ;
self - > NPCSpecialAttacks ( parse , perm ) ;
}
void Lua_Mob : : NPCSpecialAttacks ( const char * parse , int perm , bool reset ) {
Lua_Safe_Call_Void ( ) ;
self - > NPCSpecialAttacks ( parse , perm , reset ) ;
}
void Lua_Mob : : NPCSpecialAttacks ( const char * parse , int perm , bool reset , bool remove ) {
Lua_Safe_Call_Void ( ) ;
self - > NPCSpecialAttacks ( parse , perm , reset , remove ) ;
}
int Lua_Mob : : GetResist ( int type ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetResist ( type ) ;
}
bool Lua_Mob : : Charmed ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > Charmed ( ) ;
}
int Lua_Mob : : CheckAggroAmount ( int spell_id ) {
Lua_Safe_Call_Int ( ) ;
2015-07-16 22:38:32 -04:00
return self - > CheckAggroAmount ( spell_id , nullptr ) ;
2013-05-18 14:42:54 -07:00
}
int Lua_Mob : : CheckAggroAmount ( int spell_id , bool is_proc ) {
Lua_Safe_Call_Int ( ) ;
2015-07-16 22:38:32 -04:00
return self - > CheckAggroAmount ( spell_id , nullptr , is_proc ) ;
2013-05-18 14:42:54 -07:00
}
int Lua_Mob : : CheckHealAggroAmount ( int spell_id ) {
Lua_Safe_Call_Int ( ) ;
2015-07-16 22:38:32 -04:00
return self - > CheckHealAggroAmount ( spell_id , nullptr ) ;
2013-05-18 14:42:54 -07:00
}
int Lua_Mob : : CheckHealAggroAmount ( int spell_id , uint32 heal_possible ) {
Lua_Safe_Call_Int ( ) ;
2015-07-16 22:38:32 -04:00
return self - > CheckHealAggroAmount ( spell_id , nullptr , heal_possible ) ;
2013-05-18 14:42:54 -07:00
}
int Lua_Mob : : GetAA ( int id ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetAA ( id ) ;
}
2015-06-17 12:05:09 -07:00
int Lua_Mob : : GetAAByAAID ( int id ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetAAByAAID ( id ) ;
}
bool Lua_Mob : : SetAA ( int rank_id , int new_value ) {
Lua_Safe_Call_Bool ( ) ;
return self - > SetAA ( rank_id , new_value ) ;
}
bool Lua_Mob : : SetAA ( int rank_id , int new_value , int charges ) {
Lua_Safe_Call_Bool ( ) ;
return self - > SetAA ( rank_id , new_value , charges ) ;
}
2013-05-18 14:42:54 -07:00
bool Lua_Mob : : DivineAura ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > DivineAura ( ) ;
}
void Lua_Mob : : SetOOCRegen ( int regen ) {
Lua_Safe_Call_Void ( ) ;
self - > SetOOCRegen ( regen ) ;
}
const char * Lua_Mob : : GetEntityVariable ( const char * name ) {
Lua_Safe_Call_String ( ) ;
return self - > GetEntityVariable ( name ) ;
}
void Lua_Mob : : SetEntityVariable ( const char * name , const char * value ) {
Lua_Safe_Call_Void ( ) ;
self - > SetEntityVariable ( name , value ) ;
}
bool Lua_Mob : : EntityVariableExists ( const char * name ) {
Lua_Safe_Call_Bool ( ) ;
return self - > EntityVariableExists ( name ) ;
}
void Lua_Mob : : Signal ( uint32 id ) {
Lua_Safe_Call_Void ( ) ;
2014-11-26 17:34:45 -08:00
2013-05-18 14:42:54 -07:00
if ( self - > IsClient ( ) ) {
self - > CastToClient ( ) - > Signal ( id ) ;
} else if ( self - > IsNPC ( ) ) {
self - > CastToNPC ( ) - > SignalNPC ( id ) ;
}
}
bool Lua_Mob : : CombatRange ( Lua_Mob other ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CombatRange ( other ) ;
}
void Lua_Mob : : DoSpecialAttackDamage ( Lua_Mob other , int skill , int max_damage ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoSpecialAttackDamage ( other , static_cast < EQ : : skills : : SkillType > ( skill ) , max_damage ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoSpecialAttackDamage ( Lua_Mob other , int skill , int max_damage , int min_damage ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoSpecialAttackDamage ( other , static_cast < EQ : : skills : : SkillType > ( skill ) , max_damage , min_damage ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoSpecialAttackDamage ( Lua_Mob other , int skill , int max_damage , int min_damage , int hate_override ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoSpecialAttackDamage ( other , static_cast < EQ : : skills : : SkillType > ( skill ) , max_damage , min_damage , hate_override ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoSpecialAttackDamage ( Lua_Mob other , int skill , int max_damage , int min_damage , int hate_override , int reuse_time ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoSpecialAttackDamage ( other , static_cast < EQ : : skills : : SkillType > ( skill ) , max_damage , min_damage , hate_override , reuse_time ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoThrowingAttackDmg ( Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
self - > DoThrowingAttackDmg ( other ) ;
}
void Lua_Mob : : DoThrowingAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon ) {
Lua_Safe_Call_Void ( ) ;
self - > DoThrowingAttackDmg ( other , range_weapon ) ;
}
void Lua_Mob : : DoThrowingAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_Item item ) {
Lua_Safe_Call_Void ( ) ;
self - > DoThrowingAttackDmg ( other , range_weapon , item ) ;
}
void Lua_Mob : : DoThrowingAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_Item item , int weapon_damage ) {
Lua_Safe_Call_Void ( ) ;
self - > DoThrowingAttackDmg ( other , range_weapon , item , weapon_damage ) ;
}
void Lua_Mob : : DoThrowingAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_Item item , int weapon_damage , int chance_mod ) {
Lua_Safe_Call_Void ( ) ;
self - > DoThrowingAttackDmg ( other , range_weapon , item , weapon_damage , chance_mod ) ;
}
2014-11-26 17:34:45 -08:00
void Lua_Mob : : DoThrowingAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_Item item , int weapon_damage , int chance_mod ,
2013-05-18 14:42:54 -07:00
int focus ) {
Lua_Safe_Call_Void ( ) ;
self - > DoThrowingAttackDmg ( other , range_weapon , item , weapon_damage , chance_mod , focus ) ;
}
void Lua_Mob : : DoMeleeSkillAttackDmg ( Lua_Mob other , int weapon_damage , int skill ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoMeleeSkillAttackDmg ( other , weapon_damage , static_cast < EQ : : skills : : SkillType > ( skill ) ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoMeleeSkillAttackDmg ( Lua_Mob other , int weapon_damage , int skill , int chance_mod ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoMeleeSkillAttackDmg ( other , weapon_damage , static_cast < EQ : : skills : : SkillType > ( skill ) , chance_mod ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoMeleeSkillAttackDmg ( Lua_Mob other , int weapon_damage , int skill , int chance_mod , int focus ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoMeleeSkillAttackDmg ( other , weapon_damage , static_cast < EQ : : skills : : SkillType > ( skill ) , chance_mod , focus ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoMeleeSkillAttackDmg ( Lua_Mob other , int weapon_damage , int skill , int chance_mod , int focus , bool can_riposte ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > DoMeleeSkillAttackDmg ( other , weapon_damage , static_cast < EQ : : skills : : SkillType > ( skill ) , chance_mod , focus , can_riposte ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : DoArcheryAttackDmg ( Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
self - > DoArcheryAttackDmg ( other ) ;
}
void Lua_Mob : : DoArcheryAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon ) {
Lua_Safe_Call_Void ( ) ;
self - > DoArcheryAttackDmg ( other , range_weapon ) ;
}
void Lua_Mob : : DoArcheryAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_ItemInst ammo ) {
Lua_Safe_Call_Void ( ) ;
self - > DoArcheryAttackDmg ( other , range_weapon , ammo ) ;
}
void Lua_Mob : : DoArcheryAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_ItemInst ammo , int weapon_damage ) {
Lua_Safe_Call_Void ( ) ;
self - > DoArcheryAttackDmg ( other , range_weapon , ammo , weapon_damage ) ;
}
void Lua_Mob : : DoArcheryAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_ItemInst ammo , int weapon_damage , int chance_mod ) {
Lua_Safe_Call_Void ( ) ;
self - > DoArcheryAttackDmg ( other , range_weapon , ammo , weapon_damage , chance_mod ) ;
}
2014-11-26 17:34:45 -08:00
void Lua_Mob : : DoArcheryAttackDmg ( Lua_Mob other , Lua_ItemInst range_weapon , Lua_ItemInst ammo , int weapon_damage , int chance_mod ,
2013-05-18 14:42:54 -07:00
int focus ) {
Lua_Safe_Call_Void ( ) ;
self - > DoArcheryAttackDmg ( other , range_weapon , ammo , weapon_damage , chance_mod , focus ) ;
}
bool Lua_Mob : : CheckLoS ( Lua_Mob other ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CheckLosFN ( other ) ;
}
bool Lua_Mob : : CheckLoSToLoc ( double x , double y , double z ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CheckLosFN ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) , 6.0f ) ;
}
bool Lua_Mob : : CheckLoSToLoc ( double x , double y , double z , double mob_size ) {
Lua_Safe_Call_Bool ( ) ;
return self - > CheckLosFN ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) , static_cast < float > ( mob_size ) ) ;
}
double Lua_Mob : : FindGroundZ ( double x , double y ) {
Lua_Safe_Call_Real ( ) ;
return self - > GetGroundZ ( static_cast < float > ( x ) , static_cast < float > ( y ) ) ;
}
double Lua_Mob : : FindGroundZ ( double x , double y , double z ) {
Lua_Safe_Call_Real ( ) ;
return self - > GetGroundZ ( static_cast < float > ( x ) , static_cast < float > ( y ) , static_cast < float > ( z ) ) ;
}
void Lua_Mob : : ProjectileAnimation ( Lua_Mob to , int item_id ) {
Lua_Safe_Call_Void ( ) ;
self - > ProjectileAnimation ( to , item_id ) ;
}
void Lua_Mob : : ProjectileAnimation ( Lua_Mob to , int item_id , bool is_arrow ) {
Lua_Safe_Call_Void ( ) ;
self - > ProjectileAnimation ( to , item_id , is_arrow ) ;
}
void Lua_Mob : : ProjectileAnimation ( Lua_Mob to , int item_id , bool is_arrow , double speed ) {
Lua_Safe_Call_Void ( ) ;
self - > ProjectileAnimation ( to , item_id , is_arrow , static_cast < float > ( speed ) ) ;
}
void Lua_Mob : : ProjectileAnimation ( Lua_Mob to , int item_id , bool is_arrow , double speed , double angle ) {
Lua_Safe_Call_Void ( ) ;
self - > ProjectileAnimation ( to , item_id , is_arrow , static_cast < float > ( speed ) , static_cast < float > ( angle ) ) ;
}
void Lua_Mob : : ProjectileAnimation ( Lua_Mob to , int item_id , bool is_arrow , double speed , double angle , double tilt ) {
Lua_Safe_Call_Void ( ) ;
self - > ProjectileAnimation ( to , item_id , is_arrow , static_cast < float > ( speed ) , static_cast < float > ( angle ) , static_cast < float > ( tilt ) ) ;
}
void Lua_Mob : : ProjectileAnimation ( Lua_Mob to , int item_id , bool is_arrow , double speed , double angle , double tilt , double arc ) {
Lua_Safe_Call_Void ( ) ;
2014-11-26 17:34:45 -08:00
self - > ProjectileAnimation ( to , item_id , is_arrow , static_cast < float > ( speed ) , static_cast < float > ( angle ) , static_cast < float > ( tilt ) ,
2013-05-18 14:42:54 -07:00
static_cast < float > ( arc ) ) ;
}
bool Lua_Mob : : HasNPCSpecialAtk ( const char * parse ) {
Lua_Safe_Call_Bool ( ) ;
return self - > HasNPCSpecialAtk ( parse ) ;
}
void Lua_Mob : : SendAppearanceEffect ( uint32 parm1 , uint32 parm2 , uint32 parm3 , uint32 parm4 , uint32 parm5 ) {
Lua_Safe_Call_Void ( ) ;
self - > SendAppearanceEffect ( parm1 , parm2 , parm3 , parm4 , parm5 ) ;
}
void Lua_Mob : : SendAppearanceEffect ( uint32 parm1 , uint32 parm2 , uint32 parm3 , uint32 parm4 , uint32 parm5 , Lua_Client specific_target ) {
Lua_Safe_Call_Void ( ) ;
self - > SendAppearanceEffect ( parm1 , parm2 , parm3 , parm4 , parm5 , specific_target ) ;
}
void Lua_Mob : : SetFlyMode ( int in ) {
Lua_Safe_Call_Void ( ) ;
2018-09-20 16:14:47 -07:00
self - > SetFlyMode ( static_cast < GravityBehavior > ( in ) ) ;
2013-05-18 14:42:54 -07:00
}
void Lua_Mob : : SetTexture ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > SendIllusionPacket ( self - > GetRace ( ) , 0xFF , in ) ;
}
void Lua_Mob : : SetRace ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > SendIllusionPacket ( in ) ;
}
void Lua_Mob : : SetGender ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > SendIllusionPacket ( self - > GetRace ( ) , in ) ;
}
2014-06-23 16:56:37 -07:00
void Lua_Mob : : SendIllusionPacket ( luabind : : adl : : object illusion ) {
2013-05-18 14:42:54 -07:00
Lua_Safe_Call_Void ( ) ;
2013-05-23 12:43:21 -07:00
if ( luabind : : type ( illusion ) ! = LUA_TTABLE ) {
return ;
}
int race = 0 ;
int gender = 255 ;
int texture = 255 ;
int helmtexture = 255 ;
int haircolor = 255 ;
int beardcolor = 255 ;
int eyecolor1 = 255 ;
int eyecolor2 = 255 ;
int hairstyle = 255 ;
int luclinface = 255 ;
int beard = 255 ;
int aa_title = 255 ;
uint32 drakkin_heritage = 4294967295 ;
uint32 drakkin_tattoo = 4294967295 ;
uint32 drakkin_details = 4294967295 ;
float size = - 1.0f ;
auto cur = illusion [ " race " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
race = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " gender " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
gender = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " texture " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
texture = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " helmtexture " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
helmtexture = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " haircolor " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
haircolor = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " beardcolor " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
beardcolor = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " eyecolor1 " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
eyecolor1 = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " eyecolor2 " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
eyecolor2 = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " hairstyle " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
hairstyle = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " luclinface " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
luclinface = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " beard " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
beard = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " aa_title " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
aa_title = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " drakkin_heritage " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
drakkin_heritage = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " drakkin_tattoo " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
drakkin_tattoo = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " drakkin_details " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
drakkin_details = luabind : : object_cast < int > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
cur = illusion [ " size " ] ;
if ( luabind : : type ( cur ) ! = LUA_TNIL ) {
try {
size = luabind : : object_cast < float > ( cur ) ;
2020-01-16 19:03:36 -05:00
} catch ( luabind : : cast_failed & ) {
2013-05-23 12:43:21 -07:00
}
}
self - > SendIllusionPacket ( race , gender , texture , helmtexture , haircolor , beardcolor , eyecolor1 , eyecolor2 , hairstyle , luclinface ,
beard , aa_title , drakkin_heritage , drakkin_tattoo , drakkin_details , size ) ;
2013-05-18 14:42:54 -07:00
}
2018-01-24 15:26:53 -05:00
void Lua_Mob : : ChangeRace ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeRace ( in ) ;
}
void Lua_Mob : : ChangeGender ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeGender ( in ) ;
}
void Lua_Mob : : ChangeTexture ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeTexture ( in ) ;
}
void Lua_Mob : : ChangeHelmTexture ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeHelmTexture ( in ) ;
}
void Lua_Mob : : ChangeHairColor ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeHairColor ( in ) ;
}
void Lua_Mob : : ChangeBeardColor ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeBeardColor ( in ) ;
}
void Lua_Mob : : ChangeEyeColor1 ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeEyeColor1 ( in ) ;
}
void Lua_Mob : : ChangeEyeColor2 ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeEyeColor2 ( in ) ;
}
void Lua_Mob : : ChangeHairStyle ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeHairStyle ( in ) ;
}
void Lua_Mob : : ChangeLuclinFace ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeLuclinFace ( in ) ;
}
void Lua_Mob : : ChangeBeard ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeBeard ( in ) ;
}
void Lua_Mob : : ChangeDrakkinHeritage ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeDrakkinHeritage ( in ) ;
}
void Lua_Mob : : ChangeDrakkinTattoo ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeDrakkinTattoo ( in ) ;
}
void Lua_Mob : : ChangeDrakkinDetails ( int in ) {
Lua_Safe_Call_Void ( ) ;
self - > ChangeDrakkinDetails ( in ) ;
}
2013-05-18 14:42:54 -07:00
void Lua_Mob : : CameraEffect ( uint32 duration , uint32 intensity ) {
Lua_Safe_Call_Void ( ) ;
self - > CameraEffect ( duration , intensity ) ;
}
void Lua_Mob : : CameraEffect ( uint32 duration , uint32 intensity , Lua_Client c ) {
Lua_Safe_Call_Void ( ) ;
self - > CameraEffect ( duration , intensity , c ) ;
}
void Lua_Mob : : CameraEffect ( uint32 duration , uint32 intensity , Lua_Client c , bool global ) {
Lua_Safe_Call_Void ( ) ;
self - > CameraEffect ( duration , intensity , c , global ) ;
}
void Lua_Mob : : SendSpellEffect ( uint32 effect_id , uint32 duration , uint32 finish_delay , bool zone_wide , uint32 unk020 ) {
Lua_Safe_Call_Void ( ) ;
self - > SendSpellEffect ( effect_id , duration , finish_delay , zone_wide , unk020 ) ;
}
void Lua_Mob : : SendSpellEffect ( uint32 effect_id , uint32 duration , uint32 finish_delay , bool zone_wide , uint32 unk020 , bool perm_effect ) {
Lua_Safe_Call_Void ( ) ;
self - > SendSpellEffect ( effect_id , duration , finish_delay , zone_wide , unk020 , perm_effect ) ;
}
2014-11-26 17:34:45 -08:00
void Lua_Mob : : SendSpellEffect ( uint32 effect_id , uint32 duration , uint32 finish_delay , bool zone_wide , uint32 unk020 , bool perm_effect ,
2013-05-18 14:42:54 -07:00
Lua_Client c ) {
Lua_Safe_Call_Void ( ) ;
self - > SendSpellEffect ( effect_id , duration , finish_delay , zone_wide , unk020 , perm_effect , c ) ;
}
void Lua_Mob : : TempName ( ) {
Lua_Safe_Call_Void ( ) ;
self - > TempName ( ) ;
}
void Lua_Mob : : TempName ( const char * newname ) {
Lua_Safe_Call_Void ( ) ;
self - > TempName ( newname ) ;
}
2015-06-01 22:20:41 -04:00
std : : string Lua_Mob : : GetGlobal ( const char * varname ) {
Lua_Safe_Call_String ( ) ;
return self - > GetGlobal ( varname ) ;
}
2013-05-18 14:42:54 -07:00
void Lua_Mob : : SetGlobal ( const char * varname , const char * newvalue , int options , const char * duration ) {
Lua_Safe_Call_Void ( ) ;
self - > SetGlobal ( varname , newvalue , options , duration ) ;
}
void Lua_Mob : : SetGlobal ( const char * varname , const char * newvalue , int options , const char * duration , Lua_Mob other ) {
Lua_Safe_Call_Void ( ) ;
self - > SetGlobal ( varname , newvalue , options , duration , other ) ;
}
void Lua_Mob : : TarGlobal ( const char * varname , const char * value , const char * duration , int npc_id , int char_id , int zone_id ) {
Lua_Safe_Call_Void ( ) ;
self - > TarGlobal ( varname , value , duration , npc_id , char_id , zone_id ) ;
}
void Lua_Mob : : DelGlobal ( const char * varname ) {
Lua_Safe_Call_Void ( ) ;
self - > DelGlobal ( varname ) ;
}
void Lua_Mob : : SetSlotTint ( int material_slot , int red_tint , int green_tint , int blue_tint ) {
Lua_Safe_Call_Void ( ) ;
self - > SetSlotTint ( material_slot , red_tint , green_tint , blue_tint ) ;
}
void Lua_Mob : : WearChange ( int material_slot , int texture , uint32 color ) {
Lua_Safe_Call_Void ( ) ;
self - > WearChange ( material_slot , texture , color ) ;
}
void Lua_Mob : : DoKnockback ( Lua_Mob caster , uint32 pushback , uint32 pushup ) {
Lua_Safe_Call_Void ( ) ;
self - > DoKnockback ( caster , pushback , pushup ) ;
}
2017-10-09 00:04:43 -04:00
void Lua_Mob : : AddNimbusEffect ( int effect_id ) {
Lua_Safe_Call_Void ( ) ;
self - > AddNimbusEffect ( effect_id ) ;
}
2013-05-18 14:42:54 -07:00
void Lua_Mob : : RemoveNimbusEffect ( int effect_id ) {
Lua_Safe_Call_Void ( ) ;
self - > RemoveNimbusEffect ( effect_id ) ;
}
bool Lua_Mob : : IsRunning ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsRunning ( ) ;
}
void Lua_Mob : : SetRunning ( bool running ) {
Lua_Safe_Call_Void ( ) ;
self - > SetRunning ( running ) ;
}
void Lua_Mob : : SetBodyType ( int new_body , bool overwrite_orig ) {
Lua_Safe_Call_Void ( ) ;
self - > SetBodyType ( static_cast < bodyType > ( new_body ) , overwrite_orig ) ;
}
void Lua_Mob : : SetTargetable ( bool on ) {
Lua_Safe_Call_Void ( ) ;
self - > SetTargetable ( on ) ;
}
void Lua_Mob : : ModSkillDmgTaken ( int skill , int value ) {
Lua_Safe_Call_Void ( ) ;
2020-05-17 18:36:06 -07:00
self - > ModSkillDmgTaken ( static_cast < EQ : : skills : : SkillType > ( skill ) , value ) ;
2013-05-18 14:42:54 -07:00
}
int Lua_Mob : : GetModSkillDmgTaken ( int skill ) {
Lua_Safe_Call_Int ( ) ;
2020-05-17 18:36:06 -07:00
return self - > GetModSkillDmgTaken ( static_cast < EQ : : skills : : SkillType > ( skill ) ) ;
2013-05-18 14:42:54 -07:00
}
int Lua_Mob : : GetSkillDmgTaken ( int skill ) {
Lua_Safe_Call_Int ( ) ;
2020-05-17 18:36:06 -07:00
return self - > GetSkillDmgTaken ( static_cast < EQ : : skills : : SkillType > ( skill ) ) ;
2013-05-18 14:42:54 -07:00
}
2017-06-12 14:14:39 -07:00
int Lua_Mob : : GetFcDamageAmtIncoming ( Lua_Mob caster , uint32 spell_id , bool use_skill , uint16 skill )
{
Lua_Safe_Call_Int ( ) ;
return self - > GetFcDamageAmtIncoming ( caster , spell_id , use_skill , skill ) ;
}
int Lua_Mob : : GetSkillDmgAmt ( uint16 skill )
{
Lua_Safe_Call_Int ( ) ;
return self - > GetSkillDmgAmt ( skill ) ;
}
2013-05-18 14:42:54 -07:00
void Lua_Mob : : SetAllowBeneficial ( bool value ) {
Lua_Safe_Call_Void ( ) ;
self - > SetAllowBeneficial ( value ) ;
}
bool Lua_Mob : : GetAllowBeneficial ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > GetAllowBeneficial ( ) ;
}
bool Lua_Mob : : IsBeneficialAllowed ( Lua_Mob target ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsBeneficialAllowed ( target ) ;
}
void Lua_Mob : : ModVulnerability ( int resist , int value ) {
Lua_Safe_Call_Void ( ) ;
self - > ModVulnerability ( resist , value ) ;
}
int Lua_Mob : : GetModVulnerability ( int resist ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetModVulnerability ( resist ) ;
}
void Lua_Mob : : SetDisableMelee ( bool disable ) {
Lua_Safe_Call_Void ( ) ;
self - > SetDisableMelee ( disable ) ;
}
bool Lua_Mob : : IsMeleeDisabled ( ) {
Lua_Safe_Call_Bool ( ) ;
return IsMeleeDisabled ( ) ;
}
void Lua_Mob : : SetFlurryChance ( int value ) {
Lua_Safe_Call_Void ( ) ;
self - > SetFlurryChance ( value ) ;
}
int Lua_Mob : : GetFlurryChance ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetFlurryChance ( ) ;
}
2013-05-25 01:08:30 -07:00
int Lua_Mob : : GetSkill ( int skill ) {
Lua_Safe_Call_Int ( ) ;
2020-05-17 18:36:06 -07:00
return self - > GetSkill ( static_cast < EQ : : skills : : SkillType > ( skill ) ) ;
2013-05-25 01:08:30 -07:00
}
2013-07-07 15:22:20 -07:00
int Lua_Mob : : GetSpecialAbility ( int ability ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetSpecialAbility ( ability ) ;
}
2013-07-08 14:37:01 -07:00
int Lua_Mob : : GetSpecialAbilityParam ( int ability , int param ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetSpecialAbilityParam ( ability , param ) ;
}
2013-07-07 15:22:20 -07:00
void Lua_Mob : : SetSpecialAbility ( int ability , int level ) {
Lua_Safe_Call_Void ( ) ;
self - > SetSpecialAbility ( ability , level ) ;
}
2013-07-08 14:37:01 -07:00
void Lua_Mob : : SetSpecialAbilityParam ( int ability , int param , int value ) {
Lua_Safe_Call_Void ( ) ;
self - > SetSpecialAbilityParam ( ability , param , value ) ;
}
2013-07-07 15:22:20 -07:00
void Lua_Mob : : ClearSpecialAbilities ( ) {
Lua_Safe_Call_Void ( ) ;
self - > ClearSpecialAbilities ( ) ;
}
void Lua_Mob : : ProcessSpecialAbilities ( std : : string str ) {
Lua_Safe_Call_Void ( ) ;
self - > ProcessSpecialAbilities ( str ) ;
}
2016-11-28 13:50:24 -08:00
uint32 Lua_Mob : : GetAppearance ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetAppearance ( ) ;
}
2013-07-07 15:22:20 -07:00
void Lua_Mob : : SetAppearance ( int app ) {
Lua_Safe_Call_Void ( ) ;
self - > SetAppearance ( static_cast < EmuAppearance > ( app ) ) ;
}
void Lua_Mob : : SetAppearance ( int app , bool ignore_self ) {
Lua_Safe_Call_Void ( ) ;
self - > SetAppearance ( static_cast < EmuAppearance > ( app ) , ignore_self ) ;
}
2014-02-22 15:04:01 -08:00
void Lua_Mob : : SetDestructibleObject ( bool set ) {
Lua_Safe_Call_Void ( ) ;
self - > SetDestructibleObject ( set ) ;
}
2014-03-09 18:41:50 -07:00
bool Lua_Mob : : IsImmuneToSpell ( int spell_id , Lua_Mob caster ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsImmuneToSpell ( spell_id , caster ) ;
}
void Lua_Mob : : BuffFadeBySpellID ( int spell_id ) {
Lua_Safe_Call_Void ( ) ;
self - > BuffFadeBySpellID ( spell_id ) ;
}
void Lua_Mob : : BuffFadeByEffect ( int effect_id ) {
Lua_Safe_Call_Void ( ) ;
self - > BuffFadeByEffect ( effect_id ) ;
}
void Lua_Mob : : BuffFadeByEffect ( int effect_id , int skipslot ) {
Lua_Safe_Call_Void ( ) ;
self - > BuffFadeByEffect ( effect_id , skipslot ) ;
}
void Lua_Mob : : BuffFadeAll ( ) {
Lua_Safe_Call_Void ( ) ;
self - > BuffFadeAll ( ) ;
}
void Lua_Mob : : BuffFadeBySlot ( int slot ) {
Lua_Safe_Call_Void ( ) ;
self - > BuffFadeBySlot ( slot ) ;
}
void Lua_Mob : : BuffFadeBySlot ( int slot , bool recalc_bonuses ) {
Lua_Safe_Call_Void ( ) ;
self - > BuffFadeBySlot ( slot , recalc_bonuses ) ;
}
int Lua_Mob : : CanBuffStack ( int spell_id , int caster_level ) {
Lua_Safe_Call_Int ( ) ;
return self - > CanBuffStack ( spell_id , caster_level ) ;
}
int Lua_Mob : : CanBuffStack ( int spell_id , int caster_level , bool fail_if_overwrite ) {
Lua_Safe_Call_Int ( ) ;
return self - > CanBuffStack ( spell_id , caster_level , fail_if_overwrite ) ;
}
2015-06-10 23:10:00 -04:00
void Lua_Mob : : SetPseudoRoot ( bool in ) {
Lua_Safe_Call_Void ( ) ;
self - > SetPseudoRoot ( in ) ;
}
2014-03-09 18:41:50 -07:00
2015-12-14 14:57:03 -05:00
bool Lua_Mob : : IsFeared ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsFeared ( ) ;
}
bool Lua_Mob : : IsBlind ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsBlind ( ) ;
}
2015-12-19 15:23:04 -05:00
uint8 Lua_Mob : : SeeInvisible ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > SeeInvisible ( ) ;
}
bool Lua_Mob : : SeeInvisibleUndead ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > SeeInvisibleUndead ( ) ;
}
bool Lua_Mob : : SeeHide ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > SeeHide ( ) ;
}
bool Lua_Mob : : SeeImprovedHide ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > SeeImprovedHide ( ) ;
}
uint8 Lua_Mob : : GetNimbusEffect1 ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetNimbusEffect1 ( ) ;
}
uint8 Lua_Mob : : GetNimbusEffect2 ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetNimbusEffect2 ( ) ;
}
uint8 Lua_Mob : : GetNimbusEffect3 ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetNimbusEffect3 ( ) ;
}
bool Lua_Mob : : IsTargetable ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsTargetable ( ) ;
}
bool Lua_Mob : : HasShieldEquiped ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > HasShieldEquiped ( ) ;
}
bool Lua_Mob : : HasTwoHandBluntEquiped ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > HasTwoHandBluntEquiped ( ) ;
}
bool Lua_Mob : : HasTwoHanderEquipped ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > HasTwoHanderEquipped ( ) ;
}
uint32 Lua_Mob : : GetHerosForgeModel ( uint8 material_slot ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetHerosForgeModel ( material_slot ) ;
}
uint32 Lua_Mob : : IsEliteMaterialItem ( uint8 material_slot ) {
Lua_Safe_Call_Int ( ) ;
return self - > IsEliteMaterialItem ( material_slot ) ;
}
float Lua_Mob : : GetBaseSize ( ) {
Lua_Safe_Call_Real ( ) ;
return self - > GetBaseSize ( ) ;
}
bool Lua_Mob : : HasOwner ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > HasOwner ( ) ;
}
bool Lua_Mob : : IsPet ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsPet ( ) ;
}
bool Lua_Mob : : HasPet ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > HasPet ( ) ;
}
bool Lua_Mob : : IsSilenced ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsSilenced ( ) ;
}
bool Lua_Mob : : IsAmnesiad ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsAmnesiad ( ) ;
}
2015-12-21 15:43:56 -05:00
int32 Lua_Mob : : GetMeleeMitigation ( ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetMeleeMitigation ( ) ;
}
2017-04-26 22:56:18 -07:00
int Lua_Mob : : GetWeaponDamageBonus ( Lua_Item weapon , bool offhand ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetWeaponDamageBonus ( weapon , offhand ) ;
}
2019-06-16 19:54:45 -04:00
int Lua_Mob : : GetItemStat ( uint32 itemid , const char * identifier ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetItemStat ( itemid , identifier ) ;
}
2017-04-26 22:56:18 -07:00
Lua_StatBonuses Lua_Mob : : GetItemBonuses ( )
{
Lua_Safe_Call_Class ( Lua_StatBonuses ) ;
return self - > GetItemBonusesPtr ( ) ;
}
Lua_StatBonuses Lua_Mob : : GetSpellBonuses ( )
{
Lua_Safe_Call_Class ( Lua_StatBonuses ) ;
return self - > GetSpellBonusesPtr ( ) ;
}
Lua_StatBonuses Lua_Mob : : GetAABonuses ( )
{
Lua_Safe_Call_Class ( Lua_StatBonuses ) ;
return self - > GetAABonusesPtr ( ) ;
}
int16 Lua_Mob : : GetMeleeDamageMod_SE ( uint16 skill )
{
Lua_Safe_Call_Int ( ) ;
return self - > GetMeleeDamageMod_SE ( skill ) ;
}
int16 Lua_Mob : : GetMeleeMinDamageMod_SE ( uint16 skill )
{
Lua_Safe_Call_Int ( ) ;
return self - > GetMeleeMinDamageMod_SE ( skill ) ;
}
2017-05-15 15:46:19 -07:00
bool Lua_Mob : : IsAttackAllowed ( Lua_Mob target , bool isSpellAttack ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsAttackAllowed ( target , isSpellAttack ) ;
}
bool Lua_Mob : : IsCasting ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsCasting ( ) ;
}
int Lua_Mob : : AttackAnimation ( int Hand , Lua_ItemInst weapon ) {
Lua_Safe_Call_Int ( ) ;
return ( int ) self - > AttackAnimation ( Hand , weapon ) ;
}
int Lua_Mob : : GetWeaponDamage ( Lua_Mob against , Lua_ItemInst weapon ) {
Lua_Safe_Call_Int ( ) ;
return self - > GetWeaponDamage ( against , weapon ) ;
}
bool Lua_Mob : : IsBerserk ( ) {
Lua_Safe_Call_Bool ( ) ;
return self - > IsBerserk ( ) ;
}
2019-10-12 21:07:06 -07:00
bool Lua_Mob : : TryFinishingBlow ( Lua_Mob defender , int & damage ) {
2017-05-15 15:46:19 -07:00
Lua_Safe_Call_Bool ( ) ;
2019-10-12 21:07:06 -07:00
return self - > TryFinishingBlow ( defender , damage ) ;
2017-05-15 15:46:19 -07:00
}
2017-05-19 22:50:08 -07:00
int Lua_Mob : : GetBodyType ( )
{
Lua_Safe_Call_Int ( ) ;
return ( int ) self - > GetBodyType ( ) ;
}
int Lua_Mob : : GetOrigBodyType ( )
{
Lua_Safe_Call_Int ( ) ;
return ( int ) self - > GetOrigBodyType ( ) ;
}
2017-06-12 14:14:39 -07:00
void Lua_Mob : : CheckNumHitsRemaining ( int type , int32 buff_slot , uint16 spell_id )
{
Lua_Safe_Call_Void ( ) ;
self - > CheckNumHitsRemaining ( ( NumHit ) type , buff_slot , spell_id ) ;
}
2013-05-19 12:13:44 -07:00
luabind : : scope lua_register_mob ( ) {
return luabind : : class_ < Lua_Mob , Lua_Entity > ( " Mob " )
. def ( luabind : : constructor < > ( ) )
. def ( " GetName " , & Lua_Mob : : GetName )
. def ( " Depop " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : Depop )
. def ( " Depop " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : Depop )
. def ( " BehindMob " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : BehindMob )
. def ( " BehindMob " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : BehindMob )
. def ( " BehindMob " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , float ) ) & Lua_Mob : : BehindMob )
. def ( " BehindMob " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , float , float ) ) & Lua_Mob : : BehindMob )
. def ( " SetLevel " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetLevel )
. def ( " SetLevel " , ( void ( Lua_Mob : : * ) ( int , bool ) ) & Lua_Mob : : SetLevel )
. def ( " IsMoving " , & Lua_Mob : : IsMoving )
. def ( " GotoBind " , & Lua_Mob : : GotoBind )
. def ( " Attack " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : Attack )
. def ( " Attack " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , int ) ) & Lua_Mob : : Attack )
. def ( " Attack " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , int , bool ) ) & Lua_Mob : : Attack )
. def ( " Attack " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , int , bool , bool ) ) & Lua_Mob : : Attack )
. def ( " Attack " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , int , bool , bool , bool ) ) & Lua_Mob : : Attack )
2014-06-23 16:56:37 -07:00
. def ( " Attack " , ( bool ( Lua_Mob : : * ) ( Lua_Mob , int , bool , bool , bool , luabind : : adl : : object ) ) & Lua_Mob : : Attack )
2013-05-19 12:13:44 -07:00
. def ( " Damage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int ) ) & Lua_Mob : : Damage )
. def ( " Damage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , bool ) ) & Lua_Mob : : Damage )
. def ( " Damage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , bool , int ) ) & Lua_Mob : : Damage )
. def ( " Damage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , bool , int , bool ) ) & Lua_Mob : : Damage )
. def ( " RangedAttack " , & Lua_Mob : : RangedAttack )
. def ( " ThrowingAttack " , & Lua_Mob : : ThrowingAttack )
. def ( " Heal " , & Lua_Mob : : Heal )
. def ( " HealDamage " , ( void ( Lua_Mob : : * ) ( uint32 ) ) & Lua_Mob : : HealDamage )
. def ( " HealDamage " , ( void ( Lua_Mob : : * ) ( uint32 , Lua_Mob ) ) & Lua_Mob : : HealDamage )
. def ( " GetLevelCon " , ( uint32 ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetLevelCon )
. def ( " GetLevelCon " , ( uint32 ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : GetLevelCon )
. def ( " SetHP " , & Lua_Mob : : SetHP )
. def ( " DoAnim " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : DoAnim )
. def ( " DoAnim " , ( void ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : DoAnim )
. def ( " DoAnim " , ( void ( Lua_Mob : : * ) ( int , int , bool ) ) & Lua_Mob : : DoAnim )
. def ( " DoAnim " , ( void ( Lua_Mob : : * ) ( int , int , bool , int ) ) & Lua_Mob : : DoAnim )
. def ( " ChangeSize " , ( void ( Lua_Mob : : * ) ( double ) ) & Lua_Mob : : ChangeSize )
. def ( " ChangeSize " , ( void ( Lua_Mob : : * ) ( double , bool ) ) & Lua_Mob : : ChangeSize )
2019-04-24 10:32:09 -04:00
. def ( " RandomizeFeatures " , ( void ( Lua_Mob : : * ) ( bool , bool ) ) & Lua_Mob : : RandomizeFeatures )
2013-05-19 12:13:44 -07:00
. def ( " GMMove " , ( void ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : GMMove )
. def ( " GMMove " , ( void ( Lua_Mob : : * ) ( double , double , double , double ) ) & Lua_Mob : : GMMove )
. def ( " GMMove " , ( void ( Lua_Mob : : * ) ( double , double , double , double , bool ) ) & Lua_Mob : : GMMove )
2018-03-06 23:03:55 -05:00
. def ( " TryMoveAlong " , ( void ( Lua_Mob : : * ) ( float , float ) ) & Lua_Mob : : TryMoveAlong )
. def ( " TryMoveAlong " , ( void ( Lua_Mob : : * ) ( float , float , bool ) ) & Lua_Mob : : TryMoveAlong )
2013-05-19 12:13:44 -07:00
. def ( " HasProcs " , & Lua_Mob : : HasProcs )
. def ( " IsInvisible " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsInvisible )
. def ( " IsInvisible " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : IsInvisible )
. def ( " SetInvisible " , & Lua_Mob : : SetInvisible )
. def ( " FindBuff " , & Lua_Mob : : FindBuff )
2019-06-13 18:17:37 -04:00
. def ( " FindBuffBySlot " , ( uint16 ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : FindBuffBySlot )
. def ( " BuffCount " , & Lua_Mob : : BuffCount )
2013-05-19 12:13:44 -07:00
. def ( " FindType " , ( bool ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : FindType )
. def ( " FindType " , ( bool ( Lua_Mob : : * ) ( int , bool ) ) & Lua_Mob : : FindType )
. def ( " FindType " , ( bool ( Lua_Mob : : * ) ( int , bool , int ) ) & Lua_Mob : : FindType )
. def ( " GetBuffSlotFromType " , & Lua_Mob : : GetBuffSlotFromType )
. def ( " GetBaseRace " , & Lua_Mob : : GetBaseRace )
. def ( " GetBaseGender " , & Lua_Mob : : GetBaseGender )
. def ( " GetDeity " , & Lua_Mob : : GetDeity )
. def ( " GetRace " , & Lua_Mob : : GetRace )
. def ( " GetGender " , & Lua_Mob : : GetGender )
. def ( " GetTexture " , & Lua_Mob : : GetTexture )
. def ( " GetHelmTexture " , & Lua_Mob : : GetHelmTexture )
. def ( " GetHairColor " , & Lua_Mob : : GetHairColor )
. def ( " GetBeardColor " , & Lua_Mob : : GetBeardColor )
. def ( " GetEyeColor1 " , & Lua_Mob : : GetEyeColor1 )
. def ( " GetEyeColor2 " , & Lua_Mob : : GetEyeColor2 )
. def ( " GetHairStyle " , & Lua_Mob : : GetHairStyle )
. def ( " GetLuclinFace " , & Lua_Mob : : GetLuclinFace )
. def ( " GetBeard " , & Lua_Mob : : GetBeard )
. def ( " GetDrakkinHeritage " , & Lua_Mob : : GetDrakkinHeritage )
. def ( " GetDrakkinTattoo " , & Lua_Mob : : GetDrakkinTattoo )
. def ( " GetDrakkinDetails " , & Lua_Mob : : GetDrakkinDetails )
. def ( " GetClass " , & Lua_Mob : : GetClass )
. def ( " GetLevel " , & Lua_Mob : : GetLevel )
. def ( " GetCleanName " , & Lua_Mob : : GetCleanName )
. def ( " GetTarget " , & Lua_Mob : : GetTarget )
. def ( " SetTarget " , & Lua_Mob : : SetTarget )
. def ( " GetHPRatio " , & Lua_Mob : : GetHPRatio )
. def ( " IsWarriorClass " , & Lua_Mob : : IsWarriorClass )
. def ( " GetHP " , & Lua_Mob : : GetHP )
. def ( " GetMaxHP " , & Lua_Mob : : GetMaxHP )
2019-06-16 19:54:45 -04:00
. def ( " GetItemStat " , ( int ( Lua_Mob : : * ) ( uint32 , const char * ) ) & Lua_Mob : : GetItemStat )
2013-05-19 12:13:44 -07:00
. def ( " GetItemHPBonuses " , & Lua_Mob : : GetItemHPBonuses )
. def ( " GetSpellHPBonuses " , & Lua_Mob : : GetSpellHPBonuses )
. def ( " GetWalkspeed " , & Lua_Mob : : GetWalkspeed )
. def ( " GetRunspeed " , & Lua_Mob : : GetRunspeed )
. def ( " GetCasterLevel " , & Lua_Mob : : GetCasterLevel )
. def ( " GetMaxMana " , & Lua_Mob : : GetMaxMana )
. def ( " GetMana " , & Lua_Mob : : GetMana )
. def ( " SetMana " , & Lua_Mob : : SetMana )
. def ( " GetManaRatio " , & Lua_Mob : : GetManaRatio )
. def ( " GetAC " , & Lua_Mob : : GetAC )
. def ( " GetATK " , & Lua_Mob : : GetATK )
. def ( " GetSTR " , & Lua_Mob : : GetSTR )
. def ( " GetSTA " , & Lua_Mob : : GetSTA )
. def ( " GetDEX " , & Lua_Mob : : GetDEX )
. def ( " GetAGI " , & Lua_Mob : : GetAGI )
. def ( " GetINT " , & Lua_Mob : : GetINT )
. def ( " GetWIS " , & Lua_Mob : : GetWIS )
. def ( " GetCHA " , & Lua_Mob : : GetCHA )
. def ( " GetMR " , & Lua_Mob : : GetMR )
. def ( " GetFR " , & Lua_Mob : : GetFR )
. def ( " GetDR " , & Lua_Mob : : GetDR )
. def ( " GetPR " , & Lua_Mob : : GetPR )
. def ( " GetCR " , & Lua_Mob : : GetCR )
. def ( " GetCorruption " , & Lua_Mob : : GetCorruption )
2015-01-06 16:10:29 -05:00
. def ( " GetPhR " , & Lua_Mob : : GetPhR )
2013-05-19 12:13:44 -07:00
. def ( " GetMaxSTR " , & Lua_Mob : : GetMaxSTR )
. def ( " GetMaxSTA " , & Lua_Mob : : GetMaxSTA )
. def ( " GetMaxDEX " , & Lua_Mob : : GetMaxDEX )
. def ( " GetMaxAGI " , & Lua_Mob : : GetMaxAGI )
. def ( " GetMaxINT " , & Lua_Mob : : GetMaxINT )
. def ( " GetMaxWIS " , & Lua_Mob : : GetMaxWIS )
. def ( " GetMaxCHA " , & Lua_Mob : : GetMaxCHA )
. def ( " ResistSpell " , ( double ( Lua_Mob : : * ) ( int , int , Lua_Mob ) ) & Lua_Mob : : ResistSpell )
. def ( " ResistSpell " , ( double ( Lua_Mob : : * ) ( int , int , Lua_Mob , bool ) ) & Lua_Mob : : ResistSpell )
. def ( " ResistSpell " , ( double ( Lua_Mob : : * ) ( int , int , Lua_Mob , bool , int ) ) & Lua_Mob : : ResistSpell )
. def ( " ResistSpell " , ( double ( Lua_Mob : : * ) ( int , int , Lua_Mob , bool , int , bool ) ) & Lua_Mob : : ResistSpell )
. def ( " GetSpecializeSkillValue " , & Lua_Mob : : GetSpecializeSkillValue )
. def ( " GetNPCTypeID " , & Lua_Mob : : GetNPCTypeID )
. def ( " IsTargeted " , & Lua_Mob : : IsTargeted )
. def ( " GetX " , & Lua_Mob : : GetX )
. def ( " GetY " , & Lua_Mob : : GetY )
. def ( " GetZ " , & Lua_Mob : : GetZ )
. def ( " GetHeading " , & Lua_Mob : : GetHeading )
. def ( " GetWaypointX " , & Lua_Mob : : GetWaypointX )
. def ( " GetWaypointY " , & Lua_Mob : : GetWaypointY )
. def ( " GetWaypointZ " , & Lua_Mob : : GetWaypointZ )
. def ( " GetWaypointH " , & Lua_Mob : : GetWaypointH )
. def ( " GetWaypointPause " , & Lua_Mob : : GetWaypointPause )
. def ( " GetWaypointID " , & Lua_Mob : : GetWaypointID )
. def ( " SetCurrentWP " , & Lua_Mob : : SetCurrentWP )
. def ( " GetSize " , & Lua_Mob : : GetSize )
. def ( " Message " , & Lua_Mob : : Message )
2019-08-11 00:14:02 -05:00
. def ( " MessageString " , & Lua_Mob : : MessageString )
. def ( " Message_StringID " , & Lua_Mob : : MessageString )
2019-07-18 18:20:22 -07:00
. def ( " Say " , ( void ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : Say )
. def ( " Say " , ( void ( Lua_Mob : : * ) ( const char * , int ) ) & Lua_Mob : : Say )
2019-07-18 00:56:46 -04:00
. def ( " QuestSay " , ( void ( Lua_Mob : : * ) ( Lua_Client , const char * ) ) & Lua_Mob : : QuestSay )
. def ( " QuestSay " , ( void ( Lua_Mob : : * ) ( Lua_Client , const char * , luabind : : adl : : object ) ) & Lua_Mob : : QuestSay )
2019-07-18 18:20:22 -07:00
. def ( " Shout " , ( void ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : Shout )
. def ( " Shout " , ( void ( Lua_Mob : : * ) ( const char * , int ) ) & Lua_Mob : : Shout )
2013-05-19 12:13:44 -07:00
. def ( " Emote " , & Lua_Mob : : Emote )
. def ( " InterruptSpell " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : InterruptSpell )
. def ( " InterruptSpell " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : InterruptSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : CastSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int , int ) ) & Lua_Mob : : CastSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int , int , int ) ) & Lua_Mob : : CastSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int , int , int , int ) ) & Lua_Mob : : CastSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int , int , int , int , int ) ) & Lua_Mob : : CastSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int , int , int , int , int , int , int ) ) & Lua_Mob : : CastSpell )
. def ( " CastSpell " , ( bool ( Lua_Mob : : * ) ( int , int , int , int , int , int , int , int , int ) ) & Lua_Mob : : CastSpell )
. def ( " SpellFinished " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob ) ) & Lua_Mob : : SpellFinished )
. def ( " SpellFinished " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob , int ) ) & Lua_Mob : : SpellFinished )
. def ( " SpellFinished " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob , int , int ) ) & Lua_Mob : : SpellFinished )
. def ( " SpellFinished " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob , int , int , uint32 ) ) & Lua_Mob : : SpellFinished )
. def ( " SpellFinished " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob , int , int , uint32 , int ) ) & Lua_Mob : : SpellFinished )
. def ( " SpellFinished " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob , int , int , uint32 , int , bool ) ) & Lua_Mob : : SpellFinished )
2017-04-08 02:07:08 -04:00
. def ( " SendBeginCast " , & Lua_Mob : : SendBeginCast )
2013-05-19 12:13:44 -07:00
. def ( " SpellEffect " , & Lua_Mob : : SpellEffect )
2017-03-30 21:46:10 -04:00
. def ( " GetPet " , & Lua_Mob : : GetPet )
. def ( " GetOwner " , & Lua_Mob : : GetOwner )
2013-05-19 12:13:44 -07:00
. def ( " GetHateList " , & Lua_Mob : : GetHateList )
. def ( " GetHateTop " , ( Lua_Mob ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetHateTop )
. def ( " GetHateDamageTop " , ( Lua_Mob ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : GetHateDamageTop )
. def ( " GetHateRandom " , ( Lua_Mob ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetHateRandom )
. def ( " AddToHateList " , ( void ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : AddToHateList )
. def ( " AddToHateList " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int ) ) & Lua_Mob : : AddToHateList )
. def ( " AddToHateList " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int ) ) & Lua_Mob : : AddToHateList )
. def ( " AddToHateList " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , bool ) ) & Lua_Mob : : AddToHateList )
. def ( " AddToHateList " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , bool , bool ) ) & Lua_Mob : : AddToHateList )
. def ( " AddToHateList " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , bool , bool , bool ) ) & Lua_Mob : : AddToHateList )
. def ( " SetHate " , ( void ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : SetHate )
. def ( " SetHate " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int ) ) & Lua_Mob : : SetHate )
. def ( " SetHate " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int ) ) & Lua_Mob : : SetHate )
2014-02-18 16:52:51 -05:00
. def ( " HalveAggro " , & Lua_Mob : : HalveAggro )
. def ( " DoubleAggro " , & Lua_Mob : : DoubleAggro )
2013-05-19 12:13:44 -07:00
. def ( " GetHateAmount " , ( uint32 ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : GetHateAmount )
. def ( " GetHateAmount " , ( uint32 ( Lua_Mob : : * ) ( Lua_Mob , bool ) ) & Lua_Mob : : GetHateAmount )
. def ( " GetDamageAmount " , ( uint32 ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : GetDamageAmount )
. def ( " WipeHateList " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : WipeHateList )
. def ( " CheckAggro " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : CheckAggro )
. def ( " Stun " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : Stun )
. def ( " UnStun " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : UnStun )
. def ( " IsStunned " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsStunned )
. def ( " Spin " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : Spin )
. def ( " Kill " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : Kill )
. def ( " CanThisClassDoubleAttack " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : CanThisClassDoubleAttack )
. def ( " CanThisClassDualWield " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : CanThisClassDualWield )
. def ( " CanThisClassRiposte " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : CanThisClassRiposte )
. def ( " CanThisClassDodge " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : CanThisClassDodge )
. def ( " CanThisClassParry " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : CanThisClassParry )
. def ( " CanThisClassBlock " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : CanThisClassBlock )
. def ( " SetInvul " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetInvul )
. def ( " GetInvul " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetInvul )
. def ( " SetExtraHaste " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetExtraHaste )
. def ( " GetHaste " , ( int ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetHaste )
2016-01-03 14:38:50 -05:00
. def ( " GetHandToHandDamage " , ( int ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetHandToHandDamage )
. def ( " GetHandToHandDelay " , ( int ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetHandToHandDelay )
2013-05-19 12:13:44 -07:00
. def ( " Mesmerize " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : Mesmerize )
. def ( " IsMezzed " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsMezzed )
. def ( " IsEnraged " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsEnraged )
. def ( " GetReverseFactionCon " , ( int ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : GetReverseFactionCon )
. def ( " IsAIControlled " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsAIControlled )
. def ( " GetAggroRange " , ( float ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetAggroRange )
. def ( " GetAssistRange " , ( float ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetAssistRange )
. def ( " SetPetOrder " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetPetOrder )
. def ( " GetPetOrder " , ( int ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetPetOrder )
. def ( " IsRoamer " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsRoamer )
. def ( " IsRooted " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsRooted )
. def ( " IsEngaged " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsEngaged )
. def ( " FaceTarget " , ( void ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : FaceTarget )
. def ( " SetHeading " , ( void ( Lua_Mob : : * ) ( double ) ) & Lua_Mob : : SetHeading )
. def ( " CalculateHeadingToTarget " , ( double ( Lua_Mob : : * ) ( double , double ) ) & Lua_Mob : : CalculateHeadingToTarget )
2018-10-12 00:03:58 -07:00
. def ( " RunTo " , ( void ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : RunTo )
. def ( " WalkTo " , ( void ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : WalkTo )
. def ( " NavigateTo " , ( void ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : NavigateTo )
2018-09-21 23:54:07 -07:00
. def ( " StopNavigation " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : StopNavigation )
2013-05-19 12:13:44 -07:00
. def ( " CalculateDistance " , ( float ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : CalculateDistance )
. def ( " SendTo " , ( void ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : SendTo )
. def ( " SendToFixZ " , ( void ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : SendToFixZ )
. def ( " NPCSpecialAttacks " , ( void ( Lua_Mob : : * ) ( const char * , int ) ) & Lua_Mob : : NPCSpecialAttacks )
. def ( " NPCSpecialAttacks " , ( void ( Lua_Mob : : * ) ( const char * , int , bool ) ) & Lua_Mob : : NPCSpecialAttacks )
. def ( " NPCSpecialAttacks " , ( void ( Lua_Mob : : * ) ( const char * , int , bool , bool ) ) & Lua_Mob : : NPCSpecialAttacks )
. def ( " GetResist " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetResist )
. def ( " Charmed " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : Charmed )
. def ( " CheckAggroAmount " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : CheckAggroAmount )
. def ( " CheckAggroAmount " , ( int ( Lua_Mob : : * ) ( int , bool ) ) & Lua_Mob : : CheckAggroAmount )
. def ( " CheckHealAggroAmount " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : CheckHealAggroAmount )
. def ( " CheckHealAggroAmount " , ( int ( Lua_Mob : : * ) ( int , uint32 ) ) & Lua_Mob : : CheckHealAggroAmount )
. def ( " GetAA " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetAA )
2015-06-17 12:05:09 -07:00
. def ( " GetAAByAAID " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetAAByAAID )
. def ( " SetAA " , ( bool ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : SetAA )
. def ( " SetAA " , ( bool ( Lua_Mob : : * ) ( int , int , int ) ) & Lua_Mob : : SetAA )
2013-05-19 12:13:44 -07:00
. def ( " DivineAura " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : DivineAura )
. def ( " SetOOCRegen " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetOOCRegen )
. def ( " GetEntityVariable " , ( const char * ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : GetEntityVariable )
. def ( " SetEntityVariable " , ( void ( Lua_Mob : : * ) ( const char * , const char * ) ) & Lua_Mob : : SetEntityVariable )
. def ( " EntityVariableExists " , ( bool ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : EntityVariableExists )
. def ( " Signal " , ( void ( Lua_Mob : : * ) ( uint32 ) ) & Lua_Mob : : Signal )
. def ( " CombatRange " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : CombatRange )
. def ( " DoSpecialAttackDamage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int ) ) & Lua_Mob : : DoSpecialAttackDamage )
. def ( " DoSpecialAttackDamage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int ) ) & Lua_Mob : : DoSpecialAttackDamage )
. def ( " DoSpecialAttackDamage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , int ) ) & Lua_Mob : : DoSpecialAttackDamage )
. def ( " DoSpecialAttackDamage " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , int , int ) ) & Lua_Mob : : DoSpecialAttackDamage )
. def ( " DoThrowingAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : DoThrowingAttackDmg )
. def ( " DoThrowingAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst ) ) & Lua_Mob : : DoThrowingAttackDmg )
. def ( " DoThrowingAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_Item ) ) & Lua_Mob : : DoThrowingAttackDmg )
. def ( " DoThrowingAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_Item , int ) ) & Lua_Mob : : DoThrowingAttackDmg )
. def ( " DoThrowingAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_Item , int , int ) ) & Lua_Mob : : DoThrowingAttackDmg )
. def ( " DoThrowingAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_Item , int , int , int ) ) & Lua_Mob : : DoThrowingAttackDmg )
. def ( " DoMeleeSkillAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int ) ) & Lua_Mob : : DoMeleeSkillAttackDmg )
. def ( " DoMeleeSkillAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int ) ) & Lua_Mob : : DoMeleeSkillAttackDmg )
. def ( " DoMeleeSkillAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , int ) ) & Lua_Mob : : DoMeleeSkillAttackDmg )
. def ( " DoMeleeSkillAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , int , int , int , bool ) ) & Lua_Mob : : DoMeleeSkillAttackDmg )
. def ( " DoArcheryAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : DoArcheryAttackDmg )
. def ( " DoArcheryAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst ) ) & Lua_Mob : : DoArcheryAttackDmg )
. def ( " DoArcheryAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_ItemInst ) ) & Lua_Mob : : DoArcheryAttackDmg )
. def ( " DoArcheryAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_ItemInst , int ) ) & Lua_Mob : : DoArcheryAttackDmg )
. def ( " DoArcheryAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_ItemInst , int , int ) ) & Lua_Mob : : DoArcheryAttackDmg )
. def ( " DoArcheryAttackDmg " , ( void ( Lua_Mob : : * ) ( Lua_Mob , Lua_ItemInst , Lua_ItemInst , int , int , int ) ) & Lua_Mob : : DoArcheryAttackDmg )
. def ( " CheckLoS " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : CheckLoS )
. def ( " CheckLoSToLoc " , ( bool ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : CheckLoSToLoc )
. def ( " CheckLoSToLoc " , ( bool ( Lua_Mob : : * ) ( double , double , double , double ) ) & Lua_Mob : : CheckLoSToLoc )
. def ( " FindGroundZ " , ( double ( Lua_Mob : : * ) ( double , double ) ) & Lua_Mob : : FindGroundZ )
. def ( " FindGroundZ " , ( double ( Lua_Mob : : * ) ( double , double , double ) ) & Lua_Mob : : FindGroundZ )
. def ( " ProjectileAnimation " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int ) ) & Lua_Mob : : ProjectileAnimation )
. def ( " ProjectileAnimation " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , bool ) ) & Lua_Mob : : ProjectileAnimation )
. def ( " ProjectileAnimation " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , bool , double ) ) & Lua_Mob : : ProjectileAnimation )
. def ( " ProjectileAnimation " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , bool , double , double ) ) & Lua_Mob : : ProjectileAnimation )
. def ( " ProjectileAnimation " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , bool , double , double , double ) ) & Lua_Mob : : ProjectileAnimation )
. def ( " ProjectileAnimation " , ( void ( Lua_Mob : : * ) ( Lua_Mob , int , bool , double , double , double , double ) ) & Lua_Mob : : ProjectileAnimation )
. def ( " HasNPCSpecialAtk " , ( bool ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : HasNPCSpecialAtk )
. def ( " SendAppearanceEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , uint32 , uint32 , uint32 ) ) & Lua_Mob : : SendAppearanceEffect )
. def ( " SendAppearanceEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , uint32 , uint32 , uint32 , Lua_Client ) ) & Lua_Mob : : SendAppearanceEffect )
. def ( " SetFlyMode " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetFlyMode )
. def ( " SetTexture " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetTexture )
. def ( " SetRace " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetRace )
. def ( " SetGender " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetGender )
2014-06-23 16:56:37 -07:00
. def ( " SendIllusionPacket " , ( void ( Lua_Mob : : * ) ( luabind : : adl : : object ) ) & Lua_Mob : : SendIllusionPacket )
2018-01-24 15:26:53 -05:00
. def ( " ChangeRace " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeRace )
. def ( " ChangeGender " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeGender )
. def ( " ChangeTexture " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeTexture )
. def ( " ChangeHelmTexture " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeHelmTexture )
. def ( " ChangeHairColor " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeHairColor )
. def ( " ChangeBeardColor " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeBeardColor )
. def ( " ChangeEyeColor1 " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeEyeColor1 )
. def ( " ChangeEyeColor2 " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeEyeColor2 )
. def ( " ChangeHairStyle " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeHairStyle )
. def ( " ChangeLuclinFace " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeLuclinFace )
. def ( " ChangeBeard " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeBeard )
. def ( " ChangeDrakkinHeritage " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeDrakkinHeritage )
. def ( " ChangeDrakkinTattoo " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeDrakkinTattoo )
. def ( " ChangeDrakkinDetails " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : ChangeDrakkinDetails )
2013-05-19 12:13:44 -07:00
. def ( " CameraEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 ) ) & Lua_Mob : : CameraEffect )
. def ( " CameraEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , Lua_Client ) ) & Lua_Mob : : CameraEffect )
. def ( " CameraEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , Lua_Client , bool ) ) & Lua_Mob : : CameraEffect )
. def ( " SendSpellEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , uint32 , bool , uint32 ) ) & Lua_Mob : : SendSpellEffect )
. def ( " SendSpellEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , uint32 , bool , uint32 , bool ) ) & Lua_Mob : : SendSpellEffect )
. def ( " SendSpellEffect " , ( void ( Lua_Mob : : * ) ( uint32 , uint32 , uint32 , bool , uint32 , bool , Lua_Client ) ) & Lua_Mob : : SendSpellEffect )
. def ( " TempName " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : TempName )
. def ( " TempName " , ( void ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : TempName )
2015-06-01 22:20:41 -04:00
. def ( " GetGlobal " , ( std : : string ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : GetGlobal )
2013-05-19 12:13:44 -07:00
. def ( " SetGlobal " , ( void ( Lua_Mob : : * ) ( const char * , const char * , int , const char * ) ) & Lua_Mob : : SetGlobal )
. def ( " SetGlobal " , ( void ( Lua_Mob : : * ) ( const char * , const char * , int , const char * , Lua_Mob ) ) & Lua_Mob : : SetGlobal )
. def ( " TarGlobal " , ( void ( Lua_Mob : : * ) ( const char * , const char * , const char * , int , int , int ) ) & Lua_Mob : : TarGlobal )
. def ( " DelGlobal " , ( void ( Lua_Mob : : * ) ( const char * ) ) & Lua_Mob : : DelGlobal )
. def ( " SetSlotTint " , ( void ( Lua_Mob : : * ) ( int , int , int , int ) ) & Lua_Mob : : SetSlotTint )
. def ( " WearChange " , ( void ( Lua_Mob : : * ) ( int , int , uint32 ) ) & Lua_Mob : : WearChange )
. def ( " DoKnockback " , ( void ( Lua_Mob : : * ) ( Lua_Mob , uint32 , uint32 ) ) & Lua_Mob : : DoKnockback )
2017-10-09 00:04:43 -04:00
. def ( " AddNimbusEffect " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : AddNimbusEffect )
2013-05-19 12:13:44 -07:00
. def ( " RemoveNimbusEffect " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : RemoveNimbusEffect )
2015-12-14 14:57:03 -05:00
. def ( " IsFeared " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsFeared )
. def ( " IsBlind " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsBlind )
2013-05-19 12:13:44 -07:00
. def ( " IsRunning " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsRunning )
. def ( " SetRunning " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetRunning )
. def ( " SetBodyType " , ( void ( Lua_Mob : : * ) ( int , bool ) ) & Lua_Mob : : SetBodyType )
. def ( " SetTargetable " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetTargetable )
. def ( " ModSkillDmgTaken " , ( void ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : ModSkillDmgTaken )
. def ( " GetModSkillDmgTaken " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetModSkillDmgTaken )
. def ( " GetSkillDmgTaken " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetSkillDmgTaken )
2017-06-12 16:37:25 -07:00
. def ( " GetFcDamageAmtIncoming " , & Lua_Mob : : GetFcDamageAmtIncoming )
2017-06-12 14:14:39 -07:00
. def ( " GetSkillDmgAmt " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetSkillDmgAmt )
2013-05-19 12:13:44 -07:00
. def ( " SetAllowBeneficial " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetAllowBeneficial )
. def ( " GetAllowBeneficial " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetAllowBeneficial )
. def ( " IsBeneficialAllowed " , ( bool ( Lua_Mob : : * ) ( Lua_Mob ) ) & Lua_Mob : : IsBeneficialAllowed )
. def ( " ModVulnerability " , ( void ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : ModVulnerability )
. def ( " GetModVulnerability " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetModVulnerability )
. def ( " SetDisableMelee " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetDisableMelee )
. def ( " IsMeleeDisabled " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsMeleeDisabled )
. def ( " SetFlurryChance " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetFlurryChance )
2013-05-25 01:08:30 -07:00
. def ( " GetFlurryChance " , ( int ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetFlurryChance )
2013-07-07 15:22:20 -07:00
. def ( " GetSkill " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetSkill )
. def ( " GetSpecialAbility " , ( int ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : GetSpecialAbility )
2013-07-08 14:37:01 -07:00
. def ( " GetSpecialAbilityParam " , ( int ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : GetSpecialAbilityParam )
2013-07-07 15:22:20 -07:00
. def ( " SetSpecialAbility " , ( void ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : SetSpecialAbility )
2013-07-08 14:37:01 -07:00
. def ( " SetSpecialAbilityParam " , ( void ( Lua_Mob : : * ) ( int , int , int ) ) & Lua_Mob : : SetSpecialAbilityParam )
2013-07-07 15:22:20 -07:00
. def ( " ClearSpecialAbilities " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : ClearSpecialAbilities )
. def ( " ProcessSpecialAbilities " , ( void ( Lua_Mob : : * ) ( std : : string ) ) & Lua_Mob : : ProcessSpecialAbilities )
2016-11-28 13:50:24 -08:00
. def ( " GetAppearance " , ( uint32 ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetAppearance )
2013-07-07 15:22:20 -07:00
. def ( " SetAppearance " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : SetAppearance )
2014-02-22 15:04:01 -08:00
. def ( " SetAppearance " , ( void ( Lua_Mob : : * ) ( int , bool ) ) & Lua_Mob : : SetAppearance )
2014-03-09 18:41:50 -07:00
. def ( " SetDestructibleObject " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetDestructibleObject )
. def ( " IsImmuneToSpell " , ( bool ( Lua_Mob : : * ) ( int , Lua_Mob ) ) & Lua_Mob : : IsImmuneToSpell )
. def ( " BuffFadeBySpellID " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : BuffFadeBySpellID )
. def ( " BuffFadeByEffect " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : BuffFadeByEffect )
. def ( " BuffFadeByEffect " , ( void ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : BuffFadeByEffect )
. def ( " BuffFadeAll " , ( void ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : BuffFadeAll )
. def ( " BuffFadeBySlot " , ( void ( Lua_Mob : : * ) ( int ) ) & Lua_Mob : : BuffFadeBySlot )
. def ( " BuffFadeBySlot " , ( void ( Lua_Mob : : * ) ( int , bool ) ) & Lua_Mob : : BuffFadeBySlot )
. def ( " CanBuffStack " , ( int ( Lua_Mob : : * ) ( int , int ) ) & Lua_Mob : : CanBuffStack )
2015-06-10 23:10:00 -04:00
. def ( " CanBuffStack " , ( int ( Lua_Mob : : * ) ( int , int , bool ) ) & Lua_Mob : : CanBuffStack )
2015-12-28 20:07:59 -05:00
. def ( " SetPseudoRoot " , ( void ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SetPseudoRoot )
2015-12-19 15:23:04 -05:00
. def ( " SeeInvisible " , ( uint8 ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : SeeInvisible )
. def ( " SeeInvisibleUndead " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : SeeInvisibleUndead )
. def ( " SeeHide " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : SeeHide )
. def ( " SeeImprovedHide " , ( bool ( Lua_Mob : : * ) ( bool ) ) & Lua_Mob : : SeeImprovedHide )
. def ( " GetNimbusEffect1 " , ( uint8 ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetNimbusEffect1 )
. def ( " GetNimbusEffect2 " , ( uint8 ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetNimbusEffect2 )
. def ( " GetNimbusEffect3 " , ( uint8 ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetNimbusEffect3 )
. def ( " IsTargetable " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsTargetable )
. def ( " HasShieldEquiped " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : HasShieldEquiped )
. def ( " HasTwoHandBluntEquiped " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : HasTwoHandBluntEquiped )
. def ( " HasTwoHanderEquipped " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : HasTwoHanderEquipped )
. def ( " GetHerosForgeModel " , ( int32 ( Lua_Mob : : * ) ( uint8 ) ) & Lua_Mob : : GetHerosForgeModel )
. def ( " IsEliteMaterialItem " , ( uint32 ( Lua_Mob : : * ) ( uint8 ) ) & Lua_Mob : : IsEliteMaterialItem )
. def ( " GetBaseSize " , ( double ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetBaseSize )
. def ( " HasOwner " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : HasOwner )
. def ( " IsPet " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsPet )
. def ( " HasPet " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : HasPet )
. def ( " IsSilenced " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsSilenced )
2015-12-21 15:43:56 -05:00
. def ( " IsAmnesiad " , ( bool ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : IsAmnesiad )
2017-04-26 22:56:18 -07:00
. def ( " GetMeleeMitigation " , ( int32 ( Lua_Mob : : * ) ( void ) ) & Lua_Mob : : GetMeleeMitigation )
. def ( " GetWeaponDamageBonus " , & Lua_Mob : : GetWeaponDamageBonus )
. def ( " GetItemBonuses " , & Lua_Mob : : GetItemBonuses )
. def ( " GetSpellBonuses " , & Lua_Mob : : GetSpellBonuses )
. def ( " GetAABonuses " , & Lua_Mob : : GetAABonuses )
. def ( " GetMeleeDamageMod_SE " , & Lua_Mob : : GetMeleeDamageMod_SE )
2017-05-15 15:46:19 -07:00
. def ( " GetMeleeMinDamageMod_SE " , & Lua_Mob : : GetMeleeMinDamageMod_SE )
. def ( " IsAttackAllowed " , & Lua_Mob : : IsAttackAllowed )
. def ( " IsCasting " , & Lua_Mob : : IsCasting )
. def ( " AttackAnimation " , & Lua_Mob : : AttackAnimation )
. def ( " GetWeaponDamage " , & Lua_Mob : : GetWeaponDamage )
. def ( " IsBerserk " , & Lua_Mob : : IsBerserk )
2019-10-12 21:07:06 -07:00
. def ( " TryFinishingBlow " , & Lua_Mob : : TryFinishingBlow )
2017-05-19 22:50:08 -07:00
. def ( " GetBodyType " , & Lua_Mob : : GetBodyType )
2017-06-12 14:14:39 -07:00
. def ( " GetOrigBodyType " , & Lua_Mob : : GetOrigBodyType )
. def ( " CheckNumHitsRemaining " , & Lua_Mob : : CheckNumHitsRemaining ) ;
2013-07-07 15:22:20 -07:00
}
luabind : : scope lua_register_special_abilities ( ) {
return luabind : : class_ < SpecialAbilities > ( " SpecialAbility " )
. enum_ ( " constants " )
[
luabind : : value ( " summon " , static_cast < int > ( SPECATK_SUMMON ) ) ,
luabind : : value ( " enrage " , static_cast < int > ( SPECATK_ENRAGE ) ) ,
luabind : : value ( " rampage " , static_cast < int > ( SPECATK_RAMPAGE ) ) ,
luabind : : value ( " area_rampage " , static_cast < int > ( SPECATK_AREA_RAMPAGE ) ) ,
luabind : : value ( " flurry " , static_cast < int > ( SPECATK_FLURRY ) ) ,
luabind : : value ( " triple_attack " , static_cast < int > ( SPECATK_TRIPLE ) ) ,
luabind : : value ( " quad_attack " , static_cast < int > ( SPECATK_QUAD ) ) ,
luabind : : value ( " innate_dual_wield " , static_cast < int > ( SPECATK_INNATE_DW ) ) ,
luabind : : value ( " bane_attack " , static_cast < int > ( SPECATK_BANE ) ) ,
luabind : : value ( " magical_attack " , static_cast < int > ( SPECATK_MAGICAL ) ) ,
luabind : : value ( " ranged_attack " , static_cast < int > ( SPECATK_RANGED_ATK ) ) ,
luabind : : value ( " unslowable " , static_cast < int > ( UNSLOWABLE ) ) ,
luabind : : value ( " unmezable " , static_cast < int > ( UNMEZABLE ) ) ,
luabind : : value ( " uncharmable " , static_cast < int > ( UNCHARMABLE ) ) ,
luabind : : value ( " unstunable " , static_cast < int > ( UNSTUNABLE ) ) ,
luabind : : value ( " unsnareable " , static_cast < int > ( UNSNAREABLE ) ) ,
luabind : : value ( " unfearable " , static_cast < int > ( UNFEARABLE ) ) ,
luabind : : value ( " undispellable " , static_cast < int > ( UNDISPELLABLE ) ) ,
luabind : : value ( " immune_melee " , static_cast < int > ( IMMUNE_MELEE ) ) ,
luabind : : value ( " immune_magic " , static_cast < int > ( IMMUNE_MAGIC ) ) ,
luabind : : value ( " immune_fleeing " , static_cast < int > ( IMMUNE_FLEEING ) ) ,
luabind : : value ( " immune_melee_except_bane " , static_cast < int > ( IMMUNE_MELEE_EXCEPT_BANE ) ) ,
luabind : : value ( " immune_melee_except_magical " , static_cast < int > ( IMMUNE_MELEE_NONMAGICAL ) ) ,
luabind : : value ( " immune_aggro " , static_cast < int > ( IMMUNE_AGGRO ) ) ,
luabind : : value ( " immune_aggro_on " , static_cast < int > ( IMMUNE_AGGRO_ON ) ) ,
luabind : : value ( " immune_casting_from_range " , static_cast < int > ( IMMUNE_CASTING_FROM_RANGE ) ) ,
luabind : : value ( " immune_feign_death " , static_cast < int > ( IMMUNE_FEIGN_DEATH ) ) ,
luabind : : value ( " immune_taunt " , static_cast < int > ( IMMUNE_TAUNT ) ) ,
luabind : : value ( " tunnelvision " , static_cast < int > ( NPC_TUNNELVISION ) ) ,
luabind : : value ( " dont_buff_friends " , static_cast < int > ( NPC_NO_BUFFHEAL_FRIENDS ) ) ,
luabind : : value ( " immune_pacify " , static_cast < int > ( IMMUNE_PACIFY ) ) ,
luabind : : value ( " leash " , static_cast < int > ( LEASH ) ) ,
luabind : : value ( " tether " , static_cast < int > ( TETHER ) ) ,
luabind : : value ( " destructible_object " , static_cast < int > ( DESTRUCTIBLE_OBJECT ) ) ,
2014-02-26 18:06:16 -08:00
luabind : : value ( " no_harm_from_client " , static_cast < int > ( NO_HARM_FROM_CLIENT ) ) ,
luabind : : value ( " always_flee " , static_cast < int > ( ALWAYS_FLEE ) ) ,
2015-07-12 23:37:43 -04:00
luabind : : value ( " flee_percent " , static_cast < int > ( FLEE_PERCENT ) ) ,
luabind : : value ( " allow_beneficial " , static_cast < int > ( ALLOW_BENEFICIAL ) ) ,
luabind : : value ( " disable_melee " , static_cast < int > ( DISABLE_MELEE ) ) ,
luabind : : value ( " npc_chase_distance " , static_cast < int > ( NPC_CHASE_DISTANCE ) ) ,
luabind : : value ( " allow_to_tank " , static_cast < int > ( ALLOW_TO_TANK ) ) ,
luabind : : value ( " ignore_root_aggro_rules " , static_cast < int > ( IGNORE_ROOT_AGGRO_RULES ) ) ,
luabind : : value ( " casting_resist_diff " , static_cast < int > ( CASTING_RESIST_DIFF ) ) ,
2018-01-18 18:33:36 -05:00
luabind : : value ( " counter_avoid_damage " , static_cast < int > ( COUNTER_AVOID_DAMAGE ) ) ,
luabind : : value ( " immune_ranged_attacks " , static_cast < int > ( IMMUNE_RANGED_ATTACKS ) )
2013-07-07 15:22:20 -07:00
] ;
2013-05-19 12:13:44 -07:00
}
2013-05-10 20:13:35 -07:00
# endif