• Log in or sign up for an account here: https://www.sythe.org/login

HP MP Autopot for MapleStory

guildkiller

Newcomer
Joined
Dec 16, 2010
Sythe Gold
0
Messages
1
So I just started looking at how to use scar today from a friend suggesting it might help with some of the games I play. I am trying to use it on a game maplestory to automatically use my potions. Here are the pics of the hp and mp. The 2nd shows that it changes color slightly when the hp gets low and gives me a warning.
hpmp0.jpg

hpmp1.jpg


I saw two ways of going about this. Either having it detect that red/blue is no longer at the particular position when I want it to use a potion or to detect there is now a grey color. I was not sure which would be a better choice. I'm not sure if FindColor is the best way to go about this as well. I have been reading tutorials but it has been tricky to find what I'm looking for since I am unsure what to type, since I don't always know the commands I want.

//HP pixel range is from 257-394 long and 765-776 tall so (x -257) /137 =the% OR (the%*137)+257=x
{10% 271
20% 284
30% 298
40% 312
50% 326
60% 339
70% 353
80% 367
90% 380}

//MP pixel range is from 426-563 long and 765-776 tall so (x -426) /137 OR the%*137+426=x
{10% 440
20% 453
30% 467
40% 481
50% 494
60% 508
70% 522
80% 536
90% 549}



I have written this much on my own. I only started with the hp in order to make sure it worked properly. This way did not work for me but did compile just fine. It just sat there like nothing was running.
Code:
program AutoPotter;            //This is an AutoPotter for the game
                               //MapleStory v93, this was created for the BigBang
                               //patch with a 1024x768 resolution active
var
     x,y: Integer;
const
     HP= 2697513;
     //~80% Color Picked: 2031756 at (376, 771)
     //~70% Color Picked: 4264431 at (355, 769)
     //~50% Color Picked: 3342557 at (320, 772)
     //~10% Color Picked: 3342574 at (274, 770)
     
     //first attempt didnt work, trying by detecting if grey
     //Color Picked: 2697513 at (325, 770)
MP= 16759586;
     //~75% Color Picked: 16759586 at (528, 772)
     //~40% Color Picked: 16759586 at (489, 773)
     //~10% Color Picked: 16759586 at (442, 771)
begin
  repeat
    if(FindColor(x,y,2697513,324,769,326,771))then
      begin
          SendKeysWait('a',500,500);
      end
  until (false);
end.


Earlier I tried this code, which just was using my potions up even when I wasn't low on hp. This one was based off detecting red. The other detecting gray.
Code:
program AutoPotter;            //This is an AutoPotter for the videogame
                               //MapleStory, this was created the patch directly after BigBang with a
                               //1024x768 resolution active v93 I think
var
     x,y: Integer;
const
     HP= 3342557;
     //~80% Color Picked: 2031756 at (376, 771)
     //~70% Color Picked: 4264431 at (355, 769)
     //~50% Color Picked: 3342557 at (320, 772)
     //~10% Color Picked: 3342574 at (274, 770)
MP= 16759586;
     //~75% Color Picked: 16759586 at (528, 772)
     //~40% Color Picked: 16759586 at (489, 773)
     //~10% Color Picked: 16759586 at (442, 771)
begin
  repeat
    if(FindColor(x,y,HP,319,771,321,773))
    then begin
       //nothing
    end
      else begin
          SendKeysWait('a',500,500);
      end
  until (false);
end.

Any help would be appreciated. I find it funny that I started off by making a script to detect a monster and atk it earlier today; but I can't get an autopot to run when it seems like a much simpler program.
 
Runescape Gamblingrunescape gambling
Back
Top