[Question] How to delete a certain animation of a mob

11/12/2016 17:42 asdfg177#1
Hi,

I am working on a pixelbot for easy tasks like auto hunting. I am trying to prepare the client to work well with my image recognition. I now have the following problem.
In the best case I want mobs to show on the screen as their hitbox in a certain color. By renaming \data\Monster\Clothes\Tex folder the mobs changing to color pink which is great already.
But the problem is that when mob dies it sinks to the ground and its color disappears after like 5 secs which is quite long. So the bot could not detect that this is actually a dead monster. My idea was to just delete the death animations. For this is wrote a little python script to move all those files in \data\Monster\Motion to another folder
This looks first like its working but then you can see that the hitbox doesnt disappear so after a while the bot gets stuck inside a wall of dead mobs ..lol

P.S. we assume that we dont have tab/autoattack (older engine) so detecting a dead mob is a problem.

Anybody got an idea of what im missing to do? Thanks in advance

Update1: My current solution is setting the animations of all monsters to their corresponding Idle animation. This works ok so far but still 1 sec delay of texture to disappear after monster death. If u wanna test it run this script in data\Monster\Motion\
11/12/2016 18:00 pamz12#2
you could detect the pixel colour on the mob hp bar (in UI) and go on from that

so when hp bar is not red -> do smth
11/12/2016 18:09 asdfg177#3
Quote:
Originally Posted by pamz12 View Post
you could detect the pixel colour on the mob hp bar (in UI) and go on from that

so when hp bar is not red -> do smth

Assume that i cannot use tab/autoattack (older engine). So everything is purely pixel based, mob detection as well. I go more in detail of my image recognition: i split my screen into parts of 50x50 pixels. I iterate in a spiral around my player starting from the player position and once the the 50x50 area is close to the given picture it will send a click to the kalonline window.
So if the mob dies it has to disappear completely to make it work smoothly.
11/14/2016 00:07 Staviko#4
Did you read what pamz12 wrote to you ?

Quote:
you could detect the pixel colour on the mob hp bar (in UI) and go on from that

so when hp bar is not red -> do smth
When your bot click on dead monster you check if monster hp full ,

pseudo code :

if(getMonsterHPColor()!=MonsterHPFullColor)
{
lookForMonster(); // choose other 50*50 parts differnet from this one where dead monster...
}else{
killMonster();
}


here is my old newb pixelbot from 2010 in work lol nice memories :