Visitas
Contador Gratis
Conectarse

Recuperar mi contraseña

Últimos temas
» Nuevo Servidor wotlk progresivo: Utgarde blizzlike 3.3.5a
Lun Nov 14, 2016 3:41 pm por ragnarosxd

» WoW server ragnaros 3.3.5a high reates
Miér Jun 24, 2015 11:12 pm por ragnarosxd

» WoW server ragnaros 3.3.5a high reates
Miér Jun 24, 2015 11:11 pm por ragnarosxd

» Traducciones WhyDB
Vie Mayo 02, 2014 10:54 pm por tubafonos

» realmlist
Jue Ago 29, 2013 5:36 pm por locoiii

» cual es el realmist????
Mar Mayo 14, 2013 3:15 am por bosz

» Presentacion
Lun Abr 01, 2013 6:40 am por danigraful

» holaa me podeis ayudarr
Dom Mar 31, 2013 5:34 pm por alejandro9696

» WOWPlus - Excelente Servidor WoW 3.3.5 a (WOTLK)
Miér Mar 27, 2013 2:33 am por Galawowplus

GratisWoWTodo Sobre Servidores WoW

Funciones LUA

Ver el tema anterior Ver el tema siguiente Ir abajo

Funciones LUA

Mensaje por Ariath el Lun Abr 06, 2009 9:40 pm

De momento, solo voy a poner aquí las funciones LUA que he encontrado en el LUAEngine.cpp de ArcEmu. Ya iré viendo para que sirve cada una:

Spoiler:
/************************************************************************/
/* SCRIPT FUNCTION TABLES */
/************************************************************************/
RegType<Item> ItemMethods[] = {
// Item Gossip functions
{ "GossipCreateMenu", &luaItem_GossipCreateMenu },
{ "GossipMenuAddItem", &luaItem_GossipMenuAddItem },
{ "GossipSendMenu", &luaItem_GossipSendMenu },
{ "GossipComplete", &luaItem_GossipComplete },
{ "GossipSendPOI", &luaItem_GossipSendPOI },
{ NULL, NULL },
};

