Code Monkey home page Code Monkey logo

eluna's People

Contributors

55honey avatar anzz1 avatar ayasecore avatar billy1arm avatar conradbunton avatar easelm avatar elmsroth avatar foereaper avatar francescoborzi avatar grymskvll avatar h0zen avatar heyitsbench avatar kitzunu avatar myles512 avatar niam5 avatar notcoffee418 avatar nyeriah avatar r-o-b-o-t-o avatar redskull-666 avatar rochet2 avatar ryancheung avatar salja avatar tikki100 avatar ultranix avatar westtunger avatar winfidonarleyan avatar wizzymore avatar xivan0ff avatar yehonal avatar zwisus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

celguar drkittens

eluna's Issues

[Fault] Global:RunCommand method doesnt work

Steps to Reproduce:

  1. Add this script to lua scripts folder as testaccount.lua
--testaccount.lua

print("Creating Account example")
RunCommand("account create example password")
  1. restart mangosd / reload eluna

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

[Fault] attempt to call method 'SendShowMailbox' silently fails

Steps to Reproduce:

  1. Add this script to lua scripts folder as testaccount.lua
--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)
  1. restart mangosd / reload eluna

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.