More lua work - changed how i get return values off the stack and do calls

This commit is contained in:
KimLS
2013-05-11 16:37:03 -07:00
parent fa908040ca
commit 70998d25e3
4 changed files with 136 additions and 12 deletions
+90
View File
@@ -46,6 +46,96 @@ public:
void Heal();
void HealDamage(uint32 amount);
void HealDamage(uint32 amount, Lua_Mob other);
//uint32 GetLevelCon(int other);
//uint32 GetLevelCon(int my, int other);
//void SetHP(int hp);
//void DoAnim(int anim_num);
//void DoAnim(int anim_num, int type);
//void DoAnim(int anim_num, int type, bool ackreq);
//void DoAnim(int anim_num, int type, bool ackreq, eqFilterType filter);
//void ChangeSize(float in_size);
//void ChangeSize(float in_size, bool no_restriction);
//void GMMove(float x, float y, float z);
//void GMMove(float x, float y, float z, float heading);
//void GMMove(float x, float y, float z, float heading, bool SendUpdate);
//void SendPosUpdate();
//void SendPosUpdate(bool send_to_self);
//void SendPosition();
//bool HasProcs();
//bool IsInvisible();
//bool IsInvisible(Lua_Mob other);
//void SetInvisible(int state);
//bool FindBuff(uint16 spell_id);
//bool FindType(uint16 type);
//bool FindType(uint16 type, bool bOffensive);
//bool FindType(uint16 type, bool bOffensive, uint16 threshold);
//int GetBuffSlotFromType(int slot);
//void MakePet(int spell_id, const char* pet_type);
//void MakePet(int spell_id, const char* pet_type, const char *pet_name);
//void MakePoweredPet(int spell_id, const char* pet_type);
//void MakePoweredPet(int spell_id, const char* pet_type, int pet_power);
//void MakePoweredPet(int spell_id, const char* pet_type, int pet_power, const char *pet_name);
//int GetBaseRace();
//int GetBaseGender();
//int GetDeity();
//int GetRace();
//int GetGender();
//int GetTexture();
//int GetHelmTexture();
//int GetHairColor();
//int GetBeardColor();
//int GetEyeColor1();
//int GetEyeColor2();
//int GetHairStyle();
//int GetLuclinFace();
//int GetBeard();
//int GetDrakkinHeritage();
//int GetDrakkinTattoo();
//int GetDrakkinDetails();
//int GetClass();
//int GetLevel();
//const char *GetCleanName();
//Lua_Mob GetTarget();
//void SetTarget(Lua_Mob t);
/*
"GetHPRatio"), XS_Mob_GetHPRatio, file, "$");
"IsWarriorClass"), XS_Mob_IsWarriorClass, file, "$");
"GetHP"), XS_Mob_GetHP, file, "$");
"GetMaxHP"), XS_Mob_GetMaxHP, file, "$");
"GetItemHPBonuses"), XS_Mob_GetItemHPBonuses, file, "$");
"GetSpellHPBonuses"), XS_Mob_GetSpellHPBonuses, file, "$");
"GetWalkspeed"), XS_Mob_GetWalkspeed, file, "$");
"GetRunspeed"), XS_Mob_GetRunspeed, file, "$");
"GetCasterLevel"), XS_Mob_GetCasterLevel, file, "$$");
"GetMaxMana"), XS_Mob_GetMaxMana, file, "$");
"GetMana"), XS_Mob_GetMana, file, "$");
"SetMana"), XS_Mob_SetMana, file, "$$");
"GetManaRatio"), XS_Mob_GetManaRatio, file, "$");
"GetAC"), XS_Mob_GetAC, file, "$");
"GetATK"), XS_Mob_GetATK, file, "$");
"GetSTR"), XS_Mob_GetSTR, file, "$");
"GetSTA"), XS_Mob_GetSTA, file, "$");
"GetDEX"), XS_Mob_GetDEX, file, "$");
"GetAGI"), XS_Mob_GetAGI, file, "$");
"GetINT"), XS_Mob_GetINT, file, "$");
"GetWIS"), XS_Mob_GetWIS, file, "$");
"GetCHA"), XS_Mob_GetCHA, file, "$");
"GetMR"), XS_Mob_GetMR, file, "$");
"GetFR"), XS_Mob_GetFR, file, "$");
"GetDR"), XS_Mob_GetDR, file, "$");
"GetPR"), XS_Mob_GetPR, file, "$");
"GetCR"), XS_Mob_GetCR, file, "$");
"GetCorruption"), XS_Mob_GetCR, file, "$");
"GetMaxSTR"), XS_Mob_GetMaxSTR, file, "$");
"GetMaxSTA"), XS_Mob_GetMaxSTA, file, "$");
"GetMaxDEX"), XS_Mob_GetMaxDEX, file, "$");
"GetMaxAGI"), XS_Mob_GetMaxAGI, file, "$");
"GetMaxINT"), XS_Mob_GetMaxINT, file, "$");
"GetMaxWIS"), XS_Mob_GetMaxWIS, file, "$");
"GetMaxCHA"), XS_Mob_GetMaxCHA, file, "$");
*/
};
#endif