RegType<Unit> UnitMethods[] = {
{ "GossipCreateMenu", &luaUnit_GossipCreateMenu },
{ "GossipMenuAddItem", &luaUnit_GossipMenuAddItem },
{ "GossipSendMenu", &luaUnit_GossipSendMenu },
{ "GossipComplete", &luaUnit_GossipComplete },
{ "GossipSendPOI", &luaUnit_GossipSendPOI },
{ "GetName", &luaUnit_GetName },
{ "SendChatMessage", &luaUnit_SendChatMessage },
{ "MoveTo", &luaUnit_MoveTo },
{ "SetMovementType", &luaUnit_SetMovementType },
{ "CastSpell", &luaUnit_CastSpell },
{ "FullCastSpell", &luaUnit_FullCastSpell },
{ "CastSpellOnTarget", &luaUnit_CastSpell },
{ "FullCastSpellOnTarget", &luaUnit_FullCastSpellOnTarget },
{ "SpawnCreature", &luaUnit_SpawnCreature },
{ "SpawnGameObject", &luaUnit_SpawnGameObject },
{ "GetX", &luaUnit_GetX },
{ "GetY", &luaUnit_GetY },
{ "GetZ", &luaUnit_GetZ },
{ "GetO", &luaUnit_GetO },
{ "IsPlayer", &luaUnit_IsPlayer },
{ "IsCreature", &luaUnit_IsCreature },
{ "RegisterEvent", &luaUnit_RegisterEvent },
{ "RemoveEvents", &luaUnit_RemoveEvents },
{ "SendBroadcastMessage", &luaUnit_SendBroadcastMessage },
{ "SendAreaTriggerMessage", &luaUnit_SendAreaTriggerMessage },
{ "KnockBack", &luaUnit_KnockBack },
{ "MarkQuestObjectiveAsComplete", &luaUnit_MarkQuestObjectiveAsComplete },
{ "LearnSpell", &luaUnit_LearnSpell },
{ "UnlearnSpell", &luaUnit_UnlearnSpell },
{ "HasFinishedQuest", &luaUnit_HasFinishedQuest },
{ "GetItemCount", &luaUnit_GetItemCount },
{ "IsInCombat", &luaUnit_IsInCombat },
{ "GetMainTank", &luaUnit_GetMainTank },
{ "GetAddTank", &luaUnit_GetAddTank },
{ "ClearThreatList", &luaUnit_ClearThreatList },
{ "GetTauntedBy", &luaUnit_GetTauntedBy },
{ "SetTauntedBy", &luaUnit_SetTauntedBy },
{ "SetSoulLinkedWith", &luaUnit_SetSoulLinkedWith },
{ "GetSoulLinkedWith", &luaUnit_GetSoulLinkedWith },
{ "ChangeTarget", &luaUnit_ChangeTarget },
{ "GetHealthPct", &luaUnit_GetHealthPct },
{ "SetHealthPct", &luaUnit_SetHealthPct },
{ "GetManaPct", &luaUnit_GetManaPct },
{ "Despawn", &luaUnit_Despawn },
{ "GetUnitBySqlId", &luaUnit_GetUnitBySqlId },
{ "PlaySoundToSet", &luaUnit_PlaySoundToSet },
{ "RemoveAura", &luaUnit_RemoveAura },
{ "StopMovement", &luaUnit_StopMovement },
{ "Emote", &luaUnit_Emote },
{ "GetInstanceID", &luaUnit_GetInstanceID },
{ "GetClosestPlayer", &luaUnit_GetClosestPlayer },
{ "GetRandomPlayer", &luaUnit_GetRandomPlayer },
{ "GetRandomFriend", &luaUnit_GetRandomFriend },
{ "AddItem", &luaUnit_AddItem },
{ "RemoveItem", &luaUnit_RemoveItem },
{ "CreateCustomWaypointMap", &luaUnit_CreateCustomWaypointMap },
{ "CreateWaypoint", &luaUnit_CreateWaypoint },
{ "MoveToWaypoint", &luaUnit_MoveToWaypoint },
{ "DestroyCustomWaypointMap", &luaUnit_DestroyCustomWaypointMap },
{ "SetCombatCapable", &luaUnit_SetCombatCapable },
{ "SetCombatMeleeCapable", &luaUnit_SetCombatMeleeCapable },
{ "SetCombatRangedCapable", &luaUnit_SetCombatRangedCapable },
{ "SetCombatSpellCapable", &luaUnit_SetCombatSpellCapable },
{ "SetCombatTargetingCapable", &luaUnit_SetCombatTargetingCapable },
{ "SetNPCFlags", &luaUnit_SetNPCFlags },
{ "SetModel", &luaUnit_SetModel },
{ "SetScale", &luaUnit_SetScale },
{ "SetFaction", &luaUnit_SetFaction },
{ "SetStandState",&luaUnit_SetStandState },
{ "Teleport" , &luaUnit_TeleportUnit },
{ "GetPlayerClass", &luaUnit_GetPlayerClass },
{ "ClearThreatList", &luaUnit_ClearHateList },
{ "WipeThreatList", &luaUnit_WipeHateList },
{ "WipeTargetList", &luaUnit_WipeTargetList },
{ "WipeCurrentTarget", &luaUnit_WipeCurrentTarget },
{ "GetHealth", &luaUnit_GetHealth },
{ "GetMaxHealth", &luaUnit_GetMaxHealth },
{ "SetHealth", &luaUnit_SetHealth },
{ "SetMaxHealth", &luaUnit_SetMaxHealth },
{ "HasAura", &luaUnit_HasAura },
{ "Land", &luaUnit_Land },
{ "SetFlying", &luaUnit_SetFlying },
{ "SetMana", &luaUnit_SetMana },
{ "SetMaxMana", &luaUnit_SetMaxMana },
{ "GetDistance", &luaUnit_GetDistance },
{ "GetGUID", &luaUnit_GetGUID },
{ "GetCreatureNearestCoords", &luaUnit_GetCreatureNearestCoords },
{ "CastSpellAoF", &luaUnit_CastSpellAoF },
{ "GetGameObjectNearestCoords", &luaUnit_GetGameObjectNearestCoords },
{ "SetInFront", &luaUnit_SetInFront },
{ "RemoveAllAuras", &luaUnit_RemoveAllAuras },
{ "ReturnToSpawnPoint", &luaUnit_ReturnToSpawnPoint },
{ "CancelSpell", &luaUnit_CancelSpell },
{ "IsAlive", &luaUnit_IsAlive },
{ "IsDead", &luaUnit_IsDead },
{ "IsInWorld", &luaUnit_IsInWorld },
{ "GetZoneId", &luaUnit_GetZoneId },
{ "GetMana", &luaUnit_GetMana },
{ "GetMaxMana", &luaUnit_GetMaxMana },
{ "Root", &luaUnit_Root },
{ "Unroot", &luaUnit_Unroot },
{ "IsCreatureMoving", &luaUnit_IsCreatureMoving },
{ "SetOutOfCombatRange", &luaUnit_SetOutOfCombatRange },
{ "ModifyRunSpeed", &luaUnit_ModifyRunSpeed },
{ "ModifyWalkSpeed", &luaUnit_ModifyWalkSpeed },
{ "ModifyFlySpeed" , &luaUnit_ModifyFlySpeed },
{ "GetCurrentSpell", &luaUnit_GetCurrentSpell },
{ "IsFlying", &luaUnit_IsFlying },
{ "SetRotation", &luaUnit_SetRotation },
{ "SetOrientation", &luaUnit_SetOrientation },
{ "GetSpawnX", &luaUnit_GetSpawnX },
{ "GetSpawnY", &luaUnit_GetSpawnY },
{ "GetSpawnZ", &luaUnit_GetSpawnZ },
{ "GetSpawnO", &luaUnit_GetSpawnO },
{ "GetInRangePlayersCount", &luaUnit_GetInRangePlayersCount },
{ "GetEntry", &luaUnit_GetEntry },
{ "SetMoveRunFlag", &luaUnit_SetMoveRunFlag },
{ "GetAIState", &luaUnit_GetAIState },
{ "ModUInt32Value", &luaUnit_ModUInt32Value },
{ "ModFloatValue", &luaUnit_ModFloatValue },
{ "SetUInt32Value", &luaUnit_SetUInt32Value },
{ "SetUInt64Value", &luaUnit_SetUInt64Value },
{ "SetFloatValue", &luaUnit_SetFloatValue },
{ "GetUInt32Value", &luaUnit_GetUInt32Value },
{ "GetUInt64Value", &luaUnit_GetUInt64Value },
{ "GetFloatValue", &luaUnit_GetFloatValue },
{ "InitPacket", &luaUnit_InitPacket },
{ "AddDataToPacket", &luaUnit_AddDataToPacket },
{ "AddGuidDataToPacket", &luaUnit_AddGuidDataToPacket },
{ "SendData", &luaUnit_SendData },
{ "AdvanceQuestObjective", &luaUnit_AdvanceQuestObjective },
{ "Heal", &luaUnit_Heal },
{ "Energize", &luaUnit_Energize },
{ "SendChatMessageAlternateEntry", &luaUnit_SendChatMessageAlternateEntry },
{ "SendChatMessageToPlayer", &luaUnit_SendChatMessageToPlayer },
{ "SetPowerType", &luaUnit_SetPowerType },
{ "Strike", &luaUnit_Strike },
{ "SetAttackTimer", &luaUnit_SetAttackTimer },
{ "Kill", &luaUnit_Kill },
{ "DealDamage", &luaUnit_DealDamage },
{ "IsInFront", &luaUnit_IsInFront },
{ "IsInBack", &luaUnit_IsInBack },
{ "IsPacified", &luaUnit_IsPacified },
{ "IsStunned", &luaUnit_IsStunned },
{ "IsFeared", &luaUnit_IsFeared },
{ "CreateGuardian", &luaUnit_CreateGuardian },
{ "HandleEvent", &luaUnit_HandleEvent },
{ "HasInRangeObjects", &luaUnit_HasInRangeObjects },
{ "IsInWater", &luaUnit_IsInWater },
//{ "IsInArc", &luaUnit_IsInArc },
{ "GetInRangeObjects", &luaUnit_GetInRangeGameObjects },
{ "GetInRangeObjectsCount", &luaUnit_GetInRangeObjectsCount },
{ "GetAITargetsCount", &luaUnit_GetAITargetsCount },
{ "SetUnitToFollow", &luaUnit_SetUnitToFollow },
{ "GetUnitToFollow", &luaUnit_GetUnitToFollow },
{ "DismissPet", &luaUnit_DismissPet },
{ "IsPet", &luaUnit_IsPet },
{ "SetNextTarget", &luaUnit_SetNextTarget },
{ "GetNextTarget", &luaUnit_GetNextTarget },
{ "SetPetOwner", &luaUnit_SetPetOwner },
{ "GetPetOwner", &luaUnit_GetPetOwner },
{ "CalcToDistance", &luaUnit_CalcToDistance },
{ "CalcAngle", &luaUnit_CalcAngle },
{ "CalcRadAngle", &luaUnit_CalcRadAngle },
{ "SetFacing", &luaUnit_SetFacing },
{ "SetDeathState", &luaUnit_SetDeathState },
{ "IsInvisible", &luaUnit_IsInvisible },
{ "IsInvincible", &luaUnit_IsInvincible },
{ "ResurrectPlayer", &luaUnit_ResurrectPlayer },
{ "KickPlayer", &luaUnit_KickPlayer },
{ "CanCallForHelp", &luaUnit_CanCallForHelp },
{ "CallForHelpHp", &luaUnit_CallForHelpHp },
{ "SetCreatureNameById", &luaUnit_SetCreatureName },
//{ "GetAITargets", &luaUnit_GetAITargets },
{ "GetInRangePlayers", &luaUnit_GetInRangePlayers },
{ "GetUnitByGUID", &luaUnit_GetUnitByGUID },
{ "RemoveFromWorld", &luaUnit_RemoveFromWorld },
{ "GetFaction", &luaUnit_GetFaction },
{ "EnableMoveFly", &luaUnit_MoveFly },
{ "SpellNonMeleeDamageLog", &luaUnit_SpellNonMeleeDamageLog },
{ "DisableRespawn", &luaUnit_NoRespawn },
{ "ModThreat", &luaUnit_ModThreat },
{ "GetThreat", &luaUnit_GetThreatByPtr },
{ "GetInRangeFriends", &luaUnit_GetInRangeFriends },
{ "GetPowerType", &luaUnit_GetPowerType },
{ "GetMapId", &luaUnit_GetMapId },
{ "CalcDistance" , &luaUnit_CalcDistance },
{ "AttackReaction", &luaUnit_AttackReaction },
{ "EventCastSpell", &luaUnit_EventCastSpell },
{ "IsPlayerMoving", &luaUnit_IsPlayerMoving },
{ "IsPlayerAttacking", &luaUnit_IsPlayerAttacking },
//{ "IsPlayerAtWar", &luaUnit_IsPlayerAtWar },
{ "RemoveThreat", &luaUnit_RemoveThreatByPtr },
{ "SetPlayerAtWar", &luaUnit_SetPlayerAtWar },
{ "GetFactionStanding", &luaUnit_GetFactionStanding },
{ "PlaySpellVisual", &luaUnit_PlaySpellVisual },
{ "GetPlayerLevel", &luaUnit_GetPlayerLevel },
{ "SetPlayerLevel", &luaUnit_SetPlayerLevel },
{ "SetStanding", &luaUnit_SetPlayerStanding },
{ "GetStanding", &luaUnit_GetStanding },
{ "HasItem", &luaUnit_HasItem },
{ "AdvanceSkill", &luaUnit_AdvanceSkill },
{ "AddSkill", &luaUnit_AddSkill },
{ "RemoveSkill", &luaUnit_RemoveSkill },
{ "EnableFlyCheat", &luaUnit_FlyCheat },
{ "AddAssistTarget", &luaUnit_AddAssistTargets },
{ "GetCurrentSpellId", &luaUnit_GetCurrentSpellId },
{ "GetPlayerRace", &luaUnit_GetPlayerRace },
{ "RemoveAurasByMechanic", &luaUnit_RemoveAurasByMechanic },
{ "RemoveAurasType", &luaUnit_RemoveAurasType },
//{ "AddAuraVisual", &luaUnit_AddAuraVisual }, N33D F1X
{ "AddAuraVisual", NULL },

{ NULL, NULL },
};

