Jump to content

Foereaper

getMaNGOS Developer
  • Content Count

    596
  • Donations

    0.00 GBP 
  • Joined

  • Last visited

  • Days Won

    1

Foereaper last won the day on May 14 2018

Foereaper had the most liked content!

Community Reputation

6 Neutral

About Foereaper

  • Rank
    Senior getMaNGOS Developer
  • Birthday 01/01/1940

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. http://www.elunaengine.com/Global/PerformIngameSpawn.html PerformIngameSpawn has an optional variable after orientation you can use to save the creature to the database :)
  2. Xardion, I primarily do windows development, and I have that working properly, would you be interested in helping me out with the Linux side of things? Primarily testing, as I don't have a Linux test environment set up atm
  3. This might be a bit late, but I am currently working on implementing LuaSocket and LuaSec as officially supported modules for Eluna
  4. Like the error says, you are trying to compare a string to a number, change either of your variables to the desired type.
  5. Yes, what you did below would also work, the original example however stores the data specifically to a Lua table so the information can be used/re-used at a later time without having to query the database again. Instead of printing "datee" directly like you tried to, you would use the table DatabaseCache with the account ID as a key to call the specific information, like shown below: local DatabaseCache = {} local function LoadDatabase(event, player) local ExampleQuery = CharDBQuery("SELECT active, date FROM premium WHERE AccountId = "..player:GetAccountId()); if(ExampleQuery)then repeat DatabaseCache[player:GetAccountId()] = { active = ExampleQuery:GetUInt32(0), datee = ExampleQuery:GetUInt32(1) }; until not ExampleQuery:NextRow() end print(DatabaseCache[player:GetAccountId()].datee) end RegisterPlayerEvent(18, LoadDatabase) If you just want a single one-time use query, then you should do this: local function LoadDatabase(event, player) local resultado = CharDBQuery("SELECT active, date FROM premium WHERE AccountId = "..player:GetAccountId()) if(resultado) then local active, date = resultado:GetString(0), resultado:GetUInt32(1); end print (datee) end RegisterPlayerEvent(18, LoadDatabase)
  6. You need to update your query to select all the necessary information that you need, you're currently only selecting date, not everything else you need as well local DatabaseCache = {} local function LoadDatabase(event, player) local ExampleQuery = CharDBQuery("SELECT active, date FROM premium WHERE AccountId = "..player:GetAccountId()); if(ExampleQuery)then repeat DatabaseCache[player:GetAccountId()] = { active = ExampleQuery:GetUInt32(0), datee = ExampleQuery:GetUInt32(1) }; until not ExampleQuery:NextRow() end end RegisterPlayerEvent(18, LoadDatabase)
  7. Foereaper

    Error in lua

    Grumbo's VIP chat script isn't stand-alone, check the original repo for more information: https://github.com/BlackWolfsDen/Eluna-Grumboz_VIP_System-Complete
  8. As a side note, this will prevent EVERY error box from showing for any other program as well, as well for debug builds. Use at your own risk
  9. Glad to hear you got it working, and yeah, the service part is a bit iffy, I never actually bothered to try setting it up properly hehe.
  10. Yes, depending on your current database version and the expected database version, as seen in the world log during startup. It will tell you the structure you have and what is expected, and you run any updates from the update folder in correct order between those two points.
  11. You either have to connect to the database and execute the update sql files via a client like heidisql or sqlyog, or through the MySQL command line tool. Either works, though I prefer to use a client.
  12. It should be called world-server.log, log directory can be set in the configs
  13. You'll have to post the full log, what you're showing there doesn't really say anything that could determine what the issue is
  14. Foereaper

    Aio setup

    That is most likely a custom method then
  15. Foereaper

    Aio setup

    UpdateStatPoints is probably a custom method, it is not something that is part of Eluna by default at least. Where did you get that method from? Only function I see called in the original script is UpdatePlayerStats(player)

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • Create New...