[VLSE] Vindictus Lua Scripting Engine v1.0
Summary:
VSLE Is a Lua implementation inside of Vindictus that allows users to run scripts which perform console commands, set CVars and be free to customize the game to their liking.
Features:
- Run console commands on the game
- Force the setting of a ConVar
- Get the value of any ConVar
- And detect which keys are being pressed
- More to come!
API Reference:
Code:
print(str msg) --Prints a string into the stdout handle, which is typically the built in console.
cmd(str cmd) --Executes a console command on the game engine
wait(int ms) --Waits for a specified number of miliseconds; useful for accurate attack command sequences
keyDown(int keycode) --Checks if a specific key is currently being held. (Wrapper around GetAsyncKeyState)
keyDown_Press(int keycode) --Checks if a specific key is currently being pressed. (Wrapper around GetAsyncKeyState&1)
getCVar(str cvarname) --Gets the string value of a specified console variable
setCVar(str cvarname, str value) --Sets a console variable to a certain value regardless of replication or other flags
Examples:
print("hello world")
cmd("sv_gravity 0") --turn off gravity
wait(100) --Waits for 100miliseconds, or 1/10th of a second
--Checks if a key is pressed and changes the difficulty
if keyDown_Press(0xC0)~=0 then
print("difficulty modified!")
cmd("current_combat_difficulty 1")
end
-Checks if F10 is pressed, and turns on a speedhack if it is
if keyDown_Press(0x79)~=0 then --F10
if getCVar("host_timescale")=="1" then
setCVar("host_timescale","3")
else
setCVar("host_timescale","1")
end
end
How to use?:
- Unzip the archive to the folder with your injector
- Modify the auto.lua script to your liking
- Check console for lua errors if you're script isn't working
- Have fun scripting!
Readme:
The current version of VLSE only runs a single script auto.lua every 20ms, in the future I will implement threaded support for multiple scripts.
If you have any additional questions, or feel I didn't provide enough information on a topic please post about it.
I will be providing a few short scripts that I use as examples of what is possible.
Helpful Links:
Keyboard KeyCodes: List of Virtual Key Codes
Lua Tutorial Directory: lua-users wiki: Tutorial Directory
Todo:
- Scriptable message loop for external bots, etc.
- More engine interface
- Multithreaded scripts which are run by using the console.
Virus total scan:VirusTotal - Free Online Virus, Malware and URL Scanner
Another scan of just the DLL:VirusTotal - Free Online Virus, Malware and URL Scanner