[TUT]How to make a DF TrainerTo make a DF trainer you need the following:Visual basic 6&Sothink SWF decompiler
you can download them by click these links:
Sothink SWF decompilerVisual Basic6Open vb6and click on "standard exe"
and you should have a blank "form". now right click on your toolbox and click on components.

Scroll to the bottom of the list and add the component called "Shockwave flash"
Then put the Shockwave flash onto your blank form.

What you need:3 text boxes
1 command button(call it connect)
Now add 3 textboxes and in textbox 1 type in:
http://dragonfable.battleon.com/game/In textbox2 type in:
http://dragonfable.battleon.com/game/gamefiles/core.swfIn textbox 3 type in:
gameX_X_X.swf (the X means the current game build)
SWF is now 8_6_1
swf by jackofbladesmah
Now add a Button and put it onto your formDouble click on the button and type in this code:
Code:
ShockwaveFlash1.Movie = Text2.Text
ShockwaveFlash1.Base = Text1.Text
ShockwaveFlash1.FlashVars = "strFileName=" + Text3.Text
ShockwaveFlash1.Play
Now click on the shockwaveflash once and on the bottom right you should see the properties menu. and change these settings:
SCALE = ExactFit
ALLOWSCRIPTACCESS = SameDomain
Test your project by pressing F5, then click the command button.
You should be able to log in.
Congratulations, you have now made a working DF loader. So now onto the hacks.
DF Hacks for your trainerokay so now you want to add hacks to your trainer right? well I'm not going to give you the more advanced hacks, you have to find out by yourself, but i will tell you how to add basic hacks like HP, MP, stats and others.
okay so now add 3 things:
1 button
1 textbox (named text4)
double click on the button so the code area comes up, and type in this code:
now double click on the button and type in this code:
Code:
Code:
Call ShockwaveFlash1.SetVariable("character.intHP", text4)
Call ShockwaveFlash1.SetVariable("character.intMaxHP", text4)
Test your project by clicking F5 and log in. type in 99999999 in the text box and click on the button, you should now have 99999999 HP.

Finding variablesThis is a basic guide line on how to make a DF trainer. but now if you want to add your own hacks you have to find the variables for them. so what you need is a SWF decompiler. which you can get here:http://www2.sothink.com/download/swfdec.zipinstall it.
Look at the SWF below:
http://dragonfable.battleon.com/game/gamefiles/gameX_X_X.swfChange the X_X_X to the current game build.
Meaning if the current game build is 7.8.1 then change it to 7_8_1!!!
save this SWF by clicking the save pages as button in your browser.
decompile it with the decompiler you just downloaded and search for variables.
If you can't find anything please click the thread below for more hacks:
df-trainer-vaiables-t122.html#p346
if you have any questions, you can PM me and I'll try to help you out as much as i can. I hope you enjoyed this tut and hopefully it helped you out.
+rep would be great for writing this tut.
