Portal   Shop   Arcade   Register    Login    Forum    Search    FAQ

Dragonfable Trainer     Mechquest Trainer     PKDG Starter's Guide     VIP Upgrade     Get our Toolbar!     Runescape Cheats 


Board index » Game Talk » AE Games » Dragonfable




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Tutorial] Using conditional checks
PostPosted: August 4th, 2009, 9:03 am 
Offline
PK Admin
PK Admin
User avatar

Joined: February 20th, 2008, 4:30 pm
Posts: 2187
PKDG Gold: 5849
Donate
Reputation: 59


Location: The hood
Highscores: 14
Favorite Style: PK Ultimate
How'd you find us: I created this site!
This tutorial will show you how to add conditional checks in your swf projects so things won't just happen all at once.

NOTE: If you don't know how to create swf projects this isn't the guide for you.

IF functions help you trigger events(vars) at a certain time, when a goal is acheived.
e.g
If a quest is completed(goal) then the quest finish screen pops up(event).

So a typical conditional check will look like this:
Code:
            if (objTarget.status == "SUCCESS")
            {
                _root.character.origStats.intStr = 0;
                _root.character.origStats.intInt = 0;
                _root.character.origStats.intDex = 0;
                _root.character.origStats.intEnd = 0;
                _root.character.origStats.intLuk = 0;
                _root.character.origStats.intCha = 0;
                _root.conn.subtractMoney(2, 1000);
                _root.game.player.resetStats();
                _root.game.player.refreshStatusBar();
            } // end if


This script is saying if you reached the status object SUCCESS then the events below will be triggered.
Code:
reseting all your stats to 0
subtracts money from your gold amount
refresh your stats
refresh your status bar


as you can see this is the code for untrain all stats
So if you want to put this in a trainer then extract the useful vars:
Code:
       _root.character.origStats.intStr = 0;
                _root.character.origStats.intInt = 0;
                _root.character.origStats.intDex = 0;
                _root.character.origStats.intEnd = 0;
                _root.character.origStats.intLuk = 0;
                _root.character.origStats.intCha = 0;


remove the _root part and viola, you have just successfully extracted a variable.


But you still need to learn how to use conditional checks, here is the format:

Code:
if (condition here,trigger)
{
the event here
}// end if(commands end of conditional check)


I use a lot of conditional checks in both PKDF and PKMQ(e.g in the load shop buttons I need to use the conditional check on release) they can prove very useful and will get you VERY far in trainer making.

_________________
TOP Runescape Guides
Runescape F2P gold Guide
Fist of Guthix Guide
Runescape PvP Guide
Guide to 99 Prayer

______________________________________________
To download the highest versions of PKDF and PKMQ become a VIP!
Click here to find out how!

Image
You like Pkdude Games?I like donations.Donate now:

Pkdude's stats:
ATK(Attack) = 29
DEF(Defence) = 16
STA(Stamina) = 14
LUK(Luck) = 14
Item Shelf


Top
 Profile E-mail  
 
 Post subject: Re: [Tutorial] Using conditional checks
PostPosted: August 28th, 2009, 11:50 pm 
Offline
Forum Staff
Forum Staff
User avatar

Joined: June 26th, 2009, 12:57 am
Posts: 757
PKDG Gold: 5925
Donate
Reputation: 28


Location: At home, hackin you
Favorite Style: PKU Black
How'd you find us: youtube
very helpful thanx PKDude

_________________
Image

Image Image
Image
Item Shelf


Top
 Profile E-mail  
 
 Post subject: Re: [Tutorial] Using conditional checks
PostPosted: August 29th, 2009, 8:54 am 
Offline
PK Admin
PK Admin
User avatar

Joined: February 20th, 2008, 4:30 pm
Posts: 2187
PKDG Gold: 5849
Donate
Reputation: 59


Location: The hood
Highscores: 14
Favorite Style: PK Ultimate
How'd you find us: I created this site!
Aye, but since hackers want to load an instance or function right away
conditional checks are rarely used.
unless you are coding a whole entire action script.
Which I did on the flash start button.

_________________
TOP Runescape Guides
Runescape F2P gold Guide
Fist of Guthix Guide
Runescape PvP Guide
Guide to 99 Prayer

______________________________________________
To download the highest versions of PKDF and PKMQ become a VIP!
Click here to find out how!

Image
You like Pkdude Games?I like donations.Donate now:

Pkdude's stats:
ATK(Attack) = 29
DEF(Defence) = 16
STA(Stamina) = 14
LUK(Luck) = 14
Item Shelf


Top
 Profile E-mail  
 
 Post subject: Re: [Tutorial] Using conditional checks
PostPosted: September 5th, 2009, 10:34 am 
Offline
VIP
VIP

Joined: August 29th, 2009, 3:15 pm
Posts: 32
PKDG Gold: 5
Donate
Reputation: 0


How'd you find us: looking for trainers
are these for when you make a trainer if they are could ya give the the url to make me own trainer


Top
 Profile E-mail  
 
 Post subject: Re: [Tutorial] Using conditional checks
PostPosted: September 5th, 2009, 10:37 am 
Offline
PK Admin
PK Admin
User avatar

Joined: February 20th, 2008, 4:30 pm
Posts: 2187
PKDG Gold: 5849
Donate
Reputation: 59


Location: The hood
Highscores: 14
Favorite Style: PK Ultimate
How'd you find us: I created this site!
Yes this is for making a trainer.
and to learn how to make your own look in dragonfable trainers and tutorials.

_________________
TOP Runescape Guides
Runescape F2P gold Guide
Fist of Guthix Guide
Runescape PvP Guide
Guide to 99 Prayer

______________________________________________
To download the highest versions of PKDF and PKMQ become a VIP!
Click here to find out how!

Image
You like Pkdude Games?I like donations.Donate now:

Pkdude's stats:
ATK(Attack) = 29
DEF(Defence) = 16
STA(Stamina) = 14
LUK(Luck) = 14
Item Shelf


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Board index » Game Talk » AE Games » Dragonfable


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Dragonfable Trainer     Mechquest Trainer     PKDG Starter's Guide     VIP Upgrade     Get our Toolbar!     Runescape Cheats