Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Amakna's Anit-Botting Security Measures, Things every Dofus scripter should know!
post Apr 15 2009, 02:15 PM
Post #1

n8t3d0gg



SCAR Coder
****

Group: Members
Posts: 82
Joined: 29-February 08
Member No.: 576,597






Hey guys N8t3D0gg again, this time I wanted to go over Amakna's security features implemented into the game to "prevent" botting and how to get around them. This will be fairly simple as Amakna has done a really bad job at it quite honestly.

Many of you may be familiar with SCAR's FindColorTolerance procedure, and if you are not, it is just like the FindColor procedure but gives you the option to express a color tolerance (if you don't know what color tolerance is google it smile.gif ). This procedure was added to SCAR to get around one of RuneScape's Anti-Botting measures which causes the games colors to change by a small margin.

Amakna copied this security feature and increased the margin by which the colors change. They increased it by such a large amount that it renders the FindColorTolerance procedure useless because the tolerance would need to be set so high to capture all the color possibilities that SCAR would mistake other objects on the screen as the desired target.

To get around this we need to be specific! We need to tell SCAR exactly what colors to look for. Lets look at an example :

Say we are creating a script that farms wheat. So lets select our wheat color.


I normally like to go with the brown part of the plant just because its easy to distinguish, but you could choose any part of the wheat plant so long as you keep track of the co-ordinates at where you selected it.

So using the color picker tool I'm given the information :

Color Picked: 614299 at (182, 597)

So lets add this to our function that will identify our wheat.

CODE
function wheat_exists : boolean;

begin

  if(FindColor(x, y, 614299, 0, 0, 1024, 768))then result:= true

end;


Now comes the fun part. This consumes MOST of my time when scripting. Dofus changes color shades a total of 10 times! So throughout the day AND night you'll need to log on and check to see if the color at our co-ordinates (182, 597) has changed from 614299 and add it to the function.

Eventually your function will look like...

CODE
function wheat_exists : boolean;

begin

  if(FindColor(x, y, 614299, 0, 0, 1024, 768)) or if(FindColor(x, y, 2nd Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 3rd Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 4th Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 5th Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 6th Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 7th Color 0, 0, 1024, 768)) or if(FindColor(x, y, 8th Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 9th Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 10th Color, 0, 0, 1024, 768)) or if(FindColor(x, y, 11th Color, 0, 0, 1024, 768))then result:= true

end;


Now your script will accurately find the wheat at all times.

**REMEMBER** 10 is the magic number!

Okay, so we now know that the color display on Dofus changes 10 times. Not everything displayed actually changes colors however! This is critical to know as well as it will spare you from a lot of headaches.

Take a look at this image :


Everything contained in the red boxes does not change color. This includes monsters, npcs, your character, other characters, any pop up windows such as your inventory or a level up message, and items.

The most important things for us, way points, plants, trees, water, ore do change color.

Hope everyone is able to take something from this short tutorial.
Happy Scripting! wink.gif

UPDATED:
** Characters and Monsters are effected by the color change!**
Go to the top of the page
 
+Quote Post
post Apr 15 2009, 02:15 PM
Post #

Elite Membership


To get the most out of MmorpGuides.com, please view the following information.












Already a Member?

With an Elite Membership you can. . .

  • Reach the highest levels in no time
  • Have one of the most powerful characters in your game
  • Become a valuable member of your clan or guild
  • Become part of a caring and helpful community of gamers

Elite Members enjoy. . .

  • 1,660+ Cheats - tons of working, high quality cheats
  • 1,550+ Guides - We have one of the most comprehensive collections of guides on the net
  • 539+ Bots and macros - Level up quickly, even while you sleep!
  • A chance to win free prizes such as an amazing Playstation 3! And free gold and powerleveling!

No risk, only huge benefits!

  • Your investment can pay for itself in days!
  • Earn gold that you can trade for real money
  • Sell your high level items and characters for a profit!
  • Get tons of expensive guides and cheats in one spot for one small price

Money Back Guarantee!

Not 100% satisfied? We have a 24 hour, money-back guarantee! Contact us for a prompt and courteous refund!

Upgrade to an Elite Membership now!

Not A Member?

Join today and get access to all these great features!

  • Access to newly submitted cheats and guides
  • Download newly submitted bots and macros
  • Chat about your favorite game
  • Submit working content for a FREE Elite Membership!
  • And lots more!
Register Today!
Go to the top of the page
 
Quote Post
post May 5 2009, 07:11 AM
Post #2

margreg



SCAR Coder
Group Icon

Group: Elite Members
Posts: 184
Joined: 26-April 09
Member No.: 893,649






