Building a Club Penguin Trainer in Visual Basic

TIME : 2016-01-07
Building a Club Penguin Trainer in Visual Basic

This walkthrough dates from February 2011, when Club Penguin was still online, so treat it as a historical how-to rather than something you can use today. The same approach, though, is a decent introduction to building a simple trainer in Visual Basic.

What you need

Visual Basic 6 or Visual Studio 2010, available from Microsoft's Express downloads page: https://www.microsoft.com/express/Downloads

Setting up the form

Start a new project, then click the blank form and change its Text property in the Properties panel to whatever you want to call your trainer. Shockwave Flash is not part of the default VB 2010 toolbox, so right-click the toolbox, choose Choose Items, open the COM Components tab, tick Shockwave Flash Object and confirm.

Drag the Shockwave Flash control onto your form. In its properties set AllowFullScreen to true, AllowNetworking to internal, Base to https://play.clubpenguin.com/ and Dock to Fill.

Loading the SWF

Save a loader SWF into a folder named after your trainer, then point the Shockwave Movie property at that file, for example C:\Users\YourName\Desktop\YourTrainerName\loader.swf. If everything is wired up correctly, the game's login screen appears inside your form.

Adding the buttons

Drop a MenuStrip onto the form and type a label for each hack you want. Double-click a label and place your code in the generated Private Sub, for example:

On Error Resume Next
Call ShockwaveFlash1.SetVariable("_level1.shellContainer.ENGINE.my_room_movieclips.block_mc._x", "-5000")

That particular snippet is what the original guide used for a walk-on-walls style effect. Add more menu entries with their own variables and you have a working trainer. If nothing happens, the most common mistake is a wrong file path, so re-read the steps before assuming the method is broken.