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.
--Nowayz(HaloShadoW)'s Fiona Lua Script
--Spam the hammer finish attack with perfect wait time
if keyDown(0x47)~=0 then -- G
cmd("plr_play_overlay_sequence battle_hammer_attack_strong_04_finish_d")
wait(370)
end
--Wait for ; to be pressed and repair all my items
if keyDown_Press(0xBA)~=0 then -- ; Key
cmd("campfire_repair")
end
--Fill all quickbar items with ' or F key (This means infinite spears)
if (keyDown_Press(0xDE)~=0)or(keyDown_Press(0x46)~=0) then -- ' or F key
cmd("cc_fill_all_items")
end
--Use heavystander infinitely while holding Q
if keyDown(0x51)~=0 then -- Q
cmd("plr_play_overlay_sequence heavystander_during")
end
--Wait for F10 to be pressed and enable/disable speedhacks
if keyDown_Press(0x79)~=0 then --F10
if getCVar("host_timescale")=="1" then
setCVar("host_timescale","3")
else
setCVar("host_timescale","1")
end
end
I just wrote this in like 5 minutes, so I've not had time to bum around and figure out how some of the other users at MPGH are doing some of the cool things that their dlls let you do.
So yea, approved.
You got MSN, Skype or Steam?
I have all 3 but I use MSN and Steam mostly, I'll pm you details.
Ahg, I don't have enough posts, hold on I'll post some bullshit then PM you.