Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. --[[ Keys table:
  2. Keyboard: a-z (lowered!), 0-9, left shift, right shift, left ctrl, right ctrl, space, f1-14 num 0-9, num +, num -, num . , num *, num enter, num lock, num /
  3. Mouse: left_button, right_button, middle_button, x_button_1, x_button_2, x_button_3, x_button_4, x_button_5, wheel_up, wheel_down
  4.  
  5. Possible table keys:
  6. ig_chat = true/false --If true, this will execute script and/or callback when you're typing something into chat
  7. script = 'path_to_script' --Path to the script, that will be executed after key pressed
  8. callback = function() .. methods .. end/direct_function --Function, that will be executed after key pressed
  9. no_stuck = true/false --If true, key will no longer repeat itself by holding key down long enough
  10.  
  11. Configuration entry examples:
  12. --If you want to execute script file on keypress
  13. ['left shift'] = { script = 'trainer/autocooker.lua' },
  14.  
  15. --If you want to execute function on keypress
  16. ['z'] = { callback = function() managers.player:player_unit():base():replenish() end },
  17.  
  18. --If you want to execute script, ignoring check if you're in chat and also never repeat script, if key holden.
  19. ['x'] = { script = 'trainer/xray/xray.lua, ig_chat = true, no_stuck = true },
  20.  
  21. --Comma after every entry is required, except if it is last entry in the table, where it isn't necessary.
  22. ]]
  23.  
  24. keyboard_configuration = {
  25. ['4'] = { script = 'trainer/equipment_stuff/place_ammo.lua' },
  26. ['5'] = { script = 'trainer/equipment_stuff/place_medkit.lua' },
  27. ['6'] = { script = 'trainer/equipment_stuff/place_sentry.lua' },
  28. ['7'] = { script = 'trainer/equipment_stuff/place_tripmine.lua' },
  29. ['8'] = { script = 'trainer/equipment_stuff/place_ecm.lua' },
  30. ['9'] = { script = 'trainer/equipment_stuff/place_crate.lua' },
  31. ['x'] = { script = 'trainer/xray/xray.lua', no_stuck = true },
  32. ['z'] = { script = 'trainer/addons/replenish.lua' },
  33. ['num 1'] = { script = 'trainer/menu/main_menu-charmenu.lua', no_stuck = true },
  34. ['num 2'] = { script = 'trainer/menu/jobmenu-stealthmenu.lua', no_stuck = true },
  35. ['num 3'] = { script = 'trainer/menu/ingame/spawn_menu.lua', no_stuck = true },
  36. ['num 4'] = { script = 'trainer/menu/ingame/troll_menu.lua', no_stuck = true },
  37. ['num 5'] = { script = 'trainer/menu/ingame/interactions.lua', no_stuck = true },
  38. ['num 6'] = { script = 'trainer/menu/ingame/inventory_menu.lua', no_stuck = true },
  39. ['num 7'] = { script = 'trainer/menu/ingame/weaponlistmenu.lua', no_stuck = true },
  40. ['num 8'] = { script = 'trainer/menu/ingame/equipment_menu.lua', no_stuck = true },
  41. ['num 9'] = { script = 'trainer/menu/ingame/missionmenu.lua', no_stuck = true },
  42. ['home'] = { script = 'trainer/normalizer.lua', no_stuck = true },
  43. ['f6'] = { script = 'trainer/menu/config_menu.lua' },
  44. ['f5'] = { script = 'trainer/user_script.lua' },
  45. ['f4'] = { script = 'trainer/addons/carrystacker.lua' },
  46. ['f1'] = { script = 'trainer/menu/help.lua', no_stuck = true },
  47. ['f2'] = { script = 'trainer/menu/ingame/mod_menu.lua', no_stuck = true },
  48. ['num +'] = { script = 'trainer/menu/ingame/tools.lua', no_stuck = true },
  49. ['x_button_1'] = { script =
  50. ['middle_button'] = { script =
  51. ['end'] = { script = 'trainer/addons/instant_win.lua', no_stuck = true },
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement