View previous topic :: View next topic |
Author |
Message |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 7:46 am Post subject: [Tutorial]How to make a shockwave flash trainer (Delphi) |
|
|
Video TuT will come soon.
Needs:
*Delphi (Any version)
*ShockWave Flash 1.0 Componet ActiveX control
NOTE: Before we start,i wonna make sure you have this ActiveX control in your "ActiveX" Tab.
if you dont,follow the this:
Go to Componet,and click import ActiveX control
Then choose ShockWave Flash 1.0,and click install
Great!,now that you've installed the ActiveX control,you can use it !
Making The Flash Trainer
Open up a new clean UI/Application by going to File --> New --> Application
Now that you've opend a new Application Form/Unit,you will see something like this
Put a ShockWave Flash Panel on The Form
You can rename the SWF1 name,to w/e you want,but remember the string you use to control it.
Now making the button (standard tab) to load a game,in this case we use bubble trouble,our favorite game
Remeber you can change the button caption to "Load Game" or anything you want (including size)
Loading the movie,double click the button and add the SWF1 string name and the LoadMovie function,in the (' ') add the link to the .swf game,dont forget to add 0, before the '') to make it execute
Now we add 2 Edit Boxes (Edit1 and Edit2) and anothor Button (Button2)
Button2 controls Edit1 and Edit2
Edit1 is for variables,example: Health variable in Bubble Trouble is "lives1"
Edit2 is for Value,Example we want 10 lives,so we do 10.
Configuring the Button and Edit1,Edit2
When we click the button,it will load the variable taken from Edit1 (GetVarivalbe Function) and it will Set the Variable (SetVariable Function) and Value to the SWF1 Panel we set earlier (if you remember )
In the end,we get something like this
Source is attached below
Last edited by DeletedUser14087 on Tue Jul 10, 2007 11:46 am; edited 3 times in total |
|
Back to top |
|
 |
GordonBM Expert Cheater
Reputation: 0
Joined: 06 Jul 2007 Posts: 205
|
Posted: Tue Jul 10, 2007 7:51 am Post subject: |
|
|
I still don't get it !! But thanks lol. I'm still working in VB. =)
_________________
maxuer wrote: |
:p What is a memory scanner and where I found one? |
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 9:44 am Post subject: |
|
|
I expected appalsap to comment here...
|
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Jul 10, 2007 10:35 am Post subject: |
|
|
good tut kasper
not difficult but nice finish of your trainer
and at the vb guy
flash in vb is VERY easy...
_________________
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Tue Jul 10, 2007 10:43 am Post subject: |
|
|
And thats it? Seems simple for a trainer... IM GUNNA TRY IT RIGHT NOW!!!
*edit*
after reading it more closely, u said that lives in that game is lives1. How did you find out the name of the variable? Is there a flash decompiler?
_________________
Last edited by Varreon on Tue Jul 10, 2007 10:51 am; edited 1 time in total |
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 10:47 am Post subject: |
|
|
blankrider wrote: | good tut kasper
not difficult but nice finish of your trainer
and at the vb guy
flash in vb is VERY easy... |
Thats why 90% Traines in Flash Section are made from VB,there's an public open source + tuts + video tuts lmfao...
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Tue Jul 10, 2007 11:18 am Post subject: |
|
|
Hate to be the noob who can't follow a tut, but I get an error:
Project Trainer.exe raised exception class EAccessViolation with message "Access Violation at address 30085BED in module "Flash9.ocx". Read of Address 00000000.
_________________
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 11:43 am Post subject: |
|
|
Varreon wrote: | Hate to be the noob who can't follow a tut, but I get an error:
Project Trainer.exe raised exception class EAccessViolation with message "Access Violation at address 30085BED in module "Flash9.ocx". Read of Address 00000000. |
When are you getting it ?
What action did you do that you get it ?
|
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Jul 10, 2007 11:46 am Post subject: |
|
|
are you running runescape or maple
lol?
_________________
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 11:47 am Post subject: |
|
|
blankrider wrote: | are you running runescape or maple
lol? |
me ? where ?
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Tue Jul 10, 2007 11:55 am Post subject: |
|
|
I got my error at "Player.SetVariable(Edit1.Text,Edit2.Text);"
i renamed my Shockwave control to player.
BTW:
I included the GetVariable Line, but what is the point of it? You never display the value, just change it.(Im sure im missing something...)
_________________
|
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Jul 10, 2007 11:58 am Post subject: |
|
|
Kasper some games like RS and maple wont let you compile code
it was to Varreon
_________________
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 11:58 am Post subject: |
|
|
Varreon wrote: | I got my error at "Player.SetVariable(Edit1.Text,Edit2.Text);"
i renamed my Shockwave control to player.
BTW:
I included the GetVariable Line, but what is the point of it? You never display the value, just change it.(Im sure im missing something...) |
Post here your whole source code,i think you forgot to add something in the uses list or to declare something.
|
|
Back to top |
|
 |
Varreon Advanced Cheater
Reputation: 0
Joined: 13 Jun 2007 Posts: 80
|
Posted: Tue Jul 10, 2007 12:12 pm Post subject: |
|
|
Here we go:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, OleCtrls, ShockwaveFlashObjects_TLB, Menus;
type
TForm1 = class(TForm)
Player: TShockwaveFlash;
BitBtn1: TBitBtn;
Edit1: TEdit;
Label1: TLabel;
MainMenu1: TMainMenu;
File1: TMenuItem;
QuickLoad1: TMenuItem;
BubbleTrouble1: TMenuItem;
hreeFootNinja1: TMenuItem;
XenoTactic1: TMenuItem;
Quit1: TMenuItem;
BitBtn2: TBitBtn;
Edit2: TEdit;
Edit3: TEdit;
procedure BitBtn1Click(Sender: TObject);
procedure Quit1Click(Sender: TObject);
procedure BubbleTrouble1Click(Sender: TObject);
procedure BitBtn2Click(Sender: TObject);
procedure hreeFootNinja1Click(Sender: TObject);
procedure XenoTactic1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
Player.LoadMovie(0,Edit1.Text);
end;
procedure TForm1.Quit1Click(Sender: TObject);
begin
Close();
end;
procedure TForm1.BubbleTrouble1Click(Sender: TObject);
begin
Player.LoadMovie(0,'http://miniclip.com/swfcontent/freegames/bubbletrouble.swf');
end;
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
Player.GetVariable(Edit1.Text);
Player.SetVariable(Edit1.Text,Edit2.text);
end;
procedure TForm1.hreeFootNinja1Click(Sender: TObject);
begin
Player.LoadMovie(0,'http://www.miniclip.com/games/3-foot-ninja/en/3-foot-ninja.swf');
end;
procedure TForm1.XenoTactic1Click(Sender: TObject);
begin
Player.LoadMovie(0,'http://www.xgenstudios.com/xenotactic/xenotactic.swf');
end;
end.
_________________
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Tue Jul 10, 2007 12:14 pm Post subject: |
|
|
You forgot to add Edit1 and Edit2 lol ?
|
|
Back to top |
|
 |
|