[VLSE] Vindictus Lua Scripting Engine v1.2 [1/25/2012]
[VLSE] Vindictus Lua Scripting Engine v1.2
Summary:
VLSE 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
- Added some anti-detection code that I forgot to un-comment for the last release!! (Oops)
This might prevent the VLSE from being detected on the next hackshield update (Cross your fingers) - 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
So here's what you do:
Code:
--I wrote a function to make keybinds easy, since some commands only work when bound
--Just include this at the top of your script and you will be able to use it too!
function bind(key,command)
print("Bound "..key.." to "..command)
cmd("bind \""..key.."\" \""..command.."\"")
end
--Set all the binds we want when we press F11
if keyDown_Press(0x7A)~=0 then
bind(";","cc_change_start_game_message")
bind("/","changemap_to_current_random_sector")
--etc...
end
- 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.
Some commands will crash your game when you try to execute them, such commands only work when bound to keys!
So If you're crashing after running a command, (changemap_to_current_random_sector) for instance, then bind it to a key instead!
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.
https://www.virustotal.com/file/d46c...is/1327528220/
RegionHook_vrt1.zip - Jotti's malware scan


just tried out 