Group: Elite Members
Posts: 183
Joined: 26-April 09
Member No.: 893,649
Easy Helper
Description:
This script helps main character to increase prospecting by joining another character into the fight. Script automatically join fights and finishes them. It works perfect with another script that may auto fight monsters. It is good for those people who have farming resources scripts. To start the script you have to make appropriate changes in constant part of the script
CODE
{ This script helps my main character to gather more resources, by joining another character of mine into the fight. What it actually do is searching for join fight symbol, then it joins the fight, clicks on ready button and waits for finish fight button. } program Easy_Helper; var x, y, fin_x, fin_y : integer; const join_fight = 1591175; // color of join fight symbol area_xu = 9; // upper X coordinate join fight search area area_yu = 55; // upper Y coordinate join fight search area area_xd = 733; // lower X coordinate join fight search area area_yd = 475; // lower Y coordinate join fight search area ready_x = 698; // X coordinate ready button ready_y = 454; // Y coordinate ready button
//_______________ finishing fight color and coordinate configuration _______________
procedure join; begin if(findcolor(x, y, join_fight, area_xu, area_yu, area_xd, area_yd))then begin movemousesmooth(x+4,y+4); // click on symbol to join fight wait(100+random(200)); holdmouse(x+4,y+4,true); wait(20+random(50)); releasemouse(x+4,y+4,true); wait(500+random(200));
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
just reading what it "should" do (don't have a second machine atm to test it out and dont ahve my virtual PC set up from lack of memory) sounds like you need a failsafe in-case it joins the wrong fight and gets kicked out by the other people!
--------------------
SCAR Coder
DofusBaseV1 [||||||||||]
Want to make progress bars like me?
CODE
use this base one as an example! [[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]
Group: Elite Members
Posts: 183
Joined: 26-April 09
Member No.: 893,649
You are right. It is just the places where I farm none come to there, and even if someone comes, my chars cleared the hole map by then, and when group of monsters appear, it is my char who come to them first And even if it will happen and my alt will join someones fight, it doesn't matter, it will gather the resource just for being in that fight too, and this won't happen regularly, so they will just leave this place or make it impossible to join their fights
About virtual PC, I am farming with my alts on main operating system, without virtual PC installed. I just run 2 dofus clients and 2 scar clients and it works fine.
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
lol, can i use this:
CODE
Procedure JoinFight; var x,y:integer const join_fight = 123456; // color of join fight symbol ready_x = 100; // X coordinate ready button ready_y = 100; // Y coordinate ready button begin if(findcolor(x,y,join_fight,0,0,600,800)))then begin mouse(x+2,y+2); Click; mouse(x+10, y+10); Click; mouse(ready_x,ready_y); Click; end; end;
procedure FinishFight; var x,y:integer begin if(findcolortolerance(x,y,25087,429,226,542,411,10))then begin mouse(x,y); Click; end; end;
provided I'm going to still add you to the credits list in the top of the file! i coudl use some "real" numbers for the constants in the first procedure! please and thank you =D
--------------------
SCAR Coder
DofusBaseV1 [||||||||||]
Want to make progress bars like me?
CODE
use this base one as an example! [[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]
Group: Elite Members
Posts: 183
Joined: 26-April 09
Member No.: 893,649
I will edit real numbers in the constant part of the script as soon as I come back home I will also edit the script as it was evolved to more stable script when it joins the fight and interracts with fighter script.
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
lol, all I care is so i can make m finishing touches into DofusBassXX.scar apply them to DofusBase.scar V1 and then make my "poster child" scripts and get ready for releasing another update
--------------------
SCAR Coder
DofusBaseV1 [||||||||||]
Want to make progress bars like me?
CODE
use this base one as an example! [[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]