is this color change things also work in mines ?
what i mean is iron color and fighting iron anti bot monsters - do them also change colors during the day like it is with wheat ??
wheat change color as u said 11 time ( didn't check this for myself, only a few color change inside my scripts), but also when u fight monsters, they also change colors and even your own color is changing.
Does it happends inside mines ?
mine fighting and iron color changing ???
Go to the top of the page
 
+Quote Post
post May 5 2009, 12:54 PM
Post #3

n8t3d0gg



SCAR Coder
****

Group: Members
Posts: 82
Joined: 29-February 08
Member No.: 576,597






QUOTE(margreg @ May 5 2009, 07:11 AM) *
is this color change things also work in mines ?
what i mean is iron color and fighting iron anti bot monsters - do them also change colors during the day like it is with wheat ??
wheat change color as u said 11 time ( didn't check this for myself, only a few color change inside my scripts), but also when u fight monsters, they also change colors and even your own color is changing.
Does it happends inside mines ?
mine fighting and iron color changing ???


Yes there is one exception to the rules. I don't believe Amakna did this on purpose either, there just kinda dumb laugh.gif. In mines, you do not have 11 different possible color shades like you do normally. There are only two! The second one appears (and it effects monsters, your character, npcs, etc...) whenever you finish a fight.

To make that more clear... enter a mine, and there you have your first set of colors, everything as it would appear when you enter it. Get in a fight, finish the fight, and now the room will be a different color shade.

It is important to note that this does not always happen, but there is only 2 color shades you need to worry about in mines.

Another exception to mines... lanterns! Yes lanterns actually produce a color overlay on objects changing there color. So if there is a lantern shining on a waypoint, the color will be different where the light hits it.
Go to the top of the page
 
+Quote Post
post May 5 2009, 02:01 PM
Post #4

margreg



SCAR Coder
Group Icon

Group: Elite Members
Posts: 184
Joined: 26-April 09
Member No.: 893,649






Thanks man that helps a lot.
I will reconfigure my script now grin.gif
Go to the top of the page
 
+Quote Post
post Aug 11 2009, 06:45 AM
Post #5

lilwitte



SCAR Coder
Group Icon

Group: Elite Members
Posts: 318
Joined: 22-June 09
From: Deep in my Coding Cave. But don't feel bad! After all, it's on the darkside, and we have cookies!
Member No.: 934,937






NPCS, Players, and Monsters seem to now be changing colors (NPCS on the map he showed do change colors in Oto Mustam and Solar I confirmed and so do monsters, I assume also that players change with them as to not break the game's "harmony" feeling)


--------------------
SCAR Coder

DofusBaseV1
[||||||||||]

Want to make progress bars like me?
CODE
use this base one as an example!
[[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]
Go to the top of the page
 
+Quote Post
post Oct 5 2009, 01:16 PM
Post #6

n8t3d0gg



SCAR Coder
****

Group: Members
Posts: 82
Joined: 29-February 08
Member No.: 576,597






QUOTE(lilwitte @ Aug 11 2009, 06:45 AM) *
NPCS, Players, and Monsters seem to now be changing colors (NPCS on the map he showed do change colors in Oto Mustam and Solar I confirmed and so do monsters, I assume also that players change with them as to not break the game's "harmony" feeling)


Yes, Ive observed this as well. Ive currently working on 'cracking' how the color changing works. This is probably the biggest deterrent for scripting for Dofus because it takes such a long time to get all the colors.
Go to the top of the page
 
+Quote Post
post Oct 8 2009, 11:43 AM
Post #7

harjukki



In Training
**

Group: Members
Posts: 16
Joined: 22-September 09
Member No.: 1,006,049






dofus cant get enough color chancing toget us stop botting ;D
Go to the top of the page
 
+Quote Post
post Nov 4 2009, 10:23 PM
Post #8

huracan89



Newbie
*

Group: Members
Posts: 1
Joined: 4-November 09
Member No.: 1,037,278






i'm sry but hwo did you get 6 numbers in your color number i always get 7 for some reason... even the color picker says its 7 unsure.gif
Go to the top of the page
 
+Quote Post
post Nov 9 2009, 02:44 AM
Post #9

Babek



In Training
**

Group: Members
Posts: 6
Joined: 4-November 09
Member No.: 1,036,996






These things make my head hurt aren't there any working scripts? where I can just add and click play?
I've been through the free forums and no one ever shows or completes anything, and where I see questions I want to know the answer to the replies are always search the forum.... searching obviously does not give any results like my problem getting scar to click the wheat, the cursor hovers over the wheat but doesn't actually click I've seen 3-4 of this question and either there's no reply or it's I'm sure I've seen the answer to this somewhere on the forum search for it....
Go to the top of the page
 
+Quote Post
post Nov 9 2009, 04:02 AM
Post #10

lilwitte



SCAR Coder
Group Icon

Group: Elite Members
Posts: 318
Joined: 22-June 09
From: Deep in my Coding Cave. But don't feel bad! After all, it's on the darkside, and we have cookies!
Member No.: 934,937







Your Answer to no click: "Add In - 3rd Most Common - You didnt turn silent mouse off!"
the silent mouse option is an option within SCAR itself, i dont know where it is, but search all the options... I no longer have my all-knowing and awesome devoted SCAR PC... it crashed for no apparent reason and boots to a BSOD... im slowly recovering some of my scripts from this site and puting them on a pendrive with a SCAR portable and will get back to coding again in a few weeks...


--------------------
SCAR Coder

DofusBaseV1
[||||||||||]

Want to make progress bars like me?
CODE
use this base one as an example!
[[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]
Go to the top of the page
 
+Quote Post
post Nov 9 2009, 05:46 AM
Post #11

margreg



SCAR Coder
Group Icon

Group: Elite Members
Posts: 184
Joined: 26-April 09
Member No.: 893,649






QUOTE(Babek @ Nov 9 2009, 02:44 AM) *
These things make my head hurt aren't there any working scripts? where I can just add and click play?
I've been through the free forums and no one ever shows or completes anything, and where I see questions I want to know the answer to the replies are always search the forum.... searching obviously does not give any results like my problem getting scar to click the wheat, the cursor hovers over the wheat but doesn't actually click I've seen 3-4 of this question and either there's no reply or it's I'm sure I've seen the answer to this somewhere on the forum search for it....


Working scripts are in the elite section of this forum.
If you just looking for a simple gatherer script, you may use the script I made in the tutorial section of this forum. It explains how to write simple wheat farmer, and if you correct color section in it you may see how it works and gathers wheat. Beleave me it works, it is the most simple script ever grin.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 


> Board Footer
Time is now: 21st March 2010 - 03:36 PM