| Mirage Source http://miragesource.net/forums/ |
|
| Cheat System http://miragesource.net/forums/viewtopic.php?f=210&t=3268 |
Page 1 of 1 |
| Author: | KruSuPhy [ Sun Jan 13, 2008 6:21 pm ] |
| Post subject: | Cheat System |
I was wondering if there's any way to implement a Cheat System? Like While your playing, Ctrl+C would pop up a form with a textbox, and send, And someone types a cheat in and gets around 60 coins or something? I know It'd end up being exploited, but i could always dig a way around that. Any Ideas? <.< |
|
| Author: | Stomach Pulser [ Mon Jan 14, 2008 12:11 am ] |
| Post subject: | Re: Cheat System |
You need some type key hook (low level key hook was it?) to get the Ctrl + C. Then, just make a cheat from that pops up and shows a text box. Then, check what they input there, and see if it is a cheat. If it is, use the cheat. I suggest using something like f10 as the cheat box, so you can use the functions built into Mirage. |
|
| Author: | Lea [ Mon Jan 14, 2008 3:58 am ] |
| Post subject: | Re: Cheat System |
The Form_KeyPress gives you modifiers, look for a documentation on that, it tells you when control, alt, or shift is held. |
|
| Author: | Anthony [ Mon Jan 14, 2008 6:08 am ] |
| Post subject: | Re: Cheat System |
Code: Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If GetAsyncKeyState(vbKeyControl) And GetAsyncKeyState(vbKeyQ) Then Call GameDestroy Call CheckInput(1, KeyCode, Shift) End Sub Thats my code for pressing Ctrl+Q to close the game. The GetAsyncKeyState function should already be in the MSE1. |
|
| Author: | Lea [ Mon Jan 14, 2008 2:04 pm ] |
| Post subject: | Re: Cheat System |
But... the KeyCode argument gives the keycode pressed.... and Shift gives you weather ctrl/alt/shift is pressed... look up the documentation. |
|
| Author: | KruSuPhy [ Tue Jan 15, 2008 11:45 pm ] |
| Post subject: | Re: Cheat System |
Mmk Well >_< Maybe /cheat During gameplay could pop up the frmCheat? And Code: Private Sub cmdSend_Click() If txtCheat.Text = "irapesheepforaliving12345" Then Form1.Show Else MsgBox "You have entered a cheat incorrectly" End If End Sub What would i put where the Form1.Show is, to send the player who entered it the coins? |
|
| Author: | KruSuPhy [ Sun Jan 20, 2008 5:37 pm ] |
| Post subject: | Re: Cheat System |
Are we done helping? ;/ |
|
| Author: | Lea [ Sun Jan 20, 2008 6:05 pm ] |
| Post subject: | Re: Cheat System |
look at the other slash commands and use some rational judgment to determine where it should go. |
|
| Author: | KruSuPhy [ Sun Jan 20, 2008 9:07 pm ] |
| Post subject: | Re: Cheat System |
Ufff. Mmk o_o" I'll find slash commands in frmMirage? And I could still use the Coin packet to send to the player <_< |
|
| Author: | Lea [ Sun Jan 20, 2008 9:57 pm ] |
| Post subject: | Re: Cheat System |
Ctrl-F opens the find menu. We know there are several slash commands in existance. Let's try... /help. Type "/help" into te find box... and press find. Should be taken to the area. I'm not certain if the slash commands are in the client or server... it's been a while. |
|
| Author: | Beres [ Wed Jan 23, 2008 6:06 am ] |
| Post subject: | Re: Cheat System |
Its in the client. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|