I tried your script Tricxta but it did not work, I'll show you what happened to me with a gani you probably have because I found it in a server so you can test it.
PHP Code:
// Graal2002 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #P1,ce_chicken-white.png;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
setcharani ce_chicken_walk,;
this.speed = 0.4;
canbecarried;
timeout = 0.05;
}
if (timeout){
if (this.runCount <= 0){
dir += int(random(0,3));
this.runCount = random(4,10);
}
if (onwall(x+1.5+vecx(dir)*2,y+2+vecy(dir)*2))dir = int(random(0,3));
else {
x += vecx(dir)*this.speed;
y += vecy(dir)*this.speed;
this.runCount -= this.speed;
}
timeout = 0.05;
}
if (wasthrown)setcharani ce_chicken_walk,;