View Single Post
  #20  
Old 06-19-2012, 12:33 AM
E_Man E_Man is offline
E-Man
E_Man's Avatar
Join Date: Jun 2012
Posts: 81
E_Man will become famous soon enough
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 {
    
+= vecx(dir)*this.speed;
    
+= vecy(dir)*this.speed;
    
this.runCount -= this.speed;
  }

  
timeout 0.05;
}

if (
wasthrown)setcharani ce_chicken_walk,; 
Reply With Quote