Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   keydown2 (https://forums.graalonline.com/forums/showthread.php?t=50830)

ZeLpH_MyStiK 02-03-2004 05:15 AM

keydown2
 
Does any one know the keydown2 for CONTROL and ALT? I can't get it to work. K thanks ahead of time =)

DIABLO2099 02-03-2004 05:28 AM

NPC Code:
if (keypressed) {
setplayerprop #c,#p(0) : #p(1);
}



Should work, if not let me know.

-Ramirez- 02-03-2004 05:39 AM

Re: keydown2
 
Quote:

Originally posted by ZeLpH_MyStiK
Does any one know the keydown2 for CONTROL and ALT? I can't get it to work. K thanks ahead of time =)
I'll directly answer your question.

17 == Control
18 == Alt

osrs 02-03-2004 04:46 PM

Quote:

8 - back
9 - tab
13 - return
16 - shift
17 - control
18 - alt
33 - page up
34 - page down
35 - end
36 - home
42 - print key
45 - insert
46 - delete
91 - left windows key
92 - right windows key
93 - mouse popup key
112-123 - F1-F12
144 - numlock
160 - left shift
161 - right shift
162 - left control
163 - right control
164 - left alt/menu
165 - right alt/menu
Read newfeatures is good. :)

ZeLpH_MyStiK 02-03-2004 11:19 PM

Quote:

Originally posted by osrs


Read newfeatures is good. :)

I already know keycode for ctrl and alt are 18 and 17 respectively, but it doesnt seem to work.

[EDIT] Nvm i got it to work, it was the bug where the npcserver stops recognizing your player, i reconnected and it worked -.- [/EDIT]


All times are GMT +2. The time now is 09:16 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.