help about bind key

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

help about bind key

Post by dhanielst »

i want know if possible to make bindkey like hit esc key or arrow key for this

globals
trigger gg_trg_elidhan=null


function main
call InitTrig_elidhan1()

endglobals
function Trig_elidhan_Actions1 takes nothing returns nothing
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_elidhan1 takes nothing returns nothing
set gg_trg_elidhan = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(12), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(11), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(10), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(9), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(8), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(7), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(6), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(5), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(4), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(3), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(2), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(1), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(0), "-cl ", true )
call TriggerAddAction( gg_trg_elidhan, function Trig_elidhan_Actions1 )
endfunction
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
User avatar
haxorico
Super Moderator
Posts: 3191
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: help about bind key

Post by haxorico »

Simply replace the playerchatevent with an arrow key event.
You can find the event in the jasscraft native list or in world editor make it in gui and convert it to jass to find the event.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: help about bind key

Post by dhanielst »

haxorico wrote:Simply replace the playerchatevent with an arrow key event.
You can find the event in the jasscraft native list or in world editor make it in gui and convert it to jass to find the event.

like this?

call TriggerRegisterPlayerChatEvent
( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN, true )
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
User avatar
UndeadxAssassin
Grammar King
Posts: 2115
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: help about bind key

Post by UndeadxAssassin »

Remove the "Chat" and the boolean and it should be fine.

call TriggerRegisterPlayerEvent ( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN )
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: help about bind key

Post by dhanielst »

UndeadxAssassin wrote:Remove the "Chat" and the boolean and it should be fine.

call TriggerRegisterPlayerEvent ( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN )
ok tnx
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: help about bind key

Post by dhanielst »

one more question i use arrow key how to change it to esc, hold, stop, patrol key?

Edit: i already solve esc key
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D