mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* Shared tasks WIP; lots of logging; shared tasks and tasks work internally the same for now; lots to cleanup yet * Update task_manager.cpp * Add tables * World message handler * Zone message handler * More messaging * More rearranging * Task creation work (wip) * Tweaks * Decoupled things, added a shared task manager, moved logic to the manager, created the shared task object, now creating a sense of state on creation and members, zero validation, happy path * Cleanup unnecessary getter * More work on shared task persistence and state loading * Add int64 support into repositories * More state handling, creation loads all tables * Wrap up shared task state creation and removal * Move more lookup operations to preloading (memory). Restore shared task state during world bootup * Implement shared task updates * Add members other than just leader in task confirmations * Update shared_task_manager.cpp * Hook task cancellation for shared task removal (middleware) * Remove dynamic_zone_id from SharedTasks model in repositories (for now) since we will likely be one to many with DZ objects * Get members to show up in the window on creation * Add opcodes, cleanup * Add opcode handlers * Split some methods out, self removal of shared task and updating members * Implement offline shared task sync * Style changes * Send memberlist on initial login; implement remove player from shared task window * Refactorings, cleanup * Implement make leader in shared tasks window * Implement add player, sync shared task state after add * Add opcodes for remaining clients * Shared task invite dialogue window implementation and response handling (including validation) * Logging * Remove comment * Some cleanup * Pass NPC context through shared task request logic * Remove extra SharedTaskMember fields * Add message constants * Remove static * Only use dz for expedition request This passes expedition creation parameters through DynamicZone instead of injecting ExpeditionRequest since it can hold creation data now * Store expedition leader on dz This shifts to using the leader object that exists in the core dynamic zone object. It will be moved to the dynamic zone table later with other columns that should just be on the dz to make loading easier. Expeditions are probably the only dz type that will use this for window updates and command auth. Other systems on live do fill the window but don't keep it updated * Store expedition name on dz This uses the name stored on dz (for window packets) instead of duplicating it. This will be moved completely to dz table later * Store uuid on dynamic zone This lets dynamic zones generate the uuid instead of expeditions. Other dz type systems may want to make use of this. Lockouts should also be moved to dynamic zones at some point in the future so this will be necessary for that * Move expedition db columns to dz These columns should just belong to the core dynamic zone. This will simplify loading from the database and in the future a separate expedition table may no longer be necessary. * Move window packet methods to dz It makes more sense for these methods to be in the core This will also allow support for other systems to use the window, though live behavior that updates the window for shared task missions when not in an expedition is likely unintended since it's not updated on changes. * Store dynamic zone ids on clients These will now be used for client dynamic zone lookups to remove dependency on any dz type system caches * Move member management to dz This moves server messaging for adding and removing members to internal dynamic zone methods Set default dz member status to Unknown * Move member status caching to dz This moves world member status caching into internal dz methods Zone member updates for created expeditions are now async and sent after world replies with member statuses. Prior to this two memberlist packets were sent to members in other zones on creation to update statuses. This also fixes a bug with member statuses being wrong for offline raid members in the zone that created an expedition. Note that live kicks offline players out of raids so this is only to support emu behavior. * Move member status updates to dz * Set dz member status on all client dzs This also renames the zone entry dz update method and moves window update to a dynamic zone method. Eventually expedition components should just be merged with dz and handled as another dz type * Save instance safe return on characters Add character_instance_safereturns table and repository Previously dz safe return only worked for online characters via the dz kicktimer or offline characters with a workaround that moved them when an expedition was deleted. There were various edge cases that would cause characters to be moved to bind instead (succoring after removal, camping before kick timer, removed while offline, bulk kickplayers removal with some offline) This updates a character's instance safereturn every time they enter a zone. If a character enters world in an instance that expired or are no longer part of they'll be moved to their instance safereturn (if the safereturn data is for the same zone-instance). Bind is still a fallback This may also be used for non-dz instancing so it's named generically This removes the expedition MoveMembersToSafeReturn workaround which deprecates the is_current_member column of dynamic_zone_members and will be removed in a followup patch. * Remove is_current_member from dz members This was only being used in the workaround to move past members to dz safereturns if they were still inside the dz but not online * Let dz check leader in world This moves expedition leader processing in world to the dynamic zone. This is a step in phasing out the separate expedition class for things that can run off the dynamic zone core with simple dz type checks This greatly simplifies checking leader on member and status changes without needing callbacks. Other dz types that may use the dz leader object can just handle it directly on the dz the same as expeditions * Let dz handle member expire warnings This moves expire warning checks to dz. This will make it easier for other dz types to issue expire warnings if needed * Use separate dynamic zone cache Dynamic zones are no longer member objects of expeditions and have been placed into their own cache. This was done so other dz types can be cached without relying on their systems. Client and zone dz Lookups are now independent of any system This continues the process of phasing out a separate expedition cache. Eventually expeditions can just be run directly as dynamic zones internally with a few dz type checks. Add dz serialization methods (cereal) for passing server dz creation Modify #dz list to show cache and database separately. Also adds #dz cache reload. This command will reload expeditions too since they currently hold references to the dz in their own zone cache. Add a dynamic zone processing class to world to process all types and move expedition processing to it * Move expedition makeleader processing to dz * Let dz handle expedition deletions This removes the need for separate expedition cache in world This will greatly simplify world dynamic zone caching and processing. Dynamic zones that are expeditions can just handle this directly. Once lockouts and other components are completely moved to dynamic zones the separate expedition cache in zone will also no longer be necessary * Remove ExpeditionBase class Since world no longer caches expeditions this will not be necessary * Fix windows compile * Implement task dz creation Prototype dz creation for shared tasks * Add and remove shared task members from dz Also keep leader updated (used in choose zone window) * Fix client crash on failed shared task * Fix linux compile and warning * Check client nullptr for dz message This was accidently removed when expedition makeleader was moved * Disable dz creation for solo tasks * Add shared task repository headers to CMakeLists * Add shared task dynamic zones table * Add shared task dz database persistence * Get members from db on shared task dz creation This fixes a case where removing a member from a shared task dz would fail if the member's name was empty. This could happen if the shared task dz was created while a member was offline. This also changes the dz member removal method to only check id. It might be possible to change all dz member validations to only check ids since names are primarily for window updates, but shared task dz member names need to be non-empty anyway to support possible live-like dz window usage in the future. * Add character message methods to world Add simple and eqstr message methods to ClientList Add shared task manager methods to message all members or leader * Add SyncClientSharedTaskState and nested sync strategies to cover M3 work * Fix whitespace * Implement task request cooldown timer This implements the task request cooldown (15 seconds) that live uses when a task is accepted. This will also need to be set when shared tasks are offered (likely due to additional group/raid validations) * Implement shared task selector validation This implements the validation and filtering that occurs before the task selection window is sent to a client for shared tasks To keep things live-like, task selectors that contain a shared task will be run through shared task validation and drop non-shared tasks. Live doesn't mix types in task selections and this makes validation simpler. Also note that live sends shared task selectors via a different opcode than solo tasks but that has not been implemented yet * Add separate shared task select opcodes Live uses separate opcodes for solo and shared task selection windows * Convert ActivityType to enum class * Refactor task selector serialization This adds serializer methods to task and task objective structs for the task selection windows. This combines the duplicate task selector methods to reduce code duplication and simplify serialization * Add shared task selector This sends shared task selection window using the shared task specific opcode and adds an opcode handler for shared task accepts which are sent by client in response to setting selection window to shared task type. * Refactor task objective serialization This adds a serialization method to the task objective struct for serializing objectives in the window list and combines the separate client-based methods to reduce duplicated code. * Add task level spread and player count columns * Implement shared task accept validation This adds a common method for shared task character request queries * Add task replay and request timer columns * Add character task timers table * Use shared task accept time on clients This overrides client task accept time with shared task's creation time. This is needed for accurate window task timers and lockout messages especially for characters added to shared tasks post creation * Implement task timer lockouts This implements replay and request task timers for solo and shared tasks * Add solo and shared task timer validation * Remove logging of padding array This gets interpreted as a c string which may not be null terminated * Implement /kickplayers task This also fixes current CancelTask behavior for leader which was performing kickplayers functionality through the remove task button * Implement /taskquit command * Implement shared task invite validation Remove active invitation before invite accept validation * Remove local client db persistence during SyncClientSharedTaskRemoveLocalIfNotExists * Add missing accept time arg to assign task * Only validate non-zero task invite requirements * Fix task error log crash * Separate task cooldown timer messaging * Use method to check for client shared task * Avoid unneeded task invite validation query Only need to query character data for levels for non-zero level spread * Implement /tasktimers command May want to add some type of throttled caching mechanism for this in the future * Add /tasktimers rate limiter * Intercept shared task completion; more work to come * Change SharedTaskActivityState and SharedTasks time objects to datetime * Add updated_time updates to SharedTaskActivities * Mark shared tasks as complete when all activities are completed * Save a database query on shared task completion and use the active record in memory * Don't record shared task completions to the quest log * Implement RecordSharedTaskCompletion, add tables, repositories * Update shared_task_manager.cpp * Update shared_task_manager.cpp * Add shared task replay timers This is still not feature complete. On live any past members that ever joined the shared task will receive a replay timer when it's completed * Create FindCharactersInSharedTasks that searches through memory * Remove namespace shorthand and formatting * More minor cleanup * Implement PurgeAllSharedTasks via #task command * Add #task purgetimers * Decrease m_keepalive time between processes * Remove type ordering in /tasktimer query * Add comment for task packet reward multiplier This is likely a reward multiplier that changes text color based on value to represent any scaled bonus or penalty * Add replay timers to past members This implements the live behavior that adds replay timers to any previous member of a shared task. This likely exists to avoid possible exploits. Shared task member history is stored in memory and is used to assign replay timers. This history will be lost on world crashes or restarts but is simpler than saving past member state in database. This also makes world send shared task replay timer messages since past members need to be messaged now * Move PurgeTaskTimers client method to tasks.cpp * Remove dz members when purging shared tasks Server dz states need to be updated before shared tasks are deleted * Use exact name in shared task invites This removes the wildcards from shared task invite character queries which was sometimes selecting the wrong character Taskadd validation is called even for invalid characters to allow for proper messages to occur * Clear declined active shared task invitations This also notifies leader for declined shared task invites * Store shared task member names This adds back the character name field to SharedTaskMember. This should make serialization easier in the future and reduce database lookups when names are needed for /task commands * Implement /taskplayerlist command * Replace queries with member name lookups Now that shared task members store names these queries are unnecessary This also adds not-a-member messages for /taskremove and /taskmakeleader * Implement shared task member change packet This avoids sending the full member list to members when a single member is added or removed and lets the client generate chat messages for it. * Serialize shared task member list from world This uses cereal to serialize the full member list from world and removes the zone query workarounds * Initialize client task state array This was causing sql query errors on client state reloads The client task information array was uninitialized resulting in being filled with 0xcdcdcdcd values in msvc debug builds. Under release builds this may have resulted in indeterminate values A better fix would be to refactor some of this legacy code * Add shared task command messages Add messages for non-leader task commands This adds taskadd, taskremove, taskmakeleader, and taskquit messages The leader receives double messages for taskremove like live due to the client generated message as well as the explicit one. It also receives double server messages if the leader /taskremoves self. * Replace some task messages with eqstrs This also updates to use live colors * Avoid shared task invite leader lookup query Since member names are stored now this query is also unnecessary * Avoid reloading client state on shared task accept This was unnecessarily reloading client task state when added to a shared task. This also resulted in all active tasks being resent to shared task members on creation. The shared task itself is the only task that needs to be sent which is handled by AcceptNewTask. * Remove active shared task invite on zone Live doesn't re-send shared task invites after zoning like it does for expeditions so there's no need to keep these around. This fixes active invitations never getting reset on characters that zone or go offline. * Choose new shared task leader if leader removed * Add separate shared task kickplayers method * Enable EVENT_CAST_ON for clients This will be required for a shared task objective (The Creator) in DoN * Revert "Avoid reloading client state on shared task accept" This reverts commit 3af14fee2de8b109ffb6c2b2fc67731e1531a665. Without this clients added to a task after some objectives have been completed don't get updated state. Will need to investigate this later * Disallow looting inside a dz by non-members Non-members of a dynamic zone should not be allowed to loot npcs inside it. This should have been disabled for expeditions already but was still allowed due to an oversight (or live behavior changed). This is less critical for shared tasks since members can be added and removed at will without leaving a dz but still an important feature. * Change load where criteria * Increase task completion emote column size * Use eqstr for task item reward message * Implement radiant and ebon crystal rewards This adds reward columns for radiant and ebon crystals to the tasks table and updates task description serialization * Send task completion emote before rewards This matches live and makes it a little easier to see item rewards when tasks have a long completion emote. This also changes it to send via the same normal message opcode that live uses. * Do not send a shared task in completed task history * Allow EVENT_TASK_STAGE_COMPLETE for quest goals This invokes event_task_stage_complete for task elements flagged with a quest controlled goal method. It should be expected behavior that a completed task stage always fires this event even if a quest controls it * Add SyncSharedTaskZoneClientDoneCountState * Swap return for continue in this case * Formatting * Simplify * Formatting * Formatting * Formatting * Remove errant check * Formatting, add setter for shared tasks * Remove debugging * Comments in PR * More PR follow up * Formatting * Cleanup * Update packet comments * Comments * More cleanup * Send command error message if not in shared task /taskadd is the only command with this feedback on live. Newer live clients also generate this instead of the server sending the message * Implement expire_time on SharedTask object and add a purge on world bootup * Comment * Add SyncClientSharedTaskStateToLocal where clients fall out of sync and no longer have a task locally * Clamp shared task activity updates to max done count and discard updates out of bounds * Fix packet send * Revert packet send * Adjust clamping OOO for completed time check. Add completed tables to purge truncation * Refactor kill update logic so that shared task kill updates only update one client instead of all clients * Cleanup how we're checking for active tasks * Forward task sets that contain shared tasks This forwards task sets that contain a shared task to shared task selector validation like normal task selectors * Change eqstr for empty solo task offers This is the message live appears to use if all task offers are filtered out by solo task validation * Fix max active tasks client message This message starts at the third argument. It was maybe intended to be an npc say message but live just sends it as a normal eqstr with the first two arguments nulled. * Load client task state after zoning complete This fixes a possible race where a character removed from a shared task while zoning would be stuck with an incorrect character activities state after zoning was completed. This was caused by the character loading task state to early on zone entry but never receiving the remove player message from world since they are missing from the world cle until zoning is completed. Loading client state after zone connection is completed makes sure the client has the latest state and available to the world cle * Send message to clients removed while zoning This message should usually only be sent to characters that were removed from a shared task while zoning but will occur for any sync state removals where a message wouldn't have already occured. * Post rebase fix * HG comment for checking active task * Addressing HG comments around zeroing out a shared task id * Remove errant comment * Post rebase database manifest updates * Update eqemu_logsys_log_aliases.h * More rebase catches * Bump database version for last commit Co-authored-by: hg <4683435+hgtw@users.noreply.github.com>
2604 lines
85 KiB
C++
2604 lines
85 KiB
C++
#ifdef LUA_EQEMU
|
|
|
|
#include "lua.hpp"
|
|
#include <luabind/luabind.hpp>
|
|
|
|
#include "client.h"
|
|
#include "dynamic_zone.h"
|
|
#include "expedition_request.h"
|
|
#include "lua_client.h"
|
|
#include "lua_expedition.h"
|
|
#include "lua_npc.h"
|
|
#include "lua_item.h"
|
|
#include "lua_iteminst.h"
|
|
#include "lua_inventory.h"
|
|
#include "lua_group.h"
|
|
#include "lua_raid.h"
|
|
#include "lua_packet.h"
|
|
#include "../common/expedition_lockout_timer.h"
|
|
|
|
struct InventoryWhere { };
|
|
|
|
void Lua_Client::SendSound() {
|
|
Lua_Safe_Call_Void();
|
|
self->SendSound();
|
|
}
|
|
|
|
void Lua_Client::Save() {
|
|
Lua_Safe_Call_Void();
|
|
self->Save();
|
|
}
|
|
|
|
void Lua_Client::Save(int commit_now) {
|
|
Lua_Safe_Call_Void();
|
|
self->Save(commit_now);
|
|
}
|
|
|
|
void Lua_Client::SaveBackup() {
|
|
Lua_Safe_Call_Void();
|
|
self->SaveBackup();
|
|
}
|
|
|
|
bool Lua_Client::Connected() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->Connected();
|
|
}
|
|
|
|
bool Lua_Client::InZone() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->InZone();
|
|
}
|
|
|
|
void Lua_Client::Kick() {
|
|
Lua_Safe_Call_Void();
|
|
self->Kick("Lua Quest");
|
|
}
|
|
|
|
void Lua_Client::Disconnect() {
|
|
Lua_Safe_Call_Void();
|
|
self->Disconnect();
|
|
}
|
|
|
|
bool Lua_Client::IsLD() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsLD();
|
|
}
|
|
|
|
void Lua_Client::WorldKick() {
|
|
Lua_Safe_Call_Void();
|
|
self->WorldKick();
|
|
}
|
|
|
|
int Lua_Client::GetAFK() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAFK();
|
|
}
|
|
|
|
void Lua_Client::SetAFK(uint8 afk_flag) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAFK(afk_flag);
|
|
}
|
|
|
|
int Lua_Client::GetAnon() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAnon();
|
|
}
|
|
|
|
void Lua_Client::SetAnon(uint8 anon_flag) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAnon(anon_flag);
|
|
}
|
|
|
|
void Lua_Client::Duck() {
|
|
Lua_Safe_Call_Void();
|
|
self->Duck();
|
|
}
|
|
|
|
void Lua_Client::Sit() {
|
|
Lua_Safe_Call_Void();
|
|
self->Sit();
|
|
}
|
|
|
|
void Lua_Client::DyeArmorBySlot(uint8 slot, uint8 red, uint8 green, uint8 blue) {
|
|
Lua_Safe_Call_Void();
|
|
self->DyeArmorBySlot(slot, red, green, blue);
|
|
}
|
|
|
|
void Lua_Client::DyeArmorBySlot(uint8 slot, uint8 red, uint8 green, uint8 blue, uint8 use_tint) {
|
|
Lua_Safe_Call_Void();
|
|
self->DyeArmorBySlot(slot, red, green, blue, use_tint);
|
|
}
|
|
|
|
void Lua_Client::Stand() {
|
|
Lua_Safe_Call_Void();
|
|
self->Stand();
|
|
}
|
|
|
|
void Lua_Client::SetGM(bool v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetGM(v);
|
|
}
|
|
|
|
void Lua_Client::SetPVP(bool v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetPVP(v);
|
|
}
|
|
|
|
void Lua_Client::SendToGuildHall() {
|
|
Lua_Safe_Call_Void();
|
|
self->SendToGuildHall();
|
|
}
|
|
|
|
bool Lua_Client::GetPVP() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->GetPVP();
|
|
}
|
|
|
|
bool Lua_Client::GetGM() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->GetGM();
|
|
}
|
|
|
|
void Lua_Client::SetBaseClass(int v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBaseClass(v);
|
|
}
|
|
|
|
void Lua_Client::SetBaseRace(int v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBaseRace(v);
|
|
}
|
|
|
|
void Lua_Client::SetBaseGender(int v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBaseGender(v);
|
|
}
|
|
|
|
int Lua_Client::GetClassBitmask() {
|
|
Lua_Safe_Call_Int();
|
|
return GetPlayerClassBit(self->GetClass());
|
|
}
|
|
|
|
int Lua_Client::GetRaceBitmask() {
|
|
Lua_Safe_Call_Int();
|
|
return GetPlayerRaceBit(self->GetBaseRace());
|
|
}
|
|
|
|
int Lua_Client::GetBaseFace() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseFace();
|
|
}
|
|
|
|
int Lua_Client::GetLanguageSkill(int skill_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetLanguageSkill(skill_id);
|
|
}
|
|
|
|
int Lua_Client::GetLDoNPointsTheme(int theme) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetLDoNPointsTheme(theme);
|
|
}
|
|
|
|
int Lua_Client::GetBaseSTR() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseSTR();
|
|
}
|
|
|
|
int Lua_Client::GetBaseSTA() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseSTA();
|
|
}
|
|
|
|
int Lua_Client::GetBaseCHA() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseCHA();
|
|
}
|
|
|
|
int Lua_Client::GetBaseDEX() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseDEX();
|
|
}
|
|
|
|
int Lua_Client::GetBaseINT() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseINT();
|
|
}
|
|
|
|
int Lua_Client::GetBaseAGI() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseAGI();
|
|
}
|
|
|
|
int Lua_Client::GetBaseWIS() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBaseWIS();
|
|
}
|
|
|
|
int Lua_Client::GetWeight() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetWeight();
|
|
}
|
|
|
|
uint32 Lua_Client::GetEXP() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetEXP();
|
|
}
|
|
|
|
uint32 Lua_Client::GetAAExp() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAAXP();
|
|
}
|
|
|
|
uint32 Lua_Client::GetAAPercent() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAAPercent();
|
|
}
|
|
|
|
uint32 Lua_Client::GetTotalSecondsPlayed() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetTotalSecondsPlayed();
|
|
}
|
|
|
|
void Lua_Client::UpdateLDoNPoints(uint32 theme_id, int points) {
|
|
Lua_Safe_Call_Void();
|
|
self->UpdateLDoNPoints(theme_id, points);
|
|
}
|
|
|
|
void Lua_Client::SetDeity(int v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetDeity(v);
|
|
}
|
|
|
|
void Lua_Client::AddEXP(uint32 add_exp) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddEXP(add_exp);
|
|
}
|
|
|
|
void Lua_Client::AddEXP(uint32 add_exp, int conlevel) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddEXP(add_exp, conlevel);
|
|
}
|
|
|
|
void Lua_Client::AddEXP(uint32 add_exp, int conlevel, bool resexp) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddEXP(add_exp, conlevel, resexp);
|
|
}
|
|
|
|
void Lua_Client::SetEXP(uint32 set_exp, uint32 set_aaxp) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetEXP(set_exp, set_aaxp);
|
|
}
|
|
|
|
void Lua_Client::SetEXP(uint32 set_exp, uint32 set_aaxp, bool resexp) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetEXP(set_exp, set_aaxp, resexp);
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint() {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint();
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint(int to_zone) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint(0, to_zone);
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint(int to_zone, int to_instance) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint(0, to_zone, to_instance);
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint(int to_zone, int to_instance, float new_x) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint(0, to_zone, to_instance, glm::vec3(new_x,0.0f,0.0f));
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint(int to_zone, int to_instance, float new_x, float new_y) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint(0, to_zone, to_instance, glm::vec3(new_x, new_y, 0.0f));
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint(int to_zone, int to_instance, float new_x, float new_y, float new_z) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint(0, to_zone, to_instance, glm::vec3(new_x, new_y, new_z));
|
|
}
|
|
|
|
void Lua_Client::SetBindPoint(int to_zone, int to_instance, float new_x, float new_y, float new_z, float new_heading) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetBindPoint2(0, to_zone, to_instance, glm::vec4(new_x, new_y, new_z, new_heading));
|
|
}
|
|
|
|
float Lua_Client::GetBindX() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindX();
|
|
}
|
|
|
|
float Lua_Client::GetBindX(int index) {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindX(index);
|
|
}
|
|
|
|
float Lua_Client::GetBindY() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindY();
|
|
}
|
|
|
|
float Lua_Client::GetBindY(int index) {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindY(index);
|
|
}
|
|
|
|
float Lua_Client::GetBindZ() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindZ();
|
|
}
|
|
|
|
float Lua_Client::GetBindZ(int index) {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindZ(index);
|
|
}
|
|
|
|
float Lua_Client::GetBindHeading() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindHeading();
|
|
}
|
|
|
|
float Lua_Client::GetBindHeading(int index) {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetBindHeading(index);
|
|
}
|
|
|
|
uint32 Lua_Client::GetBindZoneID() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBindZoneID();
|
|
}
|
|
|
|
uint32 Lua_Client::GetBindZoneID(int index) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetBindZoneID(index);
|
|
}
|
|
|
|
float Lua_Client::GetTargetRingX() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetTargetRingX();
|
|
}
|
|
|
|
float Lua_Client::GetTargetRingY() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetTargetRingY();
|
|
}
|
|
|
|
float Lua_Client::GetTargetRingZ() {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetTargetRingZ();
|
|
}
|
|
|
|
void Lua_Client::MovePC(int zone, float x, float y, float z, float heading) {
|
|
Lua_Safe_Call_Void();
|
|
self->MovePC(zone, x, y, z, heading);
|
|
}
|
|
|
|
void Lua_Client::MovePCInstance(int zone, int instance, float x, float y, float z, float heading) {
|
|
Lua_Safe_Call_Void();
|
|
self->MovePC(zone, instance, x, y, z, heading);
|
|
}
|
|
|
|
void Lua_Client::MoveZone(const char *zone_short_name) {
|
|
Lua_Safe_Call_Void();
|
|
self->MoveZone(zone_short_name);
|
|
}
|
|
|
|
void Lua_Client::MoveZoneGroup(const char *zone_short_name) {
|
|
Lua_Safe_Call_Void();
|
|
self->MoveZoneGroup(zone_short_name);
|
|
}
|
|
|
|
void Lua_Client::MoveZoneRaid(const char *zone_short_name) {
|
|
Lua_Safe_Call_Void();
|
|
self->MoveZoneRaid(zone_short_name);
|
|
}
|
|
|
|
void Lua_Client::MoveZoneInstance(uint16 instance_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->MoveZoneInstance(instance_id);
|
|
}
|
|
|
|
void Lua_Client::MoveZoneInstanceGroup(uint16 instance_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->MoveZoneInstanceGroup(instance_id);
|
|
}
|
|
|
|
void Lua_Client::MoveZoneInstanceRaid(uint16 instance_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->MoveZoneInstanceRaid(instance_id);
|
|
}
|
|
|
|
void Lua_Client::ChangeLastName(const char *in) {
|
|
Lua_Safe_Call_Void();
|
|
self->ChangeLastName(in);
|
|
}
|
|
|
|
int Lua_Client::GetFactionLevel(uint32 char_id, uint32 npc_id, uint32 race, uint32 class_, uint32 deity, uint32 faction, Lua_NPC npc) {
|
|
Lua_Safe_Call_Int();
|
|
return static_cast<int>(self->GetFactionLevel(char_id, npc_id, race, class_, deity, faction, npc));
|
|
}
|
|
|
|
void Lua_Client::SetFactionLevel(uint32 char_id, uint32 npc_id, int char_class, int char_race, int char_deity) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetFactionLevel(char_id, npc_id, char_class, char_race, char_deity);
|
|
}
|
|
|
|
void Lua_Client::SetFactionLevel2(uint32 char_id, int faction_id, int char_class, int char_race, int char_deity, int value, int temp) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetFactionLevel2(char_id, faction_id, char_class, char_race, char_deity, value, temp);
|
|
}
|
|
|
|
int Lua_Client::GetRawItemAC() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetRawItemAC();
|
|
}
|
|
|
|
uint32 Lua_Client::AccountID() {
|
|
Lua_Safe_Call_Int();
|
|
return self->AccountID();
|
|
}
|
|
|
|
const char *Lua_Client::AccountName() {
|
|
Lua_Safe_Call_String();
|
|
return self->AccountName();
|
|
}
|
|
|
|
int Lua_Client::GetAccountAge() {
|
|
Lua_Safe_Call_Int();
|
|
return time(nullptr) - self->GetAccountCreation();
|
|
}
|
|
|
|
int Lua_Client::Admin() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->Admin();
|
|
}
|
|
|
|
uint32 Lua_Client::CharacterID() {
|
|
Lua_Safe_Call_Int();
|
|
return self->CharacterID();
|
|
}
|
|
|
|
int Lua_Client::GuildRank() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GuildRank();
|
|
}
|
|
|
|
uint32 Lua_Client::GuildID() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GuildID();
|
|
}
|
|
|
|
int Lua_Client::GetFace() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetFace();
|
|
}
|
|
|
|
bool Lua_Client::TakeMoneyFromPP(uint64 copper) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->TakeMoneyFromPP(copper);
|
|
}
|
|
|
|
bool Lua_Client::TakeMoneyFromPP(uint64 copper, bool update_client) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->TakeMoneyFromPP(copper, update_client);
|
|
}
|
|
|
|
void Lua_Client::AddMoneyToPP(uint32 copper, uint32 silver, uint32 gold, uint32 platinum, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddMoneyToPP(copper, silver, gold, platinum, update_client);
|
|
}
|
|
|
|
bool Lua_Client::TGB() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->TGB();
|
|
}
|
|
|
|
int Lua_Client::GetSkillPoints() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetSkillPoints();
|
|
}
|
|
|
|
void Lua_Client::SetSkillPoints(int skill) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetSkillPoints(skill);
|
|
}
|
|
|
|
void Lua_Client::IncreaseSkill(int skill_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->IncreaseSkill(skill_id);
|
|
}
|
|
|
|
void Lua_Client::IncreaseSkill(int skill_id, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->IncreaseSkill(skill_id, value);
|
|
}
|
|
|
|
void Lua_Client::IncreaseLanguageSkill(int skill_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->IncreaseLanguageSkill(skill_id);
|
|
}
|
|
|
|
void Lua_Client::IncreaseLanguageSkill(int skill_id, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->IncreaseLanguageSkill(skill_id, value);
|
|
}
|
|
|
|
int Lua_Client::GetRawSkill(int skill_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetRawSkill(static_cast<EQ::skills::SkillType>(skill_id));
|
|
}
|
|
|
|
bool Lua_Client::HasSkill(int skill_id) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->HasSkill(static_cast<EQ::skills::SkillType>(skill_id));
|
|
}
|
|
|
|
bool Lua_Client::CanHaveSkill(int skill_id) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->CanHaveSkill(static_cast<EQ::skills::SkillType>(skill_id));
|
|
}
|
|
|
|
void Lua_Client::SetSkill(int skill_id, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetSkill(static_cast<EQ::skills::SkillType>(skill_id), value);
|
|
}
|
|
|
|
void Lua_Client::AddSkill(int skill_id, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddSkill(static_cast<EQ::skills::SkillType>(skill_id), value);
|
|
}
|
|
|
|
void Lua_Client::CheckSpecializeIncrease(int spell_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->CheckSpecializeIncrease(spell_id);
|
|
}
|
|
|
|
void Lua_Client::CheckIncreaseSkill(int skill_id, Lua_Mob target) {
|
|
Lua_Safe_Call_Void();
|
|
self->CheckIncreaseSkill(static_cast<EQ::skills::SkillType>(skill_id), target);
|
|
}
|
|
|
|
void Lua_Client::CheckIncreaseSkill(int skill_id, Lua_Mob target, int chance_mod) {
|
|
Lua_Safe_Call_Void();
|
|
self->CheckIncreaseSkill(static_cast<EQ::skills::SkillType>(skill_id), target, chance_mod);
|
|
}
|
|
|
|
void Lua_Client::SetLanguageSkill(int language, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetLanguageSkill(language, value);
|
|
}
|
|
|
|
int Lua_Client::MaxSkill(int skill_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->MaxSkill(static_cast<EQ::skills::SkillType>(skill_id));
|
|
}
|
|
|
|
bool Lua_Client::IsMedding() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsMedding();
|
|
}
|
|
|
|
int Lua_Client::GetDuelTarget() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetDuelTarget();
|
|
}
|
|
|
|
bool Lua_Client::IsDueling() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsDueling();
|
|
}
|
|
|
|
void Lua_Client::SetDuelTarget(int c) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetDuelTarget(c);
|
|
}
|
|
|
|
void Lua_Client::SetDueling(bool v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetDueling(v);
|
|
}
|
|
|
|
void Lua_Client::ResetAA() {
|
|
Lua_Safe_Call_Void();
|
|
self->ResetAA();
|
|
}
|
|
|
|
void Lua_Client::MemSpell(int spell_id, int slot) {
|
|
Lua_Safe_Call_Void();
|
|
self->MemSpell(spell_id, slot);
|
|
}
|
|
|
|
void Lua_Client::MemSpell(int spell_id, int slot, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->MemSpell(spell_id, slot, update_client);
|
|
}
|
|
|
|
void Lua_Client::UnmemSpell(int slot) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnmemSpell(slot);
|
|
}
|
|
|
|
void Lua_Client::UnmemSpell(int slot, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnmemSpell(slot, update_client);
|
|
}
|
|
|
|
void Lua_Client::UnmemSpellBySpellID(int32 spell_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnmemSpellBySpellID(spell_id);
|
|
}
|
|
|
|
void Lua_Client::UnmemSpellAll() {
|
|
Lua_Safe_Call_Void();
|
|
self->UnmemSpellAll();
|
|
}
|
|
|
|
void Lua_Client::UnmemSpellAll(bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnmemSpellAll(update_client);
|
|
}
|
|
|
|
uint16 Lua_Client::FindMemmedSpellBySlot(int slot) {
|
|
Lua_Safe_Call_Int();
|
|
return self->FindMemmedSpellBySlot(slot);
|
|
}
|
|
|
|
int Lua_Client::MemmedCount() {
|
|
Lua_Safe_Call_Int();
|
|
return self->MemmedCount();
|
|
}
|
|
|
|
luabind::object Lua_Client::GetLearnableDisciplines(lua_State* L) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto learnable_disciplines = self->GetLearnableDisciplines();
|
|
int index = 0;
|
|
for (auto spell_id : learnable_disciplines) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetLearnableDisciplines(lua_State* L, uint8 min_level) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto learnable_disciplines = self->GetLearnableDisciplines(min_level);
|
|
int index = 0;
|
|
for (auto spell_id : learnable_disciplines) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetLearnableDisciplines(lua_State* L, uint8 min_level, uint8 max_level) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto learnable_disciplines = self->GetLearnableDisciplines(min_level, max_level);
|
|
int index = 0;
|
|
for (auto spell_id : learnable_disciplines) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetLearnedDisciplines(lua_State* L) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto learned_disciplines = self->GetLearnedDisciplines();
|
|
int index = 0;
|
|
for (auto spell_id : learned_disciplines) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetMemmedSpells(lua_State* L) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto memmed_spells = self->GetMemmedSpells();
|
|
int index = 0;
|
|
for (auto spell_id : memmed_spells) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetScribeableSpells(lua_State* L) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto scribeable_spells = self->GetScribeableSpells();
|
|
int index = 0;
|
|
for (auto spell_id : scribeable_spells) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetScribeableSpells(lua_State* L, uint8 min_level) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto scribeable_spells = self->GetScribeableSpells(min_level);
|
|
int index = 0;
|
|
for (auto spell_id : scribeable_spells) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetScribeableSpells(lua_State* L, uint8 min_level, uint8 max_level) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto scribeable_spells = self->GetScribeableSpells(min_level, max_level);
|
|
int index = 0;
|
|
for (auto spell_id : scribeable_spells) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetScribedSpells(lua_State* L) {
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_) {
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto scribed_spells = self->GetScribedSpells();
|
|
int index = 0;
|
|
for (auto spell_id : scribed_spells) {
|
|
lua_table[index] = spell_id;
|
|
index++;
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
void Lua_Client::ScribeSpell(int spell_id, int slot) {
|
|
Lua_Safe_Call_Void();
|
|
self->ScribeSpell(spell_id, slot);
|
|
}
|
|
|
|
void Lua_Client::ScribeSpell(int spell_id, int slot, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->ScribeSpell(spell_id, slot, update_client);
|
|
}
|
|
|
|
void Lua_Client::UnscribeSpell(int slot) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnscribeSpell(slot);
|
|
}
|
|
|
|
void Lua_Client::UnscribeSpell(int slot, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnscribeSpell(slot, update_client);
|
|
}
|
|
|
|
void Lua_Client::UnscribeSpellAll() {
|
|
Lua_Safe_Call_Void();
|
|
self->UnscribeSpellAll();
|
|
}
|
|
|
|
void Lua_Client::UnscribeSpellAll(bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->UnscribeSpellAll(update_client);
|
|
}
|
|
|
|
void Lua_Client::TrainDisc(int itemid) {
|
|
Lua_Safe_Call_Void();
|
|
self->TrainDiscipline(itemid);
|
|
}
|
|
|
|
void Lua_Client::TrainDiscBySpellID(int32 spell_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->TrainDiscBySpellID(spell_id);
|
|
}
|
|
|
|
int Lua_Client::GetDiscSlotBySpellID(int32 spell_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetDiscSlotBySpellID(spell_id);
|
|
}
|
|
|
|
void Lua_Client::UntrainDisc(int slot) {
|
|
Lua_Safe_Call_Void();
|
|
self->UntrainDisc(slot);
|
|
}
|
|
|
|
void Lua_Client::UntrainDisc(int slot, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->UntrainDisc(slot, update_client);
|
|
}
|
|
|
|
void Lua_Client::UntrainDiscAll() {
|
|
Lua_Safe_Call_Void();
|
|
self->UntrainDiscAll();
|
|
}
|
|
|
|
void Lua_Client::UntrainDiscAll(bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->UntrainDiscAll(update_client);
|
|
}
|
|
|
|
bool Lua_Client::IsStanding() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsStanding();
|
|
}
|
|
|
|
bool Lua_Client::IsSitting() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsSitting();
|
|
}
|
|
|
|
bool Lua_Client::IsCrouching() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsCrouching();
|
|
}
|
|
|
|
void Lua_Client::SetFeigned(bool v) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetFeigned(v);
|
|
}
|
|
|
|
bool Lua_Client::GetFeigned() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->GetFeigned();
|
|
}
|
|
|
|
bool Lua_Client::AutoSplitEnabled() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->AutoSplitEnabled();
|
|
}
|
|
|
|
void Lua_Client::SetHorseId(int id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetHorseId(id);
|
|
}
|
|
|
|
int Lua_Client::GetHorseId() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetHorseId();
|
|
}
|
|
|
|
void Lua_Client::NukeItem(uint32 item_num) {
|
|
Lua_Safe_Call_Void();
|
|
self->NukeItem(item_num, 0xFF);
|
|
}
|
|
|
|
void Lua_Client::NukeItem(uint32 item_num, int where_to_check) {
|
|
Lua_Safe_Call_Void();
|
|
self->NukeItem(item_num, where_to_check);
|
|
}
|
|
|
|
void Lua_Client::SetTint(int slot_id, uint32 color) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetTint(slot_id, color);
|
|
}
|
|
|
|
void Lua_Client::SetMaterial(int slot_id, uint32 item_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetMaterial(slot_id, item_id);
|
|
}
|
|
|
|
void Lua_Client::Undye() {
|
|
Lua_Safe_Call_Void();
|
|
self->Undye();
|
|
}
|
|
|
|
int Lua_Client::GetItemIDAt(int slot_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetItemIDAt(slot_id);
|
|
}
|
|
|
|
int Lua_Client::GetAugmentIDAt(int slot_id, int aug_slot) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAugmentIDAt(slot_id, aug_slot);
|
|
}
|
|
|
|
void Lua_Client::DeleteItemInInventory(int slot_id, int quantity) {
|
|
Lua_Safe_Call_Void();
|
|
self->DeleteItemInInventory(slot_id, quantity);
|
|
}
|
|
|
|
void Lua_Client::DeleteItemInInventory(int slot_id, int quantity, bool update_client) {
|
|
Lua_Safe_Call_Void();
|
|
self->DeleteItemInInventory(slot_id, quantity, update_client);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1, uint32 aug2) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1, aug2);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1, uint32 aug2, uint32 aug3) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1, aug2, aug3);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1, aug2, aug3, aug4);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4, uint32 aug5) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1, aug2, aug3, aug4, aug5);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4, uint32 aug5, bool attuned) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1, aug2, aug3, aug4, aug5, 0, attuned);
|
|
}
|
|
|
|
void Lua_Client::SummonItem(uint32 item_id, int charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4, uint32 aug5, bool attuned, int to_slot) {
|
|
Lua_Safe_Call_Void();
|
|
self->SummonItem(item_id, charges, aug1, aug2, aug3, aug4, aug5, 0, attuned, to_slot);
|
|
}
|
|
|
|
void Lua_Client::SetStats(int type, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetStats(type, value);
|
|
}
|
|
|
|
void Lua_Client::IncStats(int type, int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->IncStats(type, value);
|
|
}
|
|
|
|
void Lua_Client::DropItem(int slot_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->DropItem(slot_id);
|
|
}
|
|
|
|
void Lua_Client::BreakInvis() {
|
|
Lua_Safe_Call_Void();
|
|
self->BreakInvis();
|
|
}
|
|
|
|
void Lua_Client::LeaveGroup() {
|
|
Lua_Safe_Call_Void();
|
|
self->LeaveGroup();
|
|
}
|
|
|
|
bool Lua_Client::IsGrouped() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsGrouped();
|
|
}
|
|
|
|
bool Lua_Client::IsRaidGrouped() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsRaidGrouped();
|
|
}
|
|
|
|
bool Lua_Client::Hungry() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->Hungry();
|
|
}
|
|
|
|
bool Lua_Client::Thirsty() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->Thirsty();
|
|
}
|
|
|
|
int Lua_Client::GetInstrumentMod(int spell_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetInstrumentMod(spell_id);
|
|
}
|
|
|
|
bool Lua_Client::DecreaseByID(uint32 type, int amt) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->DecreaseByID(type, amt);
|
|
}
|
|
|
|
void Lua_Client::Escape() {
|
|
Lua_Safe_Call_Void();
|
|
self->Escape();
|
|
}
|
|
|
|
void Lua_Client::GoFish() {
|
|
Lua_Safe_Call_Void();
|
|
self->GoFish();
|
|
}
|
|
|
|
void Lua_Client::ForageItem() {
|
|
Lua_Safe_Call_Void();
|
|
self->ForageItem();
|
|
}
|
|
|
|
void Lua_Client::ForageItem(bool guarantee) {
|
|
Lua_Safe_Call_Void();
|
|
self->ForageItem(guarantee);
|
|
}
|
|
|
|
float Lua_Client::CalcPriceMod(Lua_Mob other, bool reverse) {
|
|
Lua_Safe_Call_Real();
|
|
return self->CalcPriceMod(other, reverse);
|
|
}
|
|
|
|
void Lua_Client::ResetTrade() {
|
|
Lua_Safe_Call_Void();
|
|
self->ResetTrade();
|
|
}
|
|
|
|
uint32 Lua_Client::GetDisciplineTimer(uint32 timer_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetDisciplineTimer(timer_id);
|
|
}
|
|
|
|
void Lua_Client::ResetDisciplineTimer(uint32 timer_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->ResetDisciplineTimer(timer_id);
|
|
}
|
|
|
|
bool Lua_Client::UseDiscipline(int spell_id, int target_id) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->UseDiscipline(spell_id, target_id);
|
|
}
|
|
|
|
bool Lua_Client::HasDisciplineLearned(uint16 spell_id) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->HasDisciplineLearned(spell_id);
|
|
}
|
|
|
|
int Lua_Client::GetCharacterFactionLevel(int faction_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetCharacterFactionLevel(faction_id);
|
|
}
|
|
|
|
void Lua_Client::SetZoneFlag(int zone_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetZoneFlag(zone_id);
|
|
}
|
|
|
|
void Lua_Client::ClearZoneFlag(int zone_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->ClearZoneFlag(zone_id);
|
|
}
|
|
|
|
bool Lua_Client::HasZoneFlag(int zone_id) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->HasZoneFlag(zone_id);
|
|
}
|
|
|
|
void Lua_Client::SendZoneFlagInfo(Lua_Client to) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendZoneFlagInfo(to);
|
|
}
|
|
|
|
void Lua_Client::SetAATitle(const char *title) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAATitle(title);
|
|
}
|
|
|
|
int Lua_Client::GetClientVersion() {
|
|
Lua_Safe_Call_Int();
|
|
return static_cast<unsigned int>(self->ClientVersion());
|
|
}
|
|
|
|
uint32 Lua_Client::GetClientVersionBit() {
|
|
Lua_Safe_Call_Int();
|
|
return self->ClientVersionBit();
|
|
}
|
|
|
|
void Lua_Client::SetTitleSuffix(const char *text) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetTitleSuffix(text);
|
|
}
|
|
|
|
void Lua_Client::SetAAPoints(int points) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAAPoints(points);
|
|
}
|
|
|
|
int Lua_Client::GetAAPoints() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAAPoints();
|
|
}
|
|
|
|
int Lua_Client::GetSpentAA() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetSpentAA();
|
|
}
|
|
|
|
void Lua_Client::AddAAPoints(int points) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddAAPoints(points);
|
|
}
|
|
|
|
void Lua_Client::RefundAA() {
|
|
Lua_Safe_Call_Void();
|
|
self->RefundAA();
|
|
}
|
|
|
|
int Lua_Client::GetModCharacterFactionLevel(int faction) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetModCharacterFactionLevel(faction);
|
|
}
|
|
|
|
int Lua_Client::GetLDoNWins() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetLDoNWins();
|
|
}
|
|
|
|
int Lua_Client::GetLDoNLosses() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetLDoNLosses();
|
|
}
|
|
|
|
int Lua_Client::GetLDoNWinsTheme(int theme) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetLDoNWinsTheme(theme);
|
|
}
|
|
|
|
int Lua_Client::GetLDoNLossesTheme(int theme) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetLDoNLossesTheme(theme);
|
|
}
|
|
|
|
int Lua_Client::GetStartZone() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetStartZone();
|
|
}
|
|
|
|
void Lua_Client::SetStartZone(int zone_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetStartZone(zone_id);
|
|
}
|
|
|
|
void Lua_Client::SetStartZone(int zone_id, float x) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetStartZone(zone_id, x);
|
|
}
|
|
|
|
void Lua_Client::SetStartZone(int zone_id, float x, float y) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetStartZone(zone_id, x, y);
|
|
}
|
|
|
|
void Lua_Client::SetStartZone(int zone_id, float x, float y, float z) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetStartZone(zone_id, x, y, z);
|
|
}
|
|
|
|
void Lua_Client::KeyRingAdd(uint32 item) {
|
|
Lua_Safe_Call_Void();
|
|
self->KeyRingAdd(item);
|
|
}
|
|
|
|
bool Lua_Client::KeyRingCheck(uint32 item) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->KeyRingCheck(item);
|
|
}
|
|
|
|
void Lua_Client::AddPVPPoints(uint32 points) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddPVPPoints(points);
|
|
}
|
|
|
|
void Lua_Client::AddCrystals(uint32 radiant, uint32 ebon) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddCrystals(radiant, ebon);
|
|
}
|
|
|
|
void Lua_Client::SetEbonCrystals(uint32 value) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetEbonCrystals(value);
|
|
}
|
|
|
|
void Lua_Client::SetRadiantCrystals(uint32 value) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetRadiantCrystals(value);
|
|
}
|
|
|
|
uint32 Lua_Client::GetPVPPoints() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetPVPPoints();
|
|
}
|
|
|
|
uint32 Lua_Client::GetRadiantCrystals() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetRadiantCrystals();
|
|
}
|
|
|
|
uint32 Lua_Client::GetEbonCrystals() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetEbonCrystals();
|
|
}
|
|
|
|
void Lua_Client::QuestReadBook(const char *text, int type) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReadBook(text, type);
|
|
}
|
|
|
|
void Lua_Client::UpdateGroupAAs(int points, uint32 type) {
|
|
Lua_Safe_Call_Void();
|
|
self->UpdateGroupAAs(points, type);
|
|
}
|
|
|
|
uint32 Lua_Client::GetGroupPoints() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetGroupPoints();
|
|
}
|
|
|
|
uint32 Lua_Client::GetRaidPoints() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetRaidPoints();
|
|
}
|
|
|
|
void Lua_Client::LearnRecipe(uint32 recipe) {
|
|
Lua_Safe_Call_Void();
|
|
self->LearnRecipe(recipe);
|
|
}
|
|
|
|
int Lua_Client::GetEndurance() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetEndurance();
|
|
}
|
|
|
|
int Lua_Client::GetMaxEndurance() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetMaxEndurance();
|
|
}
|
|
|
|
int Lua_Client::GetEndurancePercent() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetEndurancePercent();
|
|
}
|
|
|
|
void Lua_Client::SetEndurance(int endur) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetEndurance(endur);
|
|
}
|
|
|
|
void Lua_Client::SendOPTranslocateConfirm(Lua_Mob caster, int spell_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendOPTranslocateConfirm(caster, spell_id);
|
|
}
|
|
|
|
uint32 Lua_Client::GetIP() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetIP();
|
|
}
|
|
|
|
void Lua_Client::AddLevelBasedExp(int exp_pct) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddLevelBasedExp(exp_pct);
|
|
}
|
|
|
|
void Lua_Client::AddLevelBasedExp(int exp_pct, int max_level) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddLevelBasedExp(exp_pct, max_level);
|
|
}
|
|
|
|
void Lua_Client::AddLevelBasedExp(int exp_pct, int max_level, bool ignore_mods) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddLevelBasedExp(exp_pct, max_level, ignore_mods);
|
|
}
|
|
|
|
void Lua_Client::IncrementAA(int aa) {
|
|
Lua_Safe_Call_Void();
|
|
self->IncrementAlternateAdvancementRank(aa);
|
|
}
|
|
|
|
bool Lua_Client::GrantAlternateAdvancementAbility(int aa_id, int points) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->GrantAlternateAdvancementAbility(aa_id, points);
|
|
}
|
|
|
|
bool Lua_Client::GrantAlternateAdvancementAbility(int aa_id, int points, bool ignore_cost) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->GrantAlternateAdvancementAbility(aa_id, points, ignore_cost);
|
|
}
|
|
|
|
void Lua_Client::MarkSingleCompassLoc(float in_x, float in_y, float in_z) {
|
|
Lua_Safe_Call_Void();
|
|
self->MarkSingleCompassLoc(in_x, in_y, in_z);
|
|
}
|
|
|
|
void Lua_Client::MarkSingleCompassLoc(float in_x, float in_y, float in_z, int count) {
|
|
Lua_Safe_Call_Void();
|
|
self->MarkSingleCompassLoc(in_x, in_y, in_z, count);
|
|
}
|
|
|
|
void Lua_Client::ClearCompassMark() {
|
|
Lua_Safe_Call_Void();
|
|
self->MarkSingleCompassLoc(0,0,0,0);
|
|
}
|
|
|
|
int Lua_Client::GetNextAvailableSpellBookSlot() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetNextAvailableSpellBookSlot();
|
|
}
|
|
|
|
uint32 Lua_Client::GetSpellIDByBookSlot(int slot_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetSpellIDByBookSlot(slot_id);
|
|
}
|
|
|
|
int Lua_Client::GetNextAvailableSpellBookSlot(int start) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetNextAvailableSpellBookSlot(start);
|
|
}
|
|
|
|
int Lua_Client::FindSpellBookSlotBySpellID(int spell_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->FindSpellBookSlotBySpellID(spell_id);
|
|
}
|
|
|
|
void Lua_Client::UpdateTaskActivity(int task, int activity, int count) {
|
|
Lua_Safe_Call_Void();
|
|
self->UpdateTaskActivity(task, activity, count);
|
|
}
|
|
|
|
void Lua_Client::AssignTask(int task, int npc_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->AssignTask(task, npc_id);
|
|
}
|
|
|
|
void Lua_Client::AssignTask(int task, int npc_id, bool enforce_level_requirement) {
|
|
Lua_Safe_Call_Void();
|
|
self->AssignTask(task, npc_id, enforce_level_requirement);
|
|
}
|
|
|
|
void Lua_Client::FailTask(int task) {
|
|
Lua_Safe_Call_Void();
|
|
self->FailTask(task);
|
|
}
|
|
|
|
bool Lua_Client::IsTaskCompleted(int task) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsTaskCompleted(task) != 0;
|
|
}
|
|
|
|
bool Lua_Client::IsTaskActive(int task) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsTaskActive(task);
|
|
}
|
|
|
|
bool Lua_Client::IsTaskActivityActive(int task, int activity) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsTaskActivityActive(task, activity);
|
|
}
|
|
|
|
int Lua_Client::GetCorpseCount() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetCorpseCount();
|
|
}
|
|
|
|
int Lua_Client::GetCorpseID(int corpse) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetCorpseID(corpse);
|
|
}
|
|
|
|
int Lua_Client::GetCorpseItemAt(int corpse, int slot) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetCorpseItemAt(corpse, slot);
|
|
}
|
|
|
|
void Lua_Client::AssignToInstance(int instance_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->AssignToInstance(instance_id);
|
|
}
|
|
|
|
void Lua_Client::Freeze() {
|
|
Lua_Safe_Call_Void();
|
|
self->SendAppearancePacket(AT_Anim, ANIM_FREEZE);
|
|
}
|
|
|
|
void Lua_Client::UnFreeze() {
|
|
Lua_Safe_Call_Void();
|
|
self->SendAppearancePacket(AT_Anim, ANIM_STAND);
|
|
}
|
|
|
|
int Lua_Client::GetAggroCount() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAggroCount();
|
|
}
|
|
|
|
uint64 Lua_Client::GetCarriedMoney() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetCarriedMoney();
|
|
}
|
|
|
|
uint64 Lua_Client::GetAllMoney() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAllMoney();
|
|
}
|
|
|
|
uint32 Lua_Client::GetMoney(uint8 type, uint8 subtype) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetMoney(type, subtype);
|
|
}
|
|
|
|
void Lua_Client::OpenLFGuildWindow() {
|
|
Lua_Safe_Call_Void();
|
|
self->OpenLFGuildWindow();
|
|
}
|
|
|
|
void Lua_Client::NotifyNewTitlesAvailable() {
|
|
Lua_Safe_Call_Void();
|
|
self->NotifyNewTitlesAvailable();
|
|
}
|
|
|
|
void Lua_Client::Signal(uint32 id) {
|
|
Lua_Safe_Call_Void();
|
|
self->Signal(id);
|
|
}
|
|
|
|
void Lua_Client::AddAlternateCurrencyValue(uint32 currency, int amount) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddAlternateCurrencyValue(currency, amount, 1);
|
|
}
|
|
|
|
void Lua_Client::SetAlternateCurrencyValue(uint32 currency, int amount) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAlternateCurrencyValue(currency, amount);
|
|
}
|
|
|
|
int Lua_Client::GetAlternateCurrencyValue(uint32 currency) {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetAlternateCurrencyValue(currency);
|
|
}
|
|
|
|
void Lua_Client::SendWebLink(const char *site) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendWebLink(site);
|
|
}
|
|
|
|
bool Lua_Client::HasSpellScribed(int spell_id) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->HasSpellScribed(spell_id);
|
|
}
|
|
|
|
void Lua_Client::SetAccountFlag(std::string flag, std::string val) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAccountFlag(flag, val);
|
|
}
|
|
|
|
std::string Lua_Client::GetAccountFlag(std::string flag) {
|
|
Lua_Safe_Call_String();
|
|
return self->GetAccountFlag(flag);
|
|
}
|
|
|
|
Lua_Group Lua_Client::GetGroup() {
|
|
Lua_Safe_Call_Class(Lua_Group);
|
|
return self->GetGroup();
|
|
}
|
|
|
|
Lua_Raid Lua_Client::GetRaid() {
|
|
Lua_Safe_Call_Class(Lua_Raid);
|
|
return self->GetRaid();
|
|
}
|
|
|
|
bool Lua_Client::PutItemInInventory(int slot_id, Lua_ItemInst inst) {
|
|
Lua_Safe_Call_Bool();
|
|
EQ::ItemInstance *rinst = inst;
|
|
return self->PutItemInInventory(slot_id, *rinst, true);
|
|
}
|
|
|
|
bool Lua_Client::PushItemOnCursor(Lua_ItemInst inst) {
|
|
Lua_Safe_Call_Bool();
|
|
EQ::ItemInstance *rinst = inst;
|
|
return self->PushItemOnCursor(*rinst, true);
|
|
}
|
|
|
|
Lua_Inventory Lua_Client::GetInventory() {
|
|
Lua_Safe_Call_Class(Lua_Inventory);
|
|
return &self->GetInv();
|
|
}
|
|
|
|
void Lua_Client::SendItemScale(Lua_ItemInst inst) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendItemScale(inst);
|
|
}
|
|
|
|
void Lua_Client::QueuePacket(Lua_Packet app) {
|
|
Lua_Safe_Call_Void();
|
|
self->QueuePacket(app);
|
|
}
|
|
|
|
void Lua_Client::QueuePacket(Lua_Packet app, bool ack_req) {
|
|
Lua_Safe_Call_Void();
|
|
self->QueuePacket(app, ack_req);
|
|
}
|
|
|
|
void Lua_Client::QueuePacket(Lua_Packet app, bool ack_req, int client_connection_status) {
|
|
Lua_Safe_Call_Void();
|
|
self->QueuePacket(app, ack_req, static_cast<Mob::CLIENT_CONN_STATUS>(client_connection_status));
|
|
}
|
|
|
|
void Lua_Client::QueuePacket(Lua_Packet app, bool ack_req, int client_connection_status, int filter) {
|
|
Lua_Safe_Call_Void();
|
|
self->QueuePacket(app, ack_req, static_cast<Mob::CLIENT_CONN_STATUS>(client_connection_status), static_cast<eqFilterType>(filter));
|
|
}
|
|
|
|
int Lua_Client::GetHunger() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetHunger();
|
|
}
|
|
|
|
int Lua_Client::GetThirst() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetThirst();
|
|
}
|
|
|
|
void Lua_Client::SetHunger(int in_hunger) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetHunger(in_hunger);
|
|
}
|
|
|
|
void Lua_Client::SetThirst(int in_thirst) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetThirst(in_thirst);
|
|
}
|
|
|
|
void Lua_Client::SetConsumption(int in_hunger, int in_thirst) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetConsumption(in_hunger, in_thirst);
|
|
}
|
|
|
|
void Lua_Client::SendMarqueeMessage(uint32 type, uint32 priority, uint32 fade_in, uint32 fade_out, uint32 duration, std::string msg) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendMarqueeMessage(type, priority, fade_in, fade_out, duration, msg);
|
|
}
|
|
|
|
void Lua_Client::SendColoredText(uint32 type, std::string msg) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendColoredText(type, msg);
|
|
}
|
|
|
|
void Lua_Client::PlayMP3(std::string file)
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->PlayMP3(file.c_str());
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper, uint32 silver) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper, silver);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper, uint32 silver, uint32 gold) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper, silver, gold);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper, uint32 silver, uint32 gold, uint32 platinum) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper, silver, gold, platinum);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper, uint32 silver, uint32 gold, uint32 platinum, uint32 itemid) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper, silver, gold, platinum, itemid);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper, uint32 silver, uint32 gold, uint32 platinum, uint32 itemid, uint32 exp) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper, silver, gold, platinum, itemid, exp);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, uint32 copper, uint32 silver, uint32 gold, uint32 platinum, uint32 itemid, uint32 exp, bool faction) {
|
|
Lua_Safe_Call_Void();
|
|
self->QuestReward(target, copper, silver, gold, platinum, itemid, exp, faction);
|
|
}
|
|
|
|
void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|
Lua_Safe_Call_Void();
|
|
|
|
if (luabind::type(reward) != LUA_TTABLE) {
|
|
return;
|
|
}
|
|
|
|
QuestReward_Struct quest_reward;
|
|
quest_reward.mob_id = 0;
|
|
quest_reward.target_id = self->GetID();
|
|
quest_reward.copper = 0;
|
|
quest_reward.silver = 0;
|
|
quest_reward.gold = 0;
|
|
quest_reward.platinum = 0;
|
|
quest_reward.exp_reward = 0;
|
|
quest_reward.faction = 0;
|
|
quest_reward.faction_mod = 0;
|
|
bool faction = false;
|
|
std::fill(std::begin(quest_reward.item_id), std::end(quest_reward.item_id), -1);
|
|
|
|
auto cur = reward["copper"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
quest_reward.copper = luabind::object_cast<uint32>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
cur = reward["silver"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
quest_reward.silver = luabind::object_cast<uint32>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
cur = reward["gold"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
quest_reward.gold = luabind::object_cast<uint32>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
cur = reward["platinum"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
quest_reward.platinum = luabind::object_cast<uint32>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
cur = reward["itemid"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
quest_reward.item_id[0] = luabind::object_cast<uint32>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
// if you define both an itemid and items table, the itemid is thrown away
|
|
// should we error?
|
|
cur = reward["items"];
|
|
if (luabind::type(cur) == LUA_TTABLE) {
|
|
try {
|
|
// assume they defined a compatible table
|
|
for (int i = 1; i <= QUESTREWARD_COUNT; ++i) {
|
|
auto item = cur[i];
|
|
int cur_value = -1;
|
|
if (luabind::type(item) != LUA_TNIL) {
|
|
try {
|
|
cur_value = luabind::object_cast<uint32>(item);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
} else {
|
|
break;
|
|
}
|
|
quest_reward.item_id[i - 1] = cur_value;
|
|
}
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
cur = reward["exp"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
quest_reward.exp_reward = luabind::object_cast<uint32>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
cur = reward["faction"];
|
|
if (luabind::type(cur) != LUA_TNIL) {
|
|
try {
|
|
faction = luabind::object_cast<bool>(cur);
|
|
} catch (luabind::cast_failed &) {
|
|
}
|
|
}
|
|
|
|
self->QuestReward(target, quest_reward, faction);
|
|
}
|
|
|
|
bool Lua_Client::IsDead() {
|
|
Lua_Safe_Call_Bool();
|
|
return self->IsDead();
|
|
}
|
|
|
|
int Lua_Client::CalcCurrentWeight() {
|
|
Lua_Safe_Call_Int();
|
|
return self->CalcCurrentWeight();
|
|
}
|
|
|
|
int Lua_Client::CalcATK() {
|
|
Lua_Safe_Call_Int();
|
|
return self->CalcATK();
|
|
}
|
|
|
|
void Lua_Client::FilteredMessage(Mob *sender, uint32 type, int filter, const char *message)
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->FilteredMessage(sender, type, (eqFilterType)filter, message);
|
|
}
|
|
|
|
void Lua_Client::EnableAreaHPRegen(int value)
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->EnableAreaHPRegen(value);
|
|
}
|
|
|
|
void Lua_Client::DisableAreaHPRegen()
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->DisableAreaHPRegen();
|
|
}
|
|
|
|
void Lua_Client::EnableAreaManaRegen(int value)
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->EnableAreaManaRegen(value);
|
|
}
|
|
|
|
void Lua_Client::DisableAreaManaRegen()
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->DisableAreaManaRegen();
|
|
}
|
|
|
|
void Lua_Client::EnableAreaEndRegen(int value)
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->EnableAreaEndRegen(value);
|
|
}
|
|
|
|
void Lua_Client::DisableAreaEndRegen()
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->DisableAreaEndRegen();
|
|
}
|
|
|
|
void Lua_Client::EnableAreaRegens(int value)
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->EnableAreaRegens(value);
|
|
}
|
|
|
|
void Lua_Client::DisableAreaRegens()
|
|
{
|
|
Lua_Safe_Call_Void();
|
|
self->DisableAreaRegens();
|
|
}
|
|
|
|
void Lua_Client::SetPrimaryWeaponOrnamentation(uint32 model_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetPrimaryWeaponOrnamentation(model_id);
|
|
}
|
|
|
|
void Lua_Client::SetSecondaryWeaponOrnamentation(uint32 model_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetSecondaryWeaponOrnamentation(model_id);
|
|
}
|
|
|
|
void Lua_Client::SetClientMaxLevel(int value) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetClientMaxLevel(value);
|
|
}
|
|
|
|
int Lua_Client::GetClientMaxLevel() {
|
|
Lua_Safe_Call_Int();
|
|
return self->GetClientMaxLevel();
|
|
}
|
|
|
|
DynamicZoneLocation GetDynamicZoneLocationFromTable(const luabind::object& lua_table)
|
|
{
|
|
DynamicZoneLocation zone_location;
|
|
|
|
if (luabind::type(lua_table) == LUA_TTABLE)
|
|
{
|
|
luabind::object lua_zone = lua_table["zone"];
|
|
|
|
// default invalid/missing args to 0
|
|
uint32_t zone_id = 0;
|
|
if (luabind::type(lua_zone) == LUA_TSTRING)
|
|
{
|
|
zone_id = ZoneID(luabind::object_cast<std::string>(lua_zone));
|
|
}
|
|
else if (luabind::type(lua_zone) == LUA_TNUMBER)
|
|
{
|
|
zone_id = luabind::object_cast<uint32_t>(lua_zone);
|
|
}
|
|
|
|
float x = (luabind::type(lua_table["x"]) != LUA_TNIL) ? luabind::object_cast<float>(lua_table["x"]) : 0.0f;
|
|
float y = (luabind::type(lua_table["y"]) != LUA_TNIL) ? luabind::object_cast<float>(lua_table["y"]) : 0.0f;
|
|
float z = (luabind::type(lua_table["z"]) != LUA_TNIL) ? luabind::object_cast<float>(lua_table["z"]) : 0.0f;
|
|
float h = (luabind::type(lua_table["h"]) != LUA_TNIL) ? luabind::object_cast<float>(lua_table["h"]) : 0.0f;
|
|
|
|
zone_location = { zone_id, x, y, z, h };
|
|
}
|
|
|
|
return zone_location;
|
|
}
|
|
|
|
Lua_Expedition Lua_Client::CreateExpedition(luabind::object expedition_table) {
|
|
Lua_Safe_Call_Class(Lua_Expedition);
|
|
|
|
if (luabind::type(expedition_table) != LUA_TTABLE)
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
// luabind will catch thrown cast_failed exceptions for invalid/missing args
|
|
luabind::object instance_info = expedition_table["instance"];
|
|
luabind::object expedition_info = expedition_table["expedition"];
|
|
luabind::object zone = instance_info["zone"];
|
|
|
|
uint32_t zone_id = 0;
|
|
if (luabind::type(zone) == LUA_TSTRING)
|
|
{
|
|
zone_id = ZoneID(luabind::object_cast<std::string>(zone));
|
|
}
|
|
else if (luabind::type(zone) == LUA_TNUMBER)
|
|
{
|
|
zone_id = luabind::object_cast<uint32_t>(zone);
|
|
}
|
|
|
|
uint32_t zone_version = luabind::object_cast<uint32_t>(instance_info["version"]);
|
|
uint32_t zone_duration = luabind::object_cast<uint32_t>(instance_info["duration"]);
|
|
|
|
DynamicZone dz{ zone_id, zone_version, zone_duration, DynamicZoneType::Expedition };
|
|
dz.SetName(luabind::object_cast<std::string>(expedition_info["name"]));
|
|
dz.SetMinPlayers(luabind::object_cast<uint32_t>(expedition_info["min_players"]));
|
|
dz.SetMaxPlayers(luabind::object_cast<uint32_t>(expedition_info["max_players"]));
|
|
|
|
// the dz_info table supports optional hash entries for 'compass', 'safereturn', and 'zonein' data
|
|
if (luabind::type(expedition_table["compass"]) == LUA_TTABLE)
|
|
{
|
|
auto compass_loc = GetDynamicZoneLocationFromTable(expedition_table["compass"]);
|
|
dz.SetCompass(compass_loc);
|
|
}
|
|
|
|
if (luabind::type(expedition_table["safereturn"]) == LUA_TTABLE)
|
|
{
|
|
auto safereturn_loc = GetDynamicZoneLocationFromTable(expedition_table["safereturn"]);
|
|
dz.SetSafeReturn(safereturn_loc);
|
|
}
|
|
|
|
if (luabind::type(expedition_table["zonein"]) == LUA_TTABLE)
|
|
{
|
|
auto zonein_loc = GetDynamicZoneLocationFromTable(expedition_table["zonein"]);
|
|
dz.SetZoneInLocation(zonein_loc);
|
|
}
|
|
|
|
bool disable_messages = false;
|
|
if (luabind::type(expedition_info["disable_messages"]) == LUA_TBOOLEAN)
|
|
{
|
|
disable_messages = luabind::object_cast<bool>(expedition_info["disable_messages"]);
|
|
}
|
|
|
|
return self->CreateExpedition(dz, disable_messages);
|
|
}
|
|
|
|
Lua_Expedition Lua_Client::CreateExpedition(std::string zone_name, uint32 version, uint32 duration, std::string expedition_name, uint32 min_players, uint32 max_players) {
|
|
Lua_Safe_Call_Class(Lua_Expedition);
|
|
return self->CreateExpedition(zone_name, version, duration, expedition_name, min_players, max_players);
|
|
}
|
|
|
|
Lua_Expedition Lua_Client::CreateExpedition(std::string zone_name, uint32 version, uint32 duration, std::string expedition_name, uint32 min_players, uint32 max_players, bool disable_messages) {
|
|
Lua_Safe_Call_Class(Lua_Expedition);
|
|
return self->CreateExpedition(zone_name, version, duration, expedition_name, min_players, max_players, disable_messages);
|
|
}
|
|
|
|
Lua_Expedition Lua_Client::GetExpedition() {
|
|
Lua_Safe_Call_Class(Lua_Expedition);
|
|
return self->GetExpedition();
|
|
}
|
|
|
|
luabind::object Lua_Client::GetExpeditionLockouts(lua_State* L)
|
|
{
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_)
|
|
{
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto lockouts = self->GetExpeditionLockouts();
|
|
|
|
for (const auto& lockout : lockouts)
|
|
{
|
|
auto lockout_table = lua_table[lockout.GetExpeditionName()];
|
|
if (luabind::type(lockout_table) != LUA_TTABLE)
|
|
{
|
|
lockout_table = luabind::newtable(L);
|
|
}
|
|
lockout_table[lockout.GetEventName()] = lockout.GetSecondsRemaining();
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
luabind::object Lua_Client::GetExpeditionLockouts(lua_State* L, std::string expedition_name)
|
|
{
|
|
auto lua_table = luabind::newtable(L);
|
|
if (d_)
|
|
{
|
|
auto self = reinterpret_cast<NativeType*>(d_);
|
|
auto lockouts = self->GetExpeditionLockouts();
|
|
|
|
for (const auto& lockout : lockouts)
|
|
{
|
|
if (lockout.GetExpeditionName() == expedition_name)
|
|
{
|
|
lua_table[lockout.GetEventName()] = lockout.GetSecondsRemaining();
|
|
}
|
|
}
|
|
}
|
|
return lua_table;
|
|
}
|
|
|
|
std::string Lua_Client::GetLockoutExpeditionUUID(std::string expedition_name, std::string event_name) {
|
|
Lua_Safe_Call_String();
|
|
std::string uuid;
|
|
auto lockout = self->GetExpeditionLockout(expedition_name, event_name);
|
|
if (lockout)
|
|
{
|
|
uuid = lockout->GetExpeditionUUID();
|
|
}
|
|
return uuid;
|
|
}
|
|
|
|
void Lua_Client::AddExpeditionLockout(std::string expedition_name, std::string event_name, uint32 seconds) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddNewExpeditionLockout(expedition_name, event_name, seconds);
|
|
}
|
|
|
|
void Lua_Client::AddExpeditionLockout(std::string expedition_name, std::string event_name, uint32 seconds, std::string uuid) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddNewExpeditionLockout(expedition_name, event_name, seconds, uuid);
|
|
}
|
|
|
|
void Lua_Client::AddExpeditionLockoutDuration(std::string expedition_name, std::string event_name, int seconds) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddExpeditionLockoutDuration(expedition_name, event_name, seconds, {}, true);
|
|
}
|
|
|
|
void Lua_Client::AddExpeditionLockoutDuration(std::string expedition_name, std::string event_name, int seconds, std::string uuid) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddExpeditionLockoutDuration(expedition_name, event_name, seconds, uuid, true);
|
|
}
|
|
|
|
void Lua_Client::RemoveAllExpeditionLockouts() {
|
|
Lua_Safe_Call_Void();
|
|
self->RemoveAllExpeditionLockouts({}, true);
|
|
}
|
|
|
|
void Lua_Client::RemoveAllExpeditionLockouts(std::string expedition_name) {
|
|
Lua_Safe_Call_Void();
|
|
self->RemoveAllExpeditionLockouts(expedition_name, true);
|
|
}
|
|
|
|
void Lua_Client::RemoveExpeditionLockout(std::string expedition_name, std::string event_name) {
|
|
Lua_Safe_Call_Void();
|
|
self->RemoveExpeditionLockout(expedition_name, event_name, true);
|
|
}
|
|
|
|
bool Lua_Client::HasExpeditionLockout(std::string expedition_name, std::string event_name) {
|
|
Lua_Safe_Call_Bool();
|
|
return self->HasExpeditionLockout(expedition_name, event_name);
|
|
}
|
|
|
|
void Lua_Client::MovePCDynamicZone(uint32 zone_id) {
|
|
Lua_Safe_Call_Void();
|
|
return self->MovePCDynamicZone(zone_id);
|
|
}
|
|
|
|
void Lua_Client::MovePCDynamicZone(uint32 zone_id, int zone_version) {
|
|
Lua_Safe_Call_Void();
|
|
return self->MovePCDynamicZone(zone_id, zone_version);
|
|
}
|
|
|
|
void Lua_Client::MovePCDynamicZone(uint32 zone_id, int zone_version, bool msg_if_invalid) {
|
|
Lua_Safe_Call_Void();
|
|
return self->MovePCDynamicZone(zone_id, zone_version, msg_if_invalid);
|
|
}
|
|
|
|
void Lua_Client::MovePCDynamicZone(std::string zone_name) {
|
|
Lua_Safe_Call_Void();
|
|
return self->MovePCDynamicZone(zone_name);
|
|
}
|
|
|
|
void Lua_Client::MovePCDynamicZone(std::string zone_name, int zone_version) {
|
|
Lua_Safe_Call_Void();
|
|
return self->MovePCDynamicZone(zone_name, zone_version);
|
|
}
|
|
|
|
void Lua_Client::MovePCDynamicZone(std::string zone_name, int zone_version, bool msg_if_invalid) {
|
|
Lua_Safe_Call_Void();
|
|
return self->MovePCDynamicZone(zone_name, zone_version, msg_if_invalid);
|
|
}
|
|
|
|
void Lua_Client::CreateTaskDynamicZone(int task_id, luabind::object dz_table) {
|
|
Lua_Safe_Call_Void();
|
|
|
|
if (luabind::type(dz_table) != LUA_TTABLE)
|
|
{
|
|
return;
|
|
}
|
|
|
|
// luabind will catch thrown cast_failed exceptions for invalid/missing args
|
|
luabind::object instance_info = dz_table["instance"];
|
|
luabind::object zone = instance_info["zone"];
|
|
|
|
uint32_t zone_id = 0;
|
|
if (luabind::type(zone) == LUA_TSTRING)
|
|
{
|
|
zone_id = ZoneID(luabind::object_cast<std::string>(zone));
|
|
}
|
|
else if (luabind::type(zone) == LUA_TNUMBER)
|
|
{
|
|
zone_id = luabind::object_cast<uint32_t>(zone);
|
|
}
|
|
|
|
uint32_t zone_version = luabind::object_cast<uint32_t>(instance_info["version"]);
|
|
|
|
// tasks override dz duration so duration is ignored here
|
|
DynamicZone dz{ zone_id, zone_version, 0, DynamicZoneType::None };
|
|
|
|
// the dz_info table supports optional hash entries for 'compass', 'safereturn', and 'zonein' data
|
|
if (luabind::type(dz_table["compass"]) == LUA_TTABLE)
|
|
{
|
|
auto compass_loc = GetDynamicZoneLocationFromTable(dz_table["compass"]);
|
|
dz.SetCompass(compass_loc);
|
|
}
|
|
|
|
if (luabind::type(dz_table["safereturn"]) == LUA_TTABLE)
|
|
{
|
|
auto safereturn_loc = GetDynamicZoneLocationFromTable(dz_table["safereturn"]);
|
|
dz.SetSafeReturn(safereturn_loc);
|
|
}
|
|
|
|
if (luabind::type(dz_table["zonein"]) == LUA_TTABLE)
|
|
{
|
|
auto zonein_loc = GetDynamicZoneLocationFromTable(dz_table["zonein"]);
|
|
dz.SetZoneInLocation(zonein_loc);
|
|
}
|
|
|
|
self->CreateTaskDynamicZone(task_id, dz);
|
|
}
|
|
|
|
void Lua_Client::Fling(float value, float target_x, float target_y, float target_z) {
|
|
Lua_Safe_Call_Void();
|
|
self->Fling(value, target_x, target_y, target_z);
|
|
}
|
|
|
|
void Lua_Client::Fling(float value, float target_x, float target_y, float target_z, bool ignore_los) {
|
|
Lua_Safe_Call_Void();
|
|
self->Fling(value, target_x, target_y, target_z, ignore_los);
|
|
}
|
|
|
|
void Lua_Client::Fling(float value, float target_x, float target_y, float target_z, bool ignore_los, bool clipping) {
|
|
Lua_Safe_Call_Void();
|
|
self->Fling(value, target_x, target_y, target_z, ignore_los, clipping);
|
|
}
|
|
|
|
double Lua_Client::GetAAEXPModifier(uint32 zone_id) {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetAAEXPModifier(zone_id);
|
|
}
|
|
|
|
double Lua_Client::GetEXPModifier(uint32 zone_id) {
|
|
Lua_Safe_Call_Real();
|
|
return self->GetEXPModifier(zone_id);
|
|
}
|
|
|
|
void Lua_Client::SetAAEXPModifier(uint32 zone_id, double aa_modifier) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetAAEXPModifier(zone_id, aa_modifier);
|
|
}
|
|
|
|
void Lua_Client::SetEXPModifier(uint32 zone_id, double exp_modifier) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetEXPModifier(zone_id, exp_modifier);
|
|
}
|
|
|
|
void Lua_Client::AddLDoNLoss(uint32 theme_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddLDoNLoss(theme_id);
|
|
}
|
|
|
|
void Lua_Client::AddLDoNWin(uint32 theme_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->AddLDoNWin(theme_id);
|
|
}
|
|
|
|
void Lua_Client::SetHideMe(bool hide_me_state) {
|
|
Lua_Safe_Call_Void();
|
|
self->SetHideMe(hide_me_state);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text, uint32 popup_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text, popup_id);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text, uint32 popup_id, uint32 negative_id) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text, popup_id, negative_id);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text, uint32 popup_id, uint32 negative_id, uint32 button_type) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text, popup_id, negative_id, button_type);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text, uint32 popup_id, uint32 negative_id, uint32 button_type, uint32 duration) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text, popup_id, negative_id, button_type, duration);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text, uint32 popup_id, uint32 negative_id, uint32 button_type, uint32 duration, const char* button_name_one, const char* button_name_two) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text, popup_id, negative_id, button_type, duration, button_name_one, button_name_two);
|
|
}
|
|
|
|
void Lua_Client::Popup(const char* title, const char* text, uint32 popup_id, uint32 negative_id, uint32 button_type, uint32 duration, const char* button_name_one, const char* button_name_two, uint32 sound_controls) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendFullPopup(title, text, popup_id, negative_id, button_type, duration, button_name_one, button_name_two, sound_controls);
|
|
}
|
|
|
|
void Lua_Client::ResetAllDisciplineTimers() {
|
|
Lua_Safe_Call_Void();
|
|
self->ResetAllDisciplineTimers();
|
|
}
|
|
|
|
void Lua_Client::SendToInstance(std::string instance_type, std::string zone_short_name, uint32 instance_version, float x, float y, float z, float heading, std::string instance_identifier, uint32 duration) {
|
|
Lua_Safe_Call_Void();
|
|
self->SendToInstance(instance_type, zone_short_name, instance_version, x, y, z, heading, instance_identifier, duration);
|
|
}
|
|
|
|
int Lua_Client::CountItem(uint32 item_id) {
|
|
Lua_Safe_Call_Int();
|
|
return self->CountItem(item_id);
|
|
}
|
|
|
|
void Lua_Client::RemoveItem(uint32 item_id) {
|
|
Lua_Safe_Call_Void();
|
|
return self->RemoveItem(item_id);
|
|
}
|
|
|
|
void Lua_Client::RemoveItem(uint32 item_id, uint32 quantity) {
|
|
Lua_Safe_Call_Void();
|
|
return self->RemoveItem(item_id, quantity);
|
|
}
|
|
|
|
void Lua_Client::SetGMStatus(uint32 newStatus) {
|
|
Lua_Safe_Call_Void();
|
|
return self->SetGMStatus(newStatus);
|
|
}
|
|
|
|
luabind::scope lua_register_client() {
|
|
return luabind::class_<Lua_Client, Lua_Mob>("Client")
|
|
.def(luabind::constructor<>())
|
|
.def("SendSound", (void(Lua_Client::*)(void))&Lua_Client::SendSound)
|
|
.def("Save", (void(Lua_Client::*)(void))&Lua_Client::Save)
|
|
.def("Save", (void(Lua_Client::*)(int))&Lua_Client::Save)
|
|
.def("SaveBackup", (void(Lua_Client::*)(void))&Lua_Client::SaveBackup)
|
|
.def("Connected", (bool(Lua_Client::*)(void))&Lua_Client::Connected)
|
|
.def("InZone", (bool(Lua_Client::*)(void))&Lua_Client::InZone)
|
|
.def("Kick", (void(Lua_Client::*)(void))&Lua_Client::Kick)
|
|
.def("Disconnect", (void(Lua_Client::*)(void))&Lua_Client::Disconnect)
|
|
.def("IsLD", (bool(Lua_Client::*)(void))&Lua_Client::IsLD)
|
|
.def("WorldKick", (void(Lua_Client::*)(void))&Lua_Client::WorldKick)
|
|
.def("SendToGuildHall", (void(Lua_Client::*)(void))&Lua_Client::SendToGuildHall)
|
|
.def("GetAFK", (int(Lua_Client::*)(void))&Lua_Client::GetAFK)
|
|
.def("SetAFK", (void(Lua_Client::*)(uint8))&Lua_Client::SetAFK)
|
|
.def("GetAnon", (int(Lua_Client::*)(void))&Lua_Client::GetAnon)
|
|
.def("SetAnon", (void(Lua_Client::*)(uint8))&Lua_Client::SetAnon)
|
|
.def("Sit", (void(Lua_Client::*)(void))&Lua_Client::Sit)
|
|
.def("Duck", (void(Lua_Client::*)(void))&Lua_Client::Duck)
|
|
.def("DyeArmorBySlot", (void(Lua_Client::*)(uint8,uint8,uint8,uint8))&Lua_Client::DyeArmorBySlot)
|
|
.def("DyeArmorBySlot", (void(Lua_Client::*)(uint8,uint8,uint8,uint8,uint8))&Lua_Client::DyeArmorBySlot)
|
|
.def("Stand", (void(Lua_Client::*)(void))&Lua_Client::Stand)
|
|
.def("SetGM", (void(Lua_Client::*)(bool))&Lua_Client::SetGM)
|
|
.def("SetPVP", (void(Lua_Client::*)(bool))&Lua_Client::SetPVP)
|
|
.def("GetPVP", (bool(Lua_Client::*)(void))&Lua_Client::GetPVP)
|
|
.def("GetGM", (bool(Lua_Client::*)(void))&Lua_Client::GetGM)
|
|
.def("SetBaseClass", (void(Lua_Client::*)(int))&Lua_Client::SetBaseClass)
|
|
.def("SetBaseRace", (void(Lua_Client::*)(int))&Lua_Client::SetBaseRace)
|
|
.def("SetBaseGender", (void(Lua_Client::*)(int))&Lua_Client::SetBaseGender)
|
|
.def("GetClassBitmask", (int(Lua_Client::*)(void))&Lua_Client::GetClassBitmask)
|
|
.def("GetRaceBitmask", (int(Lua_Client::*)(void))&Lua_Client::GetRaceBitmask)
|
|
.def("GetBaseFace", (int(Lua_Client::*)(void))&Lua_Client::GetBaseFace)
|
|
.def("GetLanguageSkill", (int(Lua_Client::*)(int))&Lua_Client::GetLanguageSkill)
|
|
.def("GetLDoNPointsTheme", (int(Lua_Client::*)(int))&Lua_Client::GetLDoNPointsTheme)
|
|
.def("GetBaseSTR", (int(Lua_Client::*)(void))&Lua_Client::GetBaseSTR)
|
|
.def("GetBaseSTA", (int(Lua_Client::*)(void))&Lua_Client::GetBaseSTA)
|
|
.def("GetBaseCHA", (int(Lua_Client::*)(void))&Lua_Client::GetBaseCHA)
|
|
.def("GetBaseDEX", (int(Lua_Client::*)(void))&Lua_Client::GetBaseDEX)
|
|
.def("GetBaseINT", (int(Lua_Client::*)(void))&Lua_Client::GetBaseINT)
|
|
.def("GetBaseAGI", (int(Lua_Client::*)(void))&Lua_Client::GetBaseAGI)
|
|
.def("GetBaseWIS", (int(Lua_Client::*)(void))&Lua_Client::GetBaseWIS)
|
|
.def("GetWeight", (int(Lua_Client::*)(void))&Lua_Client::GetWeight)
|
|
.def("GetEXP", (uint32(Lua_Client::*)(void))&Lua_Client::GetEXP)
|
|
.def("GetAAExp", (uint32(Lua_Client::*)(void))&Lua_Client::GetAAExp)
|
|
.def("GetAAPercent", (uint32(Lua_Client::*)(void))&Lua_Client::GetAAPercent)
|
|
.def("GetTotalSecondsPlayed", (uint32(Lua_Client::*)(void))&Lua_Client::GetTotalSecondsPlayed)
|
|
.def("UpdateLDoNPoints", (void(Lua_Client::*)(uint32,int))&Lua_Client::UpdateLDoNPoints)
|
|
.def("SetDeity", (void(Lua_Client::*)(int))&Lua_Client::SetDeity)
|
|
.def("AddEXP", (void(Lua_Client::*)(uint32))&Lua_Client::AddEXP)
|
|
.def("AddEXP", (void(Lua_Client::*)(uint32,int))&Lua_Client::AddEXP)
|
|
.def("AddEXP", (void(Lua_Client::*)(uint32,int,bool))&Lua_Client::AddEXP)
|
|
.def("SetEXP", (void(Lua_Client::*)(uint32,uint32))&Lua_Client::SetEXP)
|
|
.def("SetEXP", (void(Lua_Client::*)(uint32,uint32,bool))&Lua_Client::SetEXP)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(void))&Lua_Client::SetBindPoint)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(int))&Lua_Client::SetBindPoint)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(int,int))&Lua_Client::SetBindPoint)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(int,int,float))&Lua_Client::SetBindPoint)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(int,int,float,float))&Lua_Client::SetBindPoint)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(int,int,float,float,float))&Lua_Client::SetBindPoint)
|
|
.def("SetBindPoint", (void(Lua_Client::*)(int,int,float,float,float,float))&Lua_Client::SetBindPoint)
|
|
.def("GetBindX", (float(Lua_Client::*)(void))&Lua_Client::GetBindX)
|
|
.def("GetBindX", (float(Lua_Client::*)(int))&Lua_Client::GetBindX)
|
|
.def("GetBindY", (float(Lua_Client::*)(void))&Lua_Client::GetBindY)
|
|
.def("GetBindY", (float(Lua_Client::*)(int))&Lua_Client::GetBindY)
|
|
.def("GetBindZ", (float(Lua_Client::*)(void))&Lua_Client::GetBindZ)
|
|
.def("GetBindZ", (float(Lua_Client::*)(int))&Lua_Client::GetBindZ)
|
|
.def("GetBindHeading", (float(Lua_Client::*)(void))&Lua_Client::GetBindHeading)
|
|
.def("GetBindHeading", (float(Lua_Client::*)(int))&Lua_Client::GetBindHeading)
|
|
.def("GetBindZoneID", (uint32(Lua_Client::*)(void))&Lua_Client::GetBindZoneID)
|
|
.def("GetBindZoneID", (uint32(Lua_Client::*)(int))&Lua_Client::GetBindZoneID)
|
|
.def("GetTargetRingX", (float(Lua_Client::*)(void))&Lua_Client::GetTargetRingX)
|
|
.def("GetTargetRingY", (float(Lua_Client::*)(void))&Lua_Client::GetTargetRingY)
|
|
.def("GetTargetRingZ", (float(Lua_Client::*)(void))&Lua_Client::GetTargetRingZ)
|
|
.def("SetPrimaryWeaponOrnamentation", (void(Lua_Client::*)(uint32))&Lua_Client::SetPrimaryWeaponOrnamentation)
|
|
.def("SetSecondaryWeaponOrnamentation", (void(Lua_Client::*)(uint32))&Lua_Client::SetSecondaryWeaponOrnamentation)
|
|
.def("MovePC", (void(Lua_Client::*)(int,float,float,float,float))&Lua_Client::MovePC)
|
|
.def("MovePCInstance", (void(Lua_Client::*)(int,int,float,float,float,float))&Lua_Client::MovePCInstance)
|
|
.def("MoveZone", (void(Lua_Client::*)(const char*))&Lua_Client::MoveZone)
|
|
.def("MoveZoneGroup", (void(Lua_Client::*)(const char*))&Lua_Client::MoveZoneGroup)
|
|
.def("MoveZoneRaid", (void(Lua_Client::*)(const char*))&Lua_Client::MoveZoneRaid)
|
|
.def("MoveZoneInstance", (void(Lua_Client::*)(uint16))&Lua_Client::MoveZoneInstance)
|
|
.def("MoveZoneInstanceGroup", (void(Lua_Client::*)(uint16))&Lua_Client::MoveZoneInstanceGroup)
|
|
.def("MoveZoneInstanceRaid", (void(Lua_Client::*)(uint16))&Lua_Client::MoveZoneInstanceRaid)
|
|
.def("ChangeLastName", (void(Lua_Client::*)(const char *in))&Lua_Client::ChangeLastName)
|
|
.def("GetFactionLevel", (int(Lua_Client::*)(uint32,uint32,uint32,uint32,uint32,uint32,Lua_NPC))&Lua_Client::GetFactionLevel)
|
|
.def("SetFactionLevel", (void(Lua_Client::*)(uint32,uint32,int,int,int))&Lua_Client::SetFactionLevel)
|
|
.def("SetFactionLevel2", (void(Lua_Client::*)(uint32,int,int,int,int,int,int))&Lua_Client::SetFactionLevel2)
|
|
.def("GetRawItemAC", (int(Lua_Client::*)(void))&Lua_Client::GetRawItemAC)
|
|
.def("AccountID", (uint32(Lua_Client::*)(void))&Lua_Client::AccountID)
|
|
.def("AccountName", (const char *(Lua_Client::*)(void))&Lua_Client::AccountName)
|
|
.def("GetAccountAge", (int(Lua_Client::*)(void))&Lua_Client::GetAccountAge)
|
|
.def("Admin", (int(Lua_Client::*)(void))&Lua_Client::Admin)
|
|
.def("CharacterID", (uint32(Lua_Client::*)(void))&Lua_Client::CharacterID)
|
|
.def("GuildRank", (int(Lua_Client::*)(void))&Lua_Client::GuildRank)
|
|
.def("GuildID", (uint32(Lua_Client::*)(void))&Lua_Client::GuildID)
|
|
.def("GetFace", (int(Lua_Client::*)(void))&Lua_Client::GetFace)
|
|
.def("TakeMoneyFromPP", (bool(Lua_Client::*)(uint64))&Lua_Client::TakeMoneyFromPP)
|
|
.def("TakeMoneyFromPP", (bool(Lua_Client::*)(uint64,bool))&Lua_Client::TakeMoneyFromPP)
|
|
.def("AddMoneyToPP", (void(Lua_Client::*)(uint32,uint32,uint32,uint32,bool))&Lua_Client::AddMoneyToPP)
|
|
.def("TGB", (bool(Lua_Client::*)(void))&Lua_Client::TGB)
|
|
.def("GetSkillPoints", (int(Lua_Client::*)(void))&Lua_Client::GetSkillPoints)
|
|
.def("SetSkillPoints", (void(Lua_Client::*)(int))&Lua_Client::SetSkillPoints)
|
|
.def("IncreaseSkill", (void(Lua_Client::*)(int))&Lua_Client::IncreaseSkill)
|
|
.def("IncreaseSkill", (void(Lua_Client::*)(int,int))&Lua_Client::IncreaseSkill)
|
|
.def("IncreaseLanguageSkill", (void(Lua_Client::*)(int))&Lua_Client::IncreaseLanguageSkill)
|
|
.def("IncreaseLanguageSkill", (void(Lua_Client::*)(int,int))&Lua_Client::IncreaseLanguageSkill)
|
|
.def("GetRawSkill", (int(Lua_Client::*)(int))&Lua_Client::GetRawSkill)
|
|
.def("HasSkill", (bool(Lua_Client::*)(int))&Lua_Client::HasSkill)
|
|
.def("CanHaveSkill", (bool(Lua_Client::*)(int))&Lua_Client::CanHaveSkill)
|
|
.def("SetSkill", (void(Lua_Client::*)(int,int))&Lua_Client::SetSkill)
|
|
.def("AddSkill", (void(Lua_Client::*)(int,int))&Lua_Client::AddSkill)
|
|
.def("CheckSpecializeIncrease", (void(Lua_Client::*)(int))&Lua_Client::CheckSpecializeIncrease)
|
|
.def("CheckIncreaseSkill", (void(Lua_Client::*)(int,Lua_Mob))&Lua_Client::CheckIncreaseSkill)
|
|
.def("CheckIncreaseSkill", (void(Lua_Client::*)(int,Lua_Mob,int))&Lua_Client::CheckIncreaseSkill)
|
|
.def("SetLanguageSkill", (void(Lua_Client::*)(int,int))&Lua_Client::SetLanguageSkill)
|
|
.def("MaxSkill", (int(Lua_Client::*)(int))&Lua_Client::MaxSkill)
|
|
.def("IsMedding", (bool(Lua_Client::*)(void))&Lua_Client::IsMedding)
|
|
.def("GetDuelTarget", (int(Lua_Client::*)(void))&Lua_Client::GetDuelTarget)
|
|
.def("IsDueling", (bool(Lua_Client::*)(void))&Lua_Client::IsDueling)
|
|
.def("SetDuelTarget", (void(Lua_Client::*)(int))&Lua_Client::SetDuelTarget)
|
|
.def("SetDueling", (void(Lua_Client::*)(bool))&Lua_Client::SetDueling)
|
|
.def("ResetAA", (void(Lua_Client::*)(void))&Lua_Client::ResetAA)
|
|
.def("MemSpell", (void(Lua_Client::*)(int,int))&Lua_Client::MemSpell)
|
|
.def("MemSpell", (void(Lua_Client::*)(int,int,bool))&Lua_Client::MemSpell)
|
|
.def("UnmemSpell", (void(Lua_Client::*)(int))&Lua_Client::UnmemSpell)
|
|
.def("UnmemSpell", (void(Lua_Client::*)(int,bool))&Lua_Client::UnmemSpell)
|
|
.def("UnmemSpellBySpellID", (void(Lua_Client::*)(int32))&Lua_Client::UnmemSpellBySpellID)
|
|
.def("UnmemSpellAll", (void(Lua_Client::*)(void))&Lua_Client::UnmemSpellAll)
|
|
.def("UnmemSpellAll", (void(Lua_Client::*)(bool))&Lua_Client::UnmemSpellAll)
|
|
.def("FindMemmedSpellBySlot", (uint16(Lua_Client::*)(int))&Lua_Client::FindMemmedSpellBySlot)
|
|
.def("MemmedCount", (int(Lua_Client::*)(void))&Lua_Client::MemmedCount)
|
|
.def("GetLearnableDisciplines", (luabind::object(Lua_Client::*)(lua_State* L))&Lua_Client::GetLearnableDisciplines)
|
|
.def("GetLearnableDisciplines", (luabind::object(Lua_Client::*)(lua_State* L,uint8))&Lua_Client::GetLearnableDisciplines)
|
|
.def("GetLearnableDisciplines", (luabind::object(Lua_Client::*)(lua_State* L,uint8,uint8))&Lua_Client::GetLearnableDisciplines)
|
|
.def("GetLearnedDisciplines", (luabind::object(Lua_Client::*)(lua_State* L))&Lua_Client::GetLearnedDisciplines)
|
|
.def("GetMemmedSpells", (luabind::object(Lua_Client::*)(lua_State* L))&Lua_Client::GetMemmedSpells)
|
|
.def("GetScribedSpells", (luabind::object(Lua_Client::*)(lua_State* L))&Lua_Client::GetScribedSpells)
|
|
.def("GetScribeableSpells", (luabind::object(Lua_Client::*)(lua_State* L))&Lua_Client::GetScribeableSpells)
|
|
.def("GetScribeableSpells", (luabind::object(Lua_Client::*)(lua_State* L,uint8))&Lua_Client::GetScribeableSpells)
|
|
.def("GetScribeableSpells", (luabind::object(Lua_Client::*)(lua_State* L,uint8,uint8))&Lua_Client::GetScribeableSpells)
|
|
.def("ScribeSpell", (void(Lua_Client::*)(int,int))&Lua_Client::ScribeSpell)
|
|
.def("ScribeSpell", (void(Lua_Client::*)(int,int,bool))&Lua_Client::ScribeSpell)
|
|
.def("UnscribeSpell", (void(Lua_Client::*)(int))&Lua_Client::UnscribeSpell)
|
|
.def("UnscribeSpell", (void(Lua_Client::*)(int,bool))&Lua_Client::UnscribeSpell)
|
|
.def("UnscribeSpellAll", (void(Lua_Client::*)(void))&Lua_Client::UnscribeSpellAll)
|
|
.def("UnscribeSpellAll", (void(Lua_Client::*)(bool))&Lua_Client::UnscribeSpellAll)
|
|
.def("TrainDisc", (void(Lua_Client::*)(int))&Lua_Client::TrainDisc)
|
|
.def("TrainDiscBySpellID", (void(Lua_Client::*)(int32))&Lua_Client::TrainDiscBySpellID)
|
|
.def("GetDiscSlotBySpellID", (int(Lua_Client::*)(int32))&Lua_Client::GetDiscSlotBySpellID)
|
|
.def("UntrainDisc", (void(Lua_Client::*)(int))&Lua_Client::UntrainDisc)
|
|
.def("UntrainDisc", (void(Lua_Client::*)(int,bool))&Lua_Client::UntrainDisc)
|
|
.def("UntrainDiscAll", (void(Lua_Client::*)(void))&Lua_Client::UntrainDiscAll)
|
|
.def("UntrainDiscAll", (void(Lua_Client::*)(bool))&Lua_Client::UntrainDiscAll)
|
|
.def("IsStanding", (bool(Lua_Client::*)(void))&Lua_Client::IsStanding)
|
|
.def("IsSitting", (bool(Lua_Client::*)(void))&Lua_Client::IsSitting)
|
|
.def("IsCrouching", (bool(Lua_Client::*)(void))&Lua_Client::IsCrouching)
|
|
.def("SetFeigned", (void(Lua_Client::*)(bool))&Lua_Client::SetFeigned)
|
|
.def("GetFeigned", (bool(Lua_Client::*)(void))&Lua_Client::GetFeigned)
|
|
.def("AutoSplitEnabled", (bool(Lua_Client::*)(void))&Lua_Client::AutoSplitEnabled)
|
|
.def("SetHorseId", (void(Lua_Client::*)(int))&Lua_Client::SetHorseId)
|
|
.def("GetHorseId", (int(Lua_Client::*)(void))&Lua_Client::GetHorseId)
|
|
.def("NukeItem", (void(Lua_Client::*)(uint32))&Lua_Client::NukeItem)
|
|
.def("NukeItem", (void(Lua_Client::*)(uint32,int))&Lua_Client::NukeItem)
|
|
.def("SetTint", (void(Lua_Client::*)(int,uint32))&Lua_Client::SetTint)
|
|
.def("SetMaterial", (void(Lua_Client::*)(int,uint32))&Lua_Client::SetMaterial)
|
|
.def("Undye", (void(Lua_Client::*)(void))&Lua_Client::Undye)
|
|
.def("GetItemIDAt", (int(Lua_Client::*)(int))&Lua_Client::GetItemIDAt)
|
|
.def("GetAugmentIDAt", (int(Lua_Client::*)(int,int))&Lua_Client::GetAugmentIDAt)
|
|
.def("DeleteItemInInventory", (void(Lua_Client::*)(int,int))&Lua_Client::DeleteItemInInventory)
|
|
.def("DeleteItemInInventory", (void(Lua_Client::*)(int,int,bool))&Lua_Client::DeleteItemInInventory)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32,uint32))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32,uint32,uint32))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32,uint32,uint32,uint32))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32,uint32,uint32,uint32,uint32))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32,uint32,uint32,uint32,uint32,bool))&Lua_Client::SummonItem)
|
|
.def("SummonItem", (void(Lua_Client::*)(uint32,int,uint32,uint32,uint32,uint32,uint32,bool,int))&Lua_Client::SummonItem)
|
|
.def("SetStats", (void(Lua_Client::*)(int,int))&Lua_Client::SetStats)
|
|
.def("IncStats", (void(Lua_Client::*)(int,int))&Lua_Client::IncStats)
|
|
.def("DropItem", (void(Lua_Client::*)(int))&Lua_Client::DropItem)
|
|
.def("BreakInvis", (void(Lua_Client::*)(void))&Lua_Client::BreakInvis)
|
|
.def("LeaveGroup", (void(Lua_Client::*)(void))&Lua_Client::LeaveGroup)
|
|
.def("IsGrouped", (bool(Lua_Client::*)(void))&Lua_Client::IsGrouped)
|
|
.def("IsRaidGrouped", (bool(Lua_Client::*)(void))&Lua_Client::IsRaidGrouped)
|
|
.def("Hungry", (bool(Lua_Client::*)(void))&Lua_Client::Hungry)
|
|
.def("Thirsty", (bool(Lua_Client::*)(void))&Lua_Client::Thirsty)
|
|
.def("GetInstrumentMod", (int(Lua_Client::*)(int))&Lua_Client::GetInstrumentMod)
|
|
.def("DecreaseByID", (bool(Lua_Client::*)(uint32,int))&Lua_Client::DecreaseByID)
|
|
.def("Escape", (void(Lua_Client::*)(void))&Lua_Client::Escape)
|
|
.def("GoFish", (void(Lua_Client::*)(void))&Lua_Client::GoFish)
|
|
.def("ForageItem", (void(Lua_Client::*)(void))&Lua_Client::ForageItem)
|
|
.def("ForageItem", (void(Lua_Client::*)(bool))&Lua_Client::ForageItem)
|
|
.def("CalcPriceMod", (float(Lua_Client::*)(Lua_Mob,bool))&Lua_Client::CalcPriceMod)
|
|
.def("ResetTrade", (void(Lua_Client::*)(void))&Lua_Client::ResetTrade)
|
|
.def("GetDisciplineTimer", (uint32(Lua_Client::*)(uint32))&Lua_Client::GetDisciplineTimer)
|
|
.def("ResetDisciplineTimer", (void(Lua_Client::*)(uint32))&Lua_Client::ResetDisciplineTimer)
|
|
.def("UseDiscipline", (bool(Lua_Client::*)(int,int))&Lua_Client::UseDiscipline)
|
|
.def("HasDisciplineLearned", (bool(Lua_Client::*)(uint16))&Lua_Client::HasDisciplineLearned)
|
|
.def("GetCharacterFactionLevel", (int(Lua_Client::*)(int))&Lua_Client::GetCharacterFactionLevel)
|
|
.def("SetZoneFlag", (void(Lua_Client::*)(int))&Lua_Client::SetZoneFlag)
|
|
.def("ClearZoneFlag", (void(Lua_Client::*)(int))&Lua_Client::ClearZoneFlag)
|
|
.def("HasZoneFlag", (bool(Lua_Client::*)(int))&Lua_Client::HasZoneFlag)
|
|
.def("SendZoneFlagInfo", (void(Lua_Client::*)(Lua_Client))&Lua_Client::SendZoneFlagInfo)
|
|
.def("SetAATitle", (void(Lua_Client::*)(const char *))&Lua_Client::SetAATitle)
|
|
.def("GetClientVersion", (int(Lua_Client::*)(void))&Lua_Client::GetClientVersion)
|
|
.def("GetClientVersionBit", (uint32(Lua_Client::*)(void))&Lua_Client::GetClientVersionBit)
|
|
.def("SetTitleSuffix", (void(Lua_Client::*)(const char *))&Lua_Client::SetTitleSuffix)
|
|
.def("SetAAPoints", (void(Lua_Client::*)(int))&Lua_Client::SetAAPoints)
|
|
.def("GetAAPoints", (int(Lua_Client::*)(void))&Lua_Client::GetAAPoints)
|
|
.def("GetSpentAA", (int(Lua_Client::*)(void))&Lua_Client::GetSpentAA)
|
|
.def("AddAAPoints", (void(Lua_Client::*)(int))&Lua_Client::AddAAPoints)
|
|
.def("RefundAA", (void(Lua_Client::*)(void))&Lua_Client::RefundAA)
|
|
.def("GetModCharacterFactionLevel", (int(Lua_Client::*)(int))&Lua_Client::GetModCharacterFactionLevel)
|
|
.def("GetLDoNWins", (int(Lua_Client::*)(void))&Lua_Client::GetLDoNWins)
|
|
.def("GetLDoNLosses", (int(Lua_Client::*)(void))&Lua_Client::GetLDoNLosses)
|
|
.def("GetLDoNWinsTheme", (int(Lua_Client::*)(int))&Lua_Client::GetLDoNWinsTheme)
|
|
.def("GetLDoNLossesTheme", (int(Lua_Client::*)(int))&Lua_Client::GetLDoNLossesTheme)
|
|
.def("GetStartZone", (int(Lua_Client::*)(void))&Lua_Client::GetStartZone)
|
|
.def("SetStartZone", (void(Lua_Client::*)(int))&Lua_Client::SetStartZone)
|
|
.def("SetStartZone", (void(Lua_Client::*)(int,float))&Lua_Client::SetStartZone)
|
|
.def("SetStartZone", (void(Lua_Client::*)(int,float,float))&Lua_Client::SetStartZone)
|
|
.def("SetStartZone", (void(Lua_Client::*)(int,float,float,float))&Lua_Client::SetStartZone)
|
|
.def("KeyRingAdd", (void(Lua_Client::*)(uint32))&Lua_Client::KeyRingAdd)
|
|
.def("KeyRingCheck", (bool(Lua_Client::*)(uint32))&Lua_Client::KeyRingCheck)
|
|
.def("AddPVPPoints", (void(Lua_Client::*)(uint32))&Lua_Client::AddPVPPoints)
|
|
.def("AddCrystals", (void(Lua_Client::*)(uint32,uint32))&Lua_Client::AddCrystals)
|
|
.def("SetEbonCrystals", (void(Lua_Client::*)(uint32))&Lua_Client::SetEbonCrystals)
|
|
.def("SetRadiantCrystals", (void(Lua_Client::*)(uint32))&Lua_Client::SetRadiantCrystals)
|
|
.def("GetPVPPoints", (uint32(Lua_Client::*)(void))&Lua_Client::GetPVPPoints)
|
|
.def("GetRadiantCrystals", (uint32(Lua_Client::*)(void))&Lua_Client::GetRadiantCrystals)
|
|
.def("GetEbonCrystals", (uint32(Lua_Client::*)(void))&Lua_Client::GetEbonCrystals)
|
|
.def("QuestReadBook", (void(Lua_Client::*)(const char *,int))&Lua_Client::QuestReadBook)
|
|
.def("UpdateGroupAAs", (void(Lua_Client::*)(int,uint32))&Lua_Client::UpdateGroupAAs)
|
|
.def("GetGroupPoints", (uint32(Lua_Client::*)(void))&Lua_Client::GetGroupPoints)
|
|
.def("GetRaidPoints", (uint32(Lua_Client::*)(void))&Lua_Client::GetRaidPoints)
|
|
.def("LearnRecipe", (void(Lua_Client::*)(uint32))&Lua_Client::LearnRecipe)
|
|
.def("GetEndurance", (int(Lua_Client::*)(void))&Lua_Client::GetEndurance)
|
|
.def("GetMaxEndurance", (int(Lua_Client::*)(void))&Lua_Client::GetMaxEndurance)
|
|
.def("GetEndurancePercent", (int(Lua_Client::*)(void))&Lua_Client::GetEndurancePercent)
|
|
.def("SetEndurance", (void(Lua_Client::*)(int))&Lua_Client::SetEndurance)
|
|
.def("SendOPTranslocateConfirm", (void(Lua_Client::*)(Lua_Mob,int))&Lua_Client::SendOPTranslocateConfirm)
|
|
.def("GetIP", (uint32(Lua_Client::*)(void))&Lua_Client::GetIP)
|
|
.def("AddLevelBasedExp", (void(Lua_Client::*)(int))&Lua_Client::AddLevelBasedExp)
|
|
.def("AddLevelBasedExp", (void(Lua_Client::*)(int,int))&Lua_Client::AddLevelBasedExp)
|
|
.def("AddLevelBasedExp", (void(Lua_Client::*)(int,int,bool))&Lua_Client::AddLevelBasedExp)
|
|
.def("IncrementAA", (void(Lua_Client::*)(int))&Lua_Client::IncrementAA)
|
|
.def("GrantAlternateAdvancementAbility", (bool(Lua_Client::*)(int, int))&Lua_Client::GrantAlternateAdvancementAbility)
|
|
.def("GrantAlternateAdvancementAbility", (bool(Lua_Client::*)(int, int, bool))&Lua_Client::GrantAlternateAdvancementAbility)
|
|
.def("MarkSingleCompassLoc", (void(Lua_Client::*)(float,float,float))&Lua_Client::MarkSingleCompassLoc)
|
|
.def("MarkSingleCompassLoc", (void(Lua_Client::*)(float,float,float,int))&Lua_Client::MarkSingleCompassLoc)
|
|
.def("ClearCompassMark",(void(Lua_Client::*)(void))&Lua_Client::ClearCompassMark)
|
|
.def("GetNextAvailableSpellBookSlot", (int(Lua_Client::*)(void))&Lua_Client::GetNextAvailableSpellBookSlot)
|
|
.def("GetNextAvailableSpellBookSlot", (int(Lua_Client::*)(int))&Lua_Client::GetNextAvailableSpellBookSlot)
|
|
.def("GetSpellIDByBookSlot", (uint32(Lua_Client::*)(int))& Lua_Client::GetSpellIDByBookSlot)
|
|
.def("FindSpellBookSlotBySpellID", (int(Lua_Client::*)(int))&Lua_Client::FindSpellBookSlotBySpellID)
|
|
.def("UpdateTaskActivity", (void(Lua_Client::*)(int,int,int))&Lua_Client::UpdateTaskActivity)
|
|
.def("AssignTask", (void(Lua_Client::*)(int,int))&Lua_Client::AssignTask)
|
|
.def("AssignTask", (void(Lua_Client::*)(int,int,bool))&Lua_Client::AssignTask)
|
|
.def("FailTask", (void(Lua_Client::*)(int))&Lua_Client::FailTask)
|
|
.def("IsTaskCompleted", (bool(Lua_Client::*)(int))&Lua_Client::IsTaskCompleted)
|
|
.def("IsTaskActive", (bool(Lua_Client::*)(int))&Lua_Client::IsTaskActive)
|
|
.def("IsTaskActivityActive", (bool(Lua_Client::*)(int,int))&Lua_Client::IsTaskActivityActive)
|
|
.def("GetCorpseCount", (int(Lua_Client::*)(void))&Lua_Client::GetCorpseCount)
|
|
.def("GetCorpseID", (int(Lua_Client::*)(int))&Lua_Client::GetCorpseID)
|
|
.def("GetCorpseItemAt", (int(Lua_Client::*)(int,int))&Lua_Client::GetCorpseItemAt)
|
|
.def("AssignToInstance", (void(Lua_Client::*)(int))&Lua_Client::AssignToInstance)
|
|
.def("Freeze", (void(Lua_Client::*)(void))&Lua_Client::Freeze)
|
|
.def("UnFreeze", (void(Lua_Client::*)(void))&Lua_Client::UnFreeze)
|
|
.def("GetAggroCount", (int(Lua_Client::*)(void))&Lua_Client::GetAggroCount)
|
|
.def("GetCarriedMoney", (uint64(Lua_Client::*)(void))&Lua_Client::GetCarriedMoney)
|
|
.def("GetAllMoney", (uint64(Lua_Client::*)(void))&Lua_Client::GetAllMoney)
|
|
.def("GetMoney", (uint32(Lua_Client::*)(uint8, uint8))&Lua_Client::GetMoney)
|
|
.def("OpenLFGuildWindow", (void(Lua_Client::*)(void))&Lua_Client::OpenLFGuildWindow)
|
|
.def("NotifyNewTitlesAvailable", (void(Lua_Client::*)(void))&Lua_Client::NotifyNewTitlesAvailable)
|
|
.def("Signal", (void(Lua_Client::*)(uint32))&Lua_Client::Signal)
|
|
.def("AddAlternateCurrencyValue", (void(Lua_Client::*)(uint32,int))&Lua_Client::AddAlternateCurrencyValue)
|
|
.def("SetAlternateCurrencyValue", (void(Lua_Client::*)(uint32,int))&Lua_Client::SetAlternateCurrencyValue)
|
|
.def("GetAlternateCurrencyValue", (int(Lua_Client::*)(uint32))&Lua_Client::GetAlternateCurrencyValue)
|
|
.def("SendWebLink", (void(Lua_Client::*)(const char *))&Lua_Client::SendWebLink)
|
|
.def("HasSpellScribed", (bool(Lua_Client::*)(int))&Lua_Client::HasSpellScribed)
|
|
.def("SetAccountFlag", (void(Lua_Client::*)(std::string,std::string))&Lua_Client::SetAccountFlag)
|
|
.def("GetAccountFlag", (std::string(Lua_Client::*)(std::string))&Lua_Client::GetAccountFlag)
|
|
.def("GetGroup", (Lua_Group(Lua_Client::*)(void))&Lua_Client::GetGroup)
|
|
.def("GetRaid", (Lua_Raid(Lua_Client::*)(void))&Lua_Client::GetRaid)
|
|
.def("PutItemInInventory", (bool(Lua_Client::*)(int,Lua_ItemInst))&Lua_Client::PutItemInInventory)
|
|
.def("PushItemOnCursor", (bool(Lua_Client::*)(Lua_ItemInst))&Lua_Client::PushItemOnCursor)
|
|
.def("GetInventory", (Lua_Inventory(Lua_Client::*)(void))&Lua_Client::GetInventory)
|
|
.def("SendItemScale", (void(Lua_Client::*)(Lua_ItemInst))&Lua_Client::SendItemScale)
|
|
.def("QueuePacket", (void(Lua_Client::*)(Lua_Packet))&Lua_Client::QueuePacket)
|
|
.def("QueuePacket", (void(Lua_Client::*)(Lua_Packet,bool))&Lua_Client::QueuePacket)
|
|
.def("QueuePacket", (void(Lua_Client::*)(Lua_Packet,bool,int))&Lua_Client::QueuePacket)
|
|
.def("QueuePacket", (void(Lua_Client::*)(Lua_Packet,bool,int,int))&Lua_Client::QueuePacket)
|
|
.def("GetHunger", (int(Lua_Client::*)(void))&Lua_Client::GetHunger)
|
|
.def("GetThirst", (int(Lua_Client::*)(void))&Lua_Client::GetThirst)
|
|
.def("SetHunger", (void(Lua_Client::*)(int))&Lua_Client::SetHunger)
|
|
.def("SetThirst", (void(Lua_Client::*)(int))&Lua_Client::SetThirst)
|
|
.def("SetConsumption", (void(Lua_Client::*)(int, int))&Lua_Client::SetConsumption)
|
|
.def("SendMarqueeMessage", (void(Lua_Client::*)(uint32, uint32, uint32, uint32, uint32, std::string))&Lua_Client::SendMarqueeMessage)
|
|
.def("SendColoredText", (void(Lua_Client::*)(uint32, std::string))&Lua_Client::SendColoredText)
|
|
.def("PlayMP3", (void(Lua_Client::*)(std::string))&Lua_Client::PlayMP3)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32, uint32))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32, uint32, uint32))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32, uint32, uint32, uint32))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32, uint32, uint32, uint32, uint32))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32, uint32, uint32, uint32, uint32, uint32))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, uint32, uint32, uint32, uint32, uint32, uint32, bool))&Lua_Client::QuestReward)
|
|
.def("QuestReward", (void(Lua_Client::*)(Lua_Mob, luabind::adl::object))&Lua_Client::QuestReward)
|
|
.def("IsDead", &Lua_Client::IsDead)
|
|
.def("CalcCurrentWeight", &Lua_Client::CalcCurrentWeight)
|
|
.def("CalcATK", &Lua_Client::CalcATK)
|
|
.def("FilteredMessage", &Lua_Client::FilteredMessage)
|
|
.def("EnableAreaHPRegen", &Lua_Client::EnableAreaHPRegen)
|
|
.def("DisableAreaHPRegen", &Lua_Client::DisableAreaHPRegen)
|
|
.def("EnableAreaManaRegen", &Lua_Client::EnableAreaManaRegen)
|
|
.def("DisableAreaManaRegen", &Lua_Client::DisableAreaManaRegen)
|
|
.def("EnableAreaEndRegen", &Lua_Client::EnableAreaEndRegen)
|
|
.def("DisableAreaEndRegen", &Lua_Client::DisableAreaEndRegen)
|
|
.def("EnableAreaRegens", &Lua_Client::EnableAreaRegens)
|
|
.def("DisableAreaRegens", &Lua_Client::DisableAreaRegens)
|
|
.def("SetClientMaxLevel", (void(Lua_Client::*)(int))&Lua_Client::SetClientMaxLevel)
|
|
.def("GetClientMaxLevel", (int(Lua_Client::*)(void))&Lua_Client::GetClientMaxLevel)
|
|
.def("CreateExpedition", (Lua_Expedition(Lua_Client::*)(luabind::object))&Lua_Client::CreateExpedition)
|
|
.def("CreateExpedition", (Lua_Expedition(Lua_Client::*)(std::string, uint32, uint32, std::string, uint32, uint32))&Lua_Client::CreateExpedition)
|
|
.def("CreateExpedition", (Lua_Expedition(Lua_Client::*)(std::string, uint32, uint32, std::string, uint32, uint32, bool))&Lua_Client::CreateExpedition)
|
|
.def("GetExpedition", (Lua_Expedition(Lua_Client::*)(void))&Lua_Client::GetExpedition)
|
|
.def("GetExpeditionLockouts", (luabind::object(Lua_Client::*)(lua_State* L))&Lua_Client::GetExpeditionLockouts)
|
|
.def("GetExpeditionLockouts", (luabind::object(Lua_Client::*)(lua_State* L, std::string))&Lua_Client::GetExpeditionLockouts)
|
|
.def("GetLockoutExpeditionUUID", (std::string(Lua_Client::*)(std::string, std::string))&Lua_Client::GetLockoutExpeditionUUID)
|
|
.def("AddExpeditionLockout", (void(Lua_Client::*)(std::string, std::string, uint32))&Lua_Client::AddExpeditionLockout)
|
|
.def("AddExpeditionLockout", (void(Lua_Client::*)(std::string, std::string, uint32, std::string))&Lua_Client::AddExpeditionLockout)
|
|
.def("AddExpeditionLockoutDuration", (void(Lua_Client::*)(std::string, std::string, int))&Lua_Client::AddExpeditionLockoutDuration)
|
|
.def("AddExpeditionLockoutDuration", (void(Lua_Client::*)(std::string, std::string, int, std::string))&Lua_Client::AddExpeditionLockoutDuration)
|
|
.def("RemoveAllExpeditionLockouts", (void(Lua_Client::*)(void))&Lua_Client::RemoveAllExpeditionLockouts)
|
|
.def("RemoveAllExpeditionLockouts", (void(Lua_Client::*)(std::string))&Lua_Client::RemoveAllExpeditionLockouts)
|
|
.def("RemoveExpeditionLockout", (void(Lua_Client::*)(std::string, std::string))&Lua_Client::RemoveExpeditionLockout)
|
|
.def("HasExpeditionLockout", (bool(Lua_Client::*)(std::string, std::string))&Lua_Client::HasExpeditionLockout)
|
|
.def("MovePCDynamicZone", (void(Lua_Client::*)(uint32))&Lua_Client::MovePCDynamicZone)
|
|
.def("MovePCDynamicZone", (void(Lua_Client::*)(uint32, int))&Lua_Client::MovePCDynamicZone)
|
|
.def("MovePCDynamicZone", (void(Lua_Client::*)(uint32, int, bool))&Lua_Client::MovePCDynamicZone)
|
|
.def("MovePCDynamicZone", (void(Lua_Client::*)(std::string))&Lua_Client::MovePCDynamicZone)
|
|
.def("MovePCDynamicZone", (void(Lua_Client::*)(std::string, int))&Lua_Client::MovePCDynamicZone)
|
|
.def("MovePCDynamicZone", (void(Lua_Client::*)(std::string, int, bool))&Lua_Client::MovePCDynamicZone)
|
|
.def("CreateTaskDynamicZone", &Lua_Client::CreateTaskDynamicZone)
|
|
.def("Fling", (void(Lua_Client::*)(float,float,float,float))&Lua_Client::Fling)
|
|
.def("Fling", (void(Lua_Client::*)(float,float,float,float,bool))&Lua_Client::Fling)
|
|
.def("Fling", (void(Lua_Client::*)(float,float,float,float,bool,bool))&Lua_Client::Fling)
|
|
.def("GetAAEXPModifier", (double(Lua_Client::*)(uint32))&Lua_Client::GetAAEXPModifier)
|
|
.def("GetEXPModifier", (double(Lua_Client::*)(uint32))&Lua_Client::GetEXPModifier)
|
|
.def("SetAAEXPModifier", (void(Lua_Client::*)(uint32,double))&Lua_Client::SetAAEXPModifier)
|
|
.def("SetEXPModifier", (void(Lua_Client::*)(uint32,double))&Lua_Client::SetEXPModifier)
|
|
.def("AddLDoNLoss", (void(Lua_Client::*)(uint32))&Lua_Client::AddLDoNLoss)
|
|
.def("AddLDoNWin", (void(Lua_Client::*)(uint32))&Lua_Client::AddLDoNWin)
|
|
.def("SetHideMe", (void(Lua_Client::*)(bool))&Lua_Client::SetHideMe)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*))& Lua_Client::Popup)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*,uint32))& Lua_Client::Popup)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*,uint32,uint32))& Lua_Client::Popup)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*,uint32,uint32,uint32))& Lua_Client::Popup)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*,uint32,uint32,uint32,uint32))& Lua_Client::Popup)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*,uint32,uint32,uint32,uint32,const char*,const char*))& Lua_Client::Popup)
|
|
.def("Popup", (void(Lua_Client::*)(const char*,const char*,uint32,uint32,uint32,uint32,const char*,const char*,uint32))&Lua_Client::Popup)
|
|
.def("ResetAllDisciplineTimers", (void(Lua_Client::*)(void))&Lua_Client::ResetAllDisciplineTimers)
|
|
.def("SendToInstance", (void(Lua_Client::*)(std::string,std::string,uint32,float,float,float,float,std::string,uint32))&Lua_Client::SendToInstance)
|
|
.def("CountItem", (int(Lua_Client::*)(uint32))&Lua_Client::CountItem)
|
|
.def("RemoveItem", (void(Lua_Client::*)(uint32))&Lua_Client::RemoveItem)
|
|
.def("RemoveItem", (void(Lua_Client::*)(uint32,uint32))&Lua_Client::RemoveItem)
|
|
.def("SetGMStatus", (void(Lua_Client::*)(int32))& Lua_Client::SetGMStatus);
|
|
}
|
|
|
|
luabind::scope lua_register_inventory_where() {
|
|
return luabind::class_<InventoryWhere>("InventoryWhere")
|
|
.enum_("constants")
|
|
[
|
|
luabind::value("Personal", static_cast<int>(invWherePersonal)),
|
|
luabind::value("Bank", static_cast<int>(invWhereBank)),
|
|
luabind::value("SharedBank", static_cast<int>(invWhereSharedBank)),
|
|
luabind::value("Trading", static_cast<int>(invWhereTrading)),
|
|
luabind::value("Cursor", static_cast<int>(invWhereCursor))
|
|
];
|
|
}
|
|
|
|
|
|
|
|
#endif
|