Syntax
2012-12-03 08:47:31
Hi guys, I'm making an AIO fighting script at the moment. I've done the eating, prayer and somewhat prayer. The abilities are annoying to script, using momentum with it spamming a couple abilities to get it to momentum. Anyone know a method to get the script to know when the monster is dead?
Thank you greatly :)
You could try:
repeat
Wait(100);
until(not SRL_InFight);
It was pretty good for knowing when the fight was over when I used it before EOC, don't know if it needs updating though.
footballjds
2012-12-03 10:57:09
Idk if i should tell you a helpful secret… But I'll allude to it ;)
If you go to the combat tab when you're in a fight it tells you the monsters name. When the monster is dead, it immediately changes to the default "no target" or similar.
^To make it more obvious: Use a DTM
footballjds
2012-12-03 11:17:42
From: BMWxi
^To make it more obvious: Use a DTM
NO. the shadow of the text is a specific static color. You can ensure 100% accuracy if you use GetColor at a specific coordinate. Don't over complicate things you don't need to ;)
KISS(keep it simple stupid)
From: footballjds
NO. the shadow of the text is a specific static color. You can ensure 100% accuracy if you use GetColor at a specific coordinate. Don't over complicate things you don't need to ;)
KISS(keep it simple stupid)
Alright, you're right, that would be simpler.
And yeah, I remember KISS from Man vs Wild :D
cause
2012-12-03 13:01:18
Nice catch with the static colour football! Finding that one specific colour vs a DTM is also going to be substantially faster than a DTM and easier on your CPU (if that matters to you).
footballjds
2012-12-03 13:52:39
From: cause
Nice catch with the static colour football! Finding that one specific colour vs a DTM is also going to be substantially faster than a DTM and easier on your CPU (if that matters to you).
Thank you thank you ;)
and yes, CPU matters a lot to me. This 5 yr old laptop :fiery:
Roflme
2012-12-03 18:05:13
You may want to also have it search above the monster for a red health bar, unless you want it to wait for the monster to disappear before trying to attack another monster. If you have it to detect you're out of a fight when it says "no target" then it may click the dying monster. If you can detect the health bar above it that means its dying and to not click that monster.
Just thought of another possible way: when the monster dies you receive xp, so you could check for that.
Syntax
2012-12-04 03:18:20
From: BMWxi
Just thought of another possible way: when the monster dies you receive xp, so you could check for that.
This is what I did and verify it works :D Thanks to all the others who commented as well.