niam5 / eluna Goto Github PK
View Code? Open in Web Editor NEWThis project forked from elunaluaengine/eluna
Eluna Lua Engine © for WoW Emulators
Home Page: https://elunaluaengine.github.io/
License: GNU General Public License v3.0
This project forked from elunaluaengine/eluna
Eluna Lua Engine © for WoW Emulators
Home Page: https://elunaluaengine.github.io/
License: GNU General Public License v3.0
Steps to Reproduce:
--testaccount.lua
print("Creating Account example")
RunCommand("account create example password")
Expected Behaviour:
"Creating Account example" is output to the console
eluna successfully uses RunCommand to create an account with username "example"
What Actually Happens:
"Creating Account example" is output to console
No account called "example" is created in DB's accounts table
Suspect Global:RunCommand method isnt firing at all[ due to line 1228 missing || CMaNGOS
Steps to Reproduce:
--Do .testmailcmd to invoke
local PLAYER_EVENT_ON_COMMAND = 42
function testcommand(event, player, command)
--Wheres the player @
local x, y, z, o = player:GetLocation()
--Drop a mailbox on my head
local mailbox = player:SummonGameObject(142075, (x), (y), z, o) --142075 is a mailbox, right clicking it works
player:SendShowMailbox(mailbox:GetGUID())
player:SendShowMailbox(mailbox:GetGUIDLow())
player:SendShowMailbox(player:GetGUIDLow())
end
RegisterPlayerEvent(PLAYER_EVENT_ON_COMMAND, testcommand)
Expected Behaviour:
One of the varients of SendShowMailbox actually opens the mailbox window
What Actually Happens:
3 repeats of the attempt to call method 'SendShowMailbox' (a nil value)
error in console
Functional use of this method is here: (scenario doesnt work in cmangos, but author advises functional)
https://github.com/brandon4650/Charity_lua/blob/7ff089f5634ec12ec7565e16daec31343dfc7e6f/charity.lua#L59
https://github.com/brandon4650/Charity_lua/blob/7ff089f5634ec12ec7565e16daec31343dfc7e6f/charity.lua#L84
--super shorthand
local function OnGossipHello(event, player, object)
local playerGUID = player:GetGUIDLow()
player:SendShowMailBox(playerGUID)
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.