working for me, the way i have it mapped out on my auto.lua
maybe its the last lines thats causing you to end the game, remove them??
maybe its the last lines thats causing you to end the game, remove them??


--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_enter_rochest_from_colhen")
bind(".","cc_enter_colhen_from_rochest")
bind("'","changemap_to_current_random_sector")
end
if keyDown_Press(0x23)~=0 then --end
print("GodMode enabled!")
cmd("god")
end
if keyDown_Press(0x22)~=0 then --pgdn
print("Normal difficulty enabled!")
cmd("current_combat_difficulty 1")
end
if keyDown_Press(0x21)~=0 then --pgup
print("One Hit Kill enabled!")
cmd("ohk")
end
if keyDown_Press(0x79)~=0 then --home
print("trans level one enabled!")
cmd("plr_play_overlay_sequence paladin_transformation_begin_1")
end
if keyDown_Press(0xDC)~=0 then --\
print("trans level two enabled!")
cmd("plr_play_overlay_sequence paladin_transformation_begin_2")
end
if keyDown_Press(0x4F)~=0 then --o
print("skip level enabled!")
cmd("changelevel 2")
end
if keyDown_Press(0xBF)~=0 then --?
print("sticky bomb enabled!")
cmd("cc_set_sub_weapon sticky_bomb 999")
end
if keyDown_Press(0x26)~=0 then --up
print("spears enabled!")
cmd("cc_set_sub_weapon javelin_lvl2 999")
end
if keyDown_Press(0x25)~=0 then --left
print("mine bombs enabled!")
cmd("cc_set_sub_weapon mining_bomb 999")
end
if keyDown_Press(0x27)~=0 then --right
print("palala bombs enabled!")
cmd("cc_set_sub_weapon flashbang 999")
end
if keyDown_Press(0x28)~=0 then --down
print("bombs enabled!")
cmd("cc_set_sub_weapon handbomb_lvl2 999")
end
if keyDown_Press(0x50)~=0 then --p
print("shield repair enabled!")
cmd("plr_play_overlay_sequence sp_shield_repair")
end
if keyDown_Press(0x4C)~=0 then --l
print("reverse gravity enabled!")
cmd("plr_play_overlay_sequence reverse_gravity")
end
if keyDown_Press(0x4B)~=0 then --k
print("blind arrow enabled!")
cmd("plr_play_overlay_sequence magic_blind_arrow")
end

