|
You last visited: Today at 09:23
Advertisement
[Moonloader] Dumping Lua Codes
Discussion on [Moonloader] Dumping Lua Codes within the Elsword forum part of the MMORPGs category.
05/07/2016, 16:06
|
#1
|
elite*gold: 3
Join Date: Oct 2013
Posts: 5,815
Received Thanks: 1,814
|
[Moonloader] Dumping Lua Codes
Hi,
I have not seen that someone has published the LUA script for dumping the Elsword Lua codes.
So here we go.
Code:
local dumpingClass, dumpingFunc = "CX2TitleManager", "AddTitleInfo_LUA"
local outputFile = "title"
-------------------------------------------------------------------------------------------------------------
local finvoke_text = dumpingClass:gsub("CX2", "g_p") .. dumpingFunc .. "("
local dumpString, dumpTable
dumpString = function(s)
return "\"" .. s:gsub("\\", "\\\\"):gsub("\r", "\\r"):gsub("\n", "\\n"):gsub("\"", "\\\"") .. "\""
end
dumpTable = function(tbl, recursionCount, onlyNum, openBracket, closeBracket)
local iter = pairs
if onlyNum then
iter = ipairs
end
local makeDelimiter = false
local outStr = openBracket .. "\n"
for k, v in iter(tbl) do
if makeDelimiter then
outStr = outStr .. ",\n"
end
local kname = tostring(k) .. " = "
if onlyNum or (type(k) == "number") then kname = "" end
outStr = outStr .. string.rep(" ", recursionCount) .. kname
if type(v) == "table" then
outStr = outStr .. dumpTable(v, recursionCount + 1, false, "{", "}")
elseif type(v) == "string" then
outStr = outStr .. dumpString(v)
elseif type(v) == "number" then
outStr = outStr .. tostring(v)
else
outStr = outStr .. "nil"
end
makeDelimiter = true
end
outStr = outStr .. "\n" .. string.rep(" ", recursionCount - 1) .. closeBracket
return outStr
end
local f
local originalfunc = _G[dumpingClass][dumpingFunc]
_G[dumpingClass][dumpingFunc] = function(self, data)
if not data then return originalfunc(self, data) end
f:write(finvoke_text)
f:write(dumpTable(data, 1, false, "{", "}"))
f:write(")\n")
f:flush()
originalfunc(self, data)
end
f = io.open(outputFile, "wb")
How to use:
1. Replace the Lua Class and Function.
2. Enter a name for the outputfile ( File gonna be saved in the data folder)
3. Run the script before you log in.
Not all Lua functions are dumpable.
---
Have fun.
|
|
|
05/08/2016, 10:20
|
#2
|
elite*gold: 0
Join Date: Feb 2012
Posts: 56
Received Thanks: 6
|
Was soll da passieren wenn ich den Script ausführe?
|
|
|
05/08/2016, 10:32
|
#3
|
elite*gold: 3
Join Date: Oct 2013
Posts: 5,815
Received Thanks: 1,814
|
Quote:
Originally Posted by gtelki123
Was soll da passieren wenn ich den Script ausführe?
|
Damit wird die Funktion gedumpt.
|
|
|
05/09/2016, 13:01
|
#4
|
elite*gold: 0
Join Date: Sep 2010
Posts: 23
Received Thanks: 2
|
Hi, can we extract SocketOptionForm.lua ? If yes, how ? I don't find function for that, thanks.
|
|
|
05/16/2016, 22:57
|
#5
|
elite*gold: 0
Join Date: Jun 2013
Posts: 70
Received Thanks: 40
|
i cant get this to work and yes i have ML
|
|
|
05/16/2016, 23:35
|
#6
|
elite*gold: 3
Join Date: Oct 2013
Posts: 5,815
Received Thanks: 1,814
|
Quote:
Originally Posted by Antharass
Hi, can we extract SocketOptionForm.lua ? If yes, how ? I don't find function for that, thanks.
|
Sorry, i don't know.
Quote:
Originally Posted by MLG_2PR0
i cant get this to work and yes i have ML
|
What's your problem?
|
|
|
05/17/2016, 05:17
|
#7
|
elite*gold: 0
Join Date: Jun 2013
Posts: 70
Received Thanks: 40
|
Quote:
Originally Posted by Nevada'
Sorry, i don't know.
What's your problem?
|
it just does not work when i try to use it it makes the file but does nothing else and yes i use it on login screen
|
|
|
05/17/2016, 09:58
|
#8
|
elite*gold: 0
Join Date: Jul 2011
Posts: 1,144
Received Thanks: 350
|
Quote:
Originally Posted by MLG_2PR0
it just does not work when i try to use it it makes the file but does nothing else and yes i use it on login screen
|
After you execute the dump script just login into elsword and look after that into your data folder
|
|
|
05/17/2016, 10:23
|
#9
|
elite*gold: 3
Join Date: Oct 2013
Posts: 5,815
Received Thanks: 1,814
|
Quote:
Originally Posted by MLG_2PR0
it just does not work when i try to use it it makes the file but does nothing else and yes i use it on login screen
|
like I said not every file is dumpable
|
|
|
06/02/2016, 15:11
|
#10
|
elite*gold: 0
Join Date: Sep 2013
Posts: 11
Received Thanks: 2
|
Excuse me
Can it dump only funtion?
It seems that Kog changed the formula
SO i want to know the lastest formula
Such as CalculateFinalAdditionalAttackValue and CalculateFinalCriticalPercent
thank you very much
|
|
|
06/09/2016, 23:00
|
#11
|
elite*gold: 0
Join Date: Jun 2013
Posts: 70
Received Thanks: 40
|
Quote:
Originally Posted by davidsam1408
Excuse me
Can it dump only funtion?
It seems that Kog changed the formula
SO i want to know the lastest formula
Such as CalculateFinalAdditionalAttackValue and CalculateFinalCriticalPercent
thank you very much
|
i would also like to know this what do i dump for it?
|
|
|
07/06/2016, 12:53
|
#12
|
elite*gold: 0
Join Date: Jan 2016
Posts: 78
Received Thanks: 53
|
Quote:
Originally Posted by MLG_2PR0
i would also like to know this what do i dump for it?
|
need answer please for us 
|
|
|
07/06/2016, 16:09
|
#13
|
elite*gold: 0
Join Date: Jul 2011
Posts: 1,144
Received Thanks: 350
|
Quote:
Originally Posted by Guardians-sro
need answer please for us  
|
you need those to make your own mod/hack/lua
|
|
|
07/06/2016, 23:42
|
#14
|
elite*gold: 0
Join Date: Jan 2016
Posts: 78
Received Thanks: 53
|
Quote:
Originally Posted by MLG_2PR0
i would also like to know this what do i dump for it?
|
Quote:
Originally Posted by Venipa
you need those to make your own mod/hack/lua
|
Thanks i will try for this
|
|
|
12/03/2016, 19:23
|
#15
|
elite*gold: 0
Join Date: Oct 2011
Posts: 34
Received Thanks: 11
|
Someone that can explain it?>w>
|
|
|
Similar Threads
|
[Moonloader] | NPC Spawner lua
09/08/2020 - Elsword - 39 Replies
http://i.epvpimg.com/FGKAg.png
http://i.imgur.com/K9vSK9c.jpg
NPC Spawner - spawner.lua
Tutorial:
1.Start Moonloader
2.Start Elsword
|
[Moonloader] - ???.Lua (For you)
09/09/2017 - Elsword - 43 Replies
LUA Files
Don't use this directly for Moonloader!!!
http://i.epvpimg.com/7FVBb.png
Here you can mod your Anna's Gift title.
With these information you can mod anna's gift. Other Luas soon when i wake up again.
http://i.epvpimg.com/7FVBb.png
Pastebin: TitleTable.lua |
Pastebin: DungeonData.lua |
MEGA: NewSkillTemplet.lua
|
moonloader all funcions
05/09/2016 - Elsword - 4 Replies
hi could me all funcions moon loader sorry my elignish is bad
|
Can somebody send me the MoonLoader link?
05/08/2016 - Elsword - 2 Replies
Read the title.
|
[Help]IDA Pro Dumping
12/16/2009 - Mabinogi - 1 Replies
Is there a way to dump information into a .txt file besides copy and paste?
|
All times are GMT +1. The time now is 09:23.
|
|