1. Before posting any MODs, please contact us at support@portalarium.com to ensure your MOD is acceptable to the Terms of Service and EULA of the game. Portalarium is not responsible for use of MODs and possible adverse effects on your client or computer, and we may take action on accounts using MODs that are deemed illegal. Whether submitted here or elsewhere in the community, use MODs at your own risk!
    Dismiss Notice

LUA requests

Discussion in 'Lua Discussions' started by Vladamir Begemot, Nov 5, 2019.

  1. Justiciar

    Justiciar Avatar

    Messages:
    33
    Likes Received:
    45
    Trophy Points:
    8
    @Mishikal Yes, just a little HUD with the OS time, such as "6:03".
    @Cypher Black @Tiina Onir @Ken Parallax You can do that by holding your mouse over the spell until it displays regs required. It lists the quantity you have of each.
     
  2. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,012
    Likes Received:
    1,755
    Trophy Points:
    125
    Location:
    Bramble, South Paladis
    One of my guildies asked about this, so I've already done it. (it's easy to to do, so I'm pretty sure I'm not alone). It should return localtime, but I happen to be NBST, so tell me if it doesn't. I'm surprised how common of a request it is.
    https://raw.githubusercontent.com/sotadb/LuaScripts/master/info.sotadb.clock.lua

    We have access to around 400 stats. I have them exposed on the command-line, but this is one of the first script I wrote, and is generally an experiment pad for testing things as @Chris adds them.
    generally I have used it like this (bear in mind, this is only really intended for debugging, not day-to-day usage):
    1. Enable lua on one console tab
    2. using the local channel \findstat str
    3. note the stat-number you're interested in
    4. using the local channel \showstat <stat number>
    https://raw.githubusercontent.com/sotadb/LuaScripts/master/info.sotadb.util.lua
    I know others have created panels that show limited subsets of these stats, but are designed to be more usable.

    We don't have any way to get the location of Towns/PoIs from the game, but once we get the ability to pull info from online resources this could be done.
     
    Last edited: Dec 2, 2019
  3. CatweazleX

    CatweazleX Avatar

    Messages:
    639
    Likes Received:
    756
    Trophy Points:
    93
    Location:
    Veritas Sanctuary
    For the clock see here
    when libsota.util is installed you can type \info stat <name or number> to get the stat of interest displayed. (also \info xp for pooled xp)
     
    Justiciar likes this.
  4. CatweazleX

    CatweazleX Avatar

    Messages:
    639
    Likes Received:
    756
    Trophy Points:
    93
    Location:
    Veritas Sanctuary
    you are right.

    info.sotadb.util.lua : can you add the remaining ShroudOn .. functions, please ?
     
    Tiina Onir likes this.
  5. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,012
    Likes Received:
    1,755
    Trophy Points:
    125
    Location:
    Bramble, South Paladis
    Sorry about that, I thought I had fixed it everywhere. It's fixed now. :oops:
     
    CatweazleX likes this.
  6. oplek

    oplek Avatar

    Messages:
    945
    Likes Received:
    2,329
    Trophy Points:
    93
    Gender:
    Male
    This may be a bridge too far, but there could be an intersection between the GM status, and Lua. Chris mentioned the GM abilities, but if those could also be controlled by LUA,when the flag is enabled, that'd open up some much more intricate and scripted events, beyond summoning a couple dragons. Especially if Lua could trigger on events like monster XYZ taking ABC amount of damage.

    Though it may be difficult for people to test, unless these potions are available regularly in QA.
     
  7. Drake Aedus

    Drake Aedus Avatar

    Messages:
    533
    Likes Received:
    872
    Trophy Points:
    75
    Gender:
    Male
    Lua can watch the combat log, if you are close enough to the combatants to see all events from the server (there is a broadcast range) and even then, Lua cannot interact with the server or the client in a meaningful way right now. You could perhaps create a static monitor from a known, hard coded, total HP for the creature, but you couldn't communicate that to anyone automatically.
     
    Tiina Onir likes this.
  8. Justiciar

    Justiciar Avatar

    Messages:
    33
    Likes Received:
    45
    Trophy Points:
    8
    I'm surprised people think a realtime clock is such a strange request. It beats having to look elsewhere for the time and some of us like to know how long we have until the next UT run. :)
    I'm having a problem getting LUA command line to work. I have opened a LUA/local chat window set to Local and LUA initializes and displays the realtime clock (thanks @CatweazleX ) . Typing anything just broadcasts it into local and does not return any LUA output. I''m using info.sotadb.util.lua with Clock pasted in, libsota.0.4.5.lua, and libsota.util.0.4.lua and trying things like "\info xp". Thanks!
     
    CatweazleX likes this.
  9. Mishikal

    Mishikal Avatar

    Messages:
    1,959
    Likes Received:
    2,818
    Trophy Points:
    113
    Location:
    Brittany Estates
    Agreed, this is a pretty common addon setting for MMOs, look at titan panel for example (for WoW), which lets you have it display server time or local time if you load in the related module.
     
  10. CatweazleX

    CatweazleX Avatar

    Messages:
    639
    Likes Received:
    756
    Trophy Points:
    93
    Location:
    Veritas Sanctuary
    It is not a strange request, it is only a simple one.
    I can change the clock.lua in a way that it switch through local and "texas" time using RightAlt + c.
     
    Mishikal likes this.
  11. Vladamir Begemot

    Vladamir Begemot Avatar

    Messages:
    5,864
    Likes Received:
    11,286
    Trophy Points:
    153
    Gender:
    Male
    It was the first thing my friend noticed about Civ 6 when he finally bought it. "Hey was that clock there before?"
     
    Mishikal likes this.
  12. CatweazleX

    CatweazleX Avatar

    Messages:
    639
    Likes Received:
    756
    Trophy Points:
    93
    Location:
    Veritas Sanctuary
    done.
     
    Anpu and Mishikal like this.
  13. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,012
    Likes Received:
    1,755
    Trophy Points:
    125
    Location:
    Bramble, South Paladis
    The clock doesn't have any commands nor any dependencies on anything else there, you should just be able to drop that one file in your lua directory and go. My whole premise is "use the scripts you want, ignore the ones you don't" Maybe I should make that a motto...
     
    Vladamir Begemot, Anpu and Mishikal like this.
  14. Elrond

    Elrond Avatar

    Messages:
    1,070
    Likes Received:
    3,327
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Crafters Town
    Would like to see a script for crafting . Im interested in an interface that allows me to input costs for each material and find out how much the finished product cost will be .