Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.