RegType<GameObject> GOMethods[] = {
{ "GetGUID", &luaGameObject_GetGUID },
{ "GetName", &luaGameObject_GetName },
{ "Teleport" , &luaGameObject_Teleport },
{ "GetCreatureNearestCoords", &luaGameObject_GetCreatureNearestCoords },
//{ "GetAreaID", &luaGameObject_GetAreaID },
{ "AddItem", &luaGameObject_AddItem },
{ "GetGameObjectNearestCoords", &luaGameObject_GetGameObjectNearestCoords },
{ "GetItemCount", &luaGameObject_GetItemCount },
{ "GetZoneId", &luaGameObject_GetZoneId },
{ "GetClosestPlayer", &luaGameObject_GetClosestPlayer },
{ "SpawnCreature", &luaGameObject_SpawnCreature },
{ "SpawnGameObject", &luaGameObject_SpawnGameObject },
{ "IsInWorld", &luaGameObject_IsInWorld },
{ "GetSpawnX", &luaGameObject_GetSpawnX },
{ "GetSpawnY", &luaGameObject_GetSpawnY },
{ "GetSpawnZ", &luaGameObject_GetSpawnZ },
{ "GetSpawnO", &luaGameObject_GetSpawnO },
{ "GetInRangePlayersCount", &luaGameObject_GetInRangePlayersCount },
{ "GetEntry", &luaGameObject_GetEntry },
{ "SetOrientation", &luaGameObject_SetOrientation },
{ "GetX", &luaGameObject_GetX },
{ "GetY", &luaGameObject_GetY },
{ "GetZ", &luaGameObject_GetZ },
{ "GetO", &luaGameObject_GetO },
{ "RemoveFromWorld", &luaGameObject_RemoveFromWorld },
{ "CalcRadAngle", &luaGameObject_CalcRadAngle },
{ "GetInstanceID", &luaGameObject_GetInstanceID },
{ "GetInRangePlayers", &luaGameObject_GetInRangePlayers },
{ "GetInRangeObjects", &luaGameObject_GetInRangeGameObjects },
{ "IsInBack", &luaGameObject_IsInBack },
{ "IsInFront", &luaGameObject_IsInFront },
{ "GetMapId", &luaGameObject_GetMapId },
{ "SetUInt32Value", &luaGameObject_SetUInt32Value },
{ "SetUInt64Value", &luaGameObject_SetUInt64Value },
{ "SetFloatValue", &luaGameObject_SetFloatValue },
{ "GetUInt32Value", &luaGameObject_GetUInt32Value },
{ "GetUInt64Value", &luaGameObject_GetUInt64Value },
{ "GetFloatValue", &luaGameObject_GetFloatValue },
{ "ModUInt32Value", &luaGameObject_ModUInt32Value },
{ "CastSpell", &luaGameObject_CastSpell },
{ "FullCastSpell", &luaGameObject_FullCastSpell },
{ "CastSpellOnTarget", &luaGameObject_CastSpellOnTarget },
{ "FullCastSpellOnTarget", &luaGameObject_FullCastSpellOnTarget },
{ "GossipObjectCreateMenu", &luaGameObject_GossipCreateMenu },
{ "GossipObjectMenuAddItem", &luaGameObject_GossipMenuAddItem },
{ "GossipObjectSendMenu", &luaGameObject_GossipSendMenu },
{ "GossipObjectComplete", &luaGameObject_GossipComplete },
{ "GossipObjectSendPOI", &luaGameObject_GossipSendPOI },
// { "EventCastSpell", &luaGameObject_EventCastSpell },

/*{ "ModFloatValue", &luaGameObject_ModFloatValue },
{ "InitPacket", &luaGameObject_InitPacket },
{ "AddDataToPacket", &luaGameObject_AddDataToPacket },
{ "AddGuidDataToPacket", &luaGameObject_AddGuidDataToPacket },
{ "SendData", &luaGameObject_SendData },*/

{ NULL, NULL },
};

Salu2

_________________
NO contestaré a ningún tipo de email o MP (mensaje privado) referente a dudas o problemas con servidores.

El FORO está para algo.

Cualquier cosa que reciba de esa índole, se la comerá la papelera.

Gracias

Ariath
Admin

Cantidad de envíos : 747
Oro : 5060
Reputación : 531
Fecha de inscripción : 23/01/2009

Ver perfil de usuario http://wow-realm.forosactivos.net

Volver arriba Ir abajo

Re: Funciones LUA

Mensaje por xapu el Mar Abr 07, 2009 7:43 pm

esto esta por casualidad en trunk\src\scripts\src\LUAScripting ?
eske ai salen todas las funciones i se pueden crear mas si saves de c++

xapu
Aprendiz

Cantidad de envíos : 100
Oro : 184
Reputación : 0
Fecha de inscripción : 11/02/2009
Edad : 22
Localización : zaragoza (aragon,españa)

Ver perfil de usuario

Volver arriba Ir abajo

Re: Funciones LUA

Mensaje por Ariath el Mar Abr 07, 2009 8:49 pm

Sip, casi XD.

Lo he extraido de: \trunk\src\scripts\src\LUAScripting\LUAEngine.cpp

También se puede encontrar en: \branches\2.4.3\src\scripts\src\LUAScripting\LUAEngine.cpp

Salu2

_________________
NO contestaré a ningún tipo de email o MP (mensaje privado) referente a dudas o problemas con servidores.

El FORO está para algo.

Cualquier cosa que reciba de esa índole, se la comerá la papelera.

Gracias

Ariath
Admin

Cantidad de envíos : 747
Oro : 5060
Reputación : 531
Fecha de inscripción : 23/01/2009

Ver perfil de usuario http://wow-realm.forosactivos.net

Volver arriba Ir abajo

Re: Funciones LUA

Mensaje por Contenido patrocinado Hoy a las 3:16 pm


Contenido patrocinado


Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.