LUA Loader Request

05/18/2018 02:07 ToadFungoso#1
Hi! Where can I found UPDATED elsword functions? And How can I dump functions arguments? Thank you
05/18/2018 17:17 Venipa#2
:lul:

05/18/2018 21:09 ToadFungoso#3
@[Only registered and activated users can see links. Click Here To Register...] thank you. This script is updated. But how does it work?
In this part of code I have to write function I want to dump?
05/19/2018 01:42 MuffinMario#4
Quote:
Originally Posted by Venipa View Post
Code:
      f:write("\r\n-- Arguments:\r\n")
How shady do you have to be?

This dumper has nothing to add than any other _G file write iteration, try catch probably just from the internet aswell, debug.getinfo with "S" only adds source thats written in plain lua, which elsword doesnt have (only C functions and byte code lua).
Arguments can be known by
a) knowing corresponding byte code values of the els compiler and something like jit.utils.funcbc
b) hooking the function with the template
Code:
realfunction = <enter function here>
local f = function(...)
    arr = {...}
    for k,v in pairs(arr) do
        --code to write
        --use type(v) to get type of argument or if you want values just use v (or tostring(v))
    end
    return realfunction(...)
end
realfunction = f
That's not ready to use though, so if you're taking the effort to work on something feel free to use it to get arguments of functions. I also got a bulk function dumper but I don't wanna openly release it for you have to set it up first