PatchedVindictus Lua Scripting Engine + Console [v1.3] [XP fixed][NA]

Posts 16–30 of 82 · Page 2 of 6
Quote Originally Posted by h1dr0 View Post
On XP console waits game client to start and then closes.. But the binds work if you set them

I have a question, what do i type if I want to bind NUMPAD keys to commands, for example: bind(";","cc_enter_rochest_from_colhen") if instead of ; button I wish it to bind to NUMPAD6 ? I tried everything form virtual key code list and it didnt work...
Then put bind("NUMPAD6","cc_enter_rochest_from_colhen") or ("KP_LEFTARROW","cc_enter_rochest_from_colhen")

EDIT: Put KP_RIGHTARROW ;P left is for num4 ;D
Quote Originally Posted by Noomy View Post
Then put bind("NUMPAD6","cc_enter_rochest_from_colhen") or ("KP_LEFTARROW","cc_enter_rochest_from_colhen")

EDIT: Put KP_RIGHTARROW ;P left is for num4 ;D

dont seem to work...

EDIT: KP_RIGHTARROW did work tho messed up with the sides too and what would be NUM1 and NUM 5 buttons called like ?
Quote Originally Posted by h1dr0 View Post
dont seem to work...

EDIT: KP_RIGHTARROW did work tho messed up with the sides too and what would be NUM1 and NUM 5 buttons called like ?
KP_5 and KP_END I gues :P
I have simple question then. you are sure that you save your file everytime with proper ext and when you are in game you pressing F11?
I have something like this
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_enter_rochest_from_colhen")
   bind(".","cc_enter_colhen_from_rochest")
   bind("'","changemap_to_current_random_sector")
   bind("KP_LEFTARROW","incrementvar plr_turning_movement_speed_rate_min 1 11 5")
   bind("F10","incrementvar host_timescale 1 5 2")
   bind("KP_RIGHTARROW","cc_change_figure_height .1")
   bind("KP_5","cc_change_figure_height 1;cc_system_message NormalHeight")
   bind("-","cc_send_start_game_message")
   bind("p","cc_change_start_game_message")
end
and its working - the "keypad" things. I dont change teleport because theres no reason for me to do so
That's pretty weird that it's disappearing, but as long as you have no errors in your script it sounds like it will still work for you.
If I get some time to install an XP Virtual Machine I'll try to see what's wrong with it.
thanks alot, my keypad binds are now working fine

well if you bind everything in the file I dont seem to need the console windows so its ok.. thanks for this
Suggestion: Hook into the gameevent manager, so people can execute stuff on map load / when entities die etc
Quote Originally Posted by Hell_Demon View Post
Suggestion: Hook into the gameevent manager, so people can execute stuff on map load / when entities die etc
I could also add an interface to the entities so you could set their health, position, attributes, and spawn them, but I don't play Vindictus so I'm feeling really uninspired to do either.

---------- Post added at 10:28 PM ---------- Previous post was at 10:24 PM ----------


Since it's really not that hard:
If somebody wanted to do such things and send me working code I would be happy to patch it into the scripting engine. (When I'm not busy with school)
Quote Originally Posted by Hell_Demon View Post
ook into the gameevent manager, so people can execute stuff on map load / when entities die etc
What is an game event manager? I'm guessing it reads outputs from the game. Do you have an example of one, I couldn't find one.
Quote Originally Posted by Kev Hero View Post
What is an game event manager? I'm guessing it reads outputs from the game. Do you have an example of one, I couldn't find one.
He was talking to nowayz. I think he knows about that Wes, he made LSS for CSS :l
I don't think I'm writing my scripts correctly. They don't work.
Nice work.
script works, but console window closed on start.

Seems Vindictus (hackshield) try to close any existing Console window on start.

tried to implement a simple console window by AllocConsole() , also closed on start.
Quote Originally Posted by Sylphia View Post
Nice work.
script works, but console window closed on start.

Seems Vindictus (hackshield) try to close any existing Console window on start.

tried to implement a simple console window by AllocConsole() , also closed on start.

@Sylphia, can you try something for me since you seem to be competent?
The window only seems to be hiding on XP, if you would loop this code and tell me if that fixes it, I would be in your debt.

Code:
HWND hWnd = GetConsoleWindow(); 
ShowWindow( hWnd, SW_SHOW);
script code for any1 that is using MHWalker.

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 ("KP_LEFTARROW","cc_change_figure_height 0.1")
bind ("KP_5","cc_change_figure_height 1")
bind ("KP_RIGHTARROW","changemap_to_next_random_sector" )
bind ("KP_HOME","cc_set_sub_weapon javelin_lvl2 999")
bind ("KP_INS","god")
bind ("KP_MINUS","ohk")
bind ("KP_SLASH","incrementvar host_timescale 1 5 4")
bind ("KP_UPARROW","plr_play_overlay_sequence paladin_transformation_begin_1")
bind ("KP_DOWNARROW","plr_play_overlay_sequence paladin_transformation_begin_2")
bind ("KP_PGUP","cc_set_sub_weapon mining_bomb 999")
bind ("KP_PLUS","plr_play_overlay_sequence paladin_2_skill_tentacle")
bind ("KP_PGDN","changemap_to_current_random_sector" )
bind ("F5","cc_mailbox_ui")
bind ("F6","show_mini_shop")
bind ("F7","close_last_dialog")
bind ("F8","close_alchemy_box")
bind ("*","incrementvar sv_gravity -800 800 800")
bind ("[","cc_change_figure_height 1500")
bind ("]","incrementvar plr_search_evil_core_distance 500 3000 2500")
bind ("=","cc_shiplist_ui")
bind ("-","cc_send_start_game_message")
bind ("l","cc_change_start_game_message")
bind (",","cc_enter_colhen_from_rochest")
bind (".","cc_enter_rochest_from_colhen")
bind ("/","force_state_transition_to_purgetowharf")
bind ("KP_DEL","nuke")
end
I have same problem as Sylphia console is closing on start could some1 help me?
Posts 16–30 of 82 · Page 2 of 6
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us