Mirage Engine
Cheat System - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Cheat System (/showthread.php?tid=1507)



Cheat System - KruSuPhy - 13-01-2008

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?



Re: Cheat System - Stomach Pulser - 14-01-2008

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.


Re: Cheat System - Anthony - 14-01-2008

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.


Re: Cheat System - KruSuPhy - 15-01-2008

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?


Re: Cheat System - KruSuPhy - 20-01-2008

Are we done helping?
;/
Tongue


Re: Cheat System - KruSuPhy - 20-01-2008

Ufff.
Mmk o_o"
I'll find slash commands in frmMirage?
And
I could still use the Coin packet to send to the player



Re: Cheat System - Beres - 23-01-2008

Its in the client. Smile Just a memory refresher.