Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-04-2006, 08:40 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Tree Chopping?

PHP Code:
// Made by Kaidenn

// This is an example. Please rescript

function onCreated() {
  
setshape(14848);
  
this.life 5;
  
this.maxlife 5;
  
setcharani(NULLNULL /* whatever you use*/);
}

function 
onActionAxeHit() {
  if (
this.life 0) {
    
this.life--;
    
// set your gani in some weird step script
  
} else {
    
setTimer(10);
  }
}

function 
onTimeout() {
  
onCreated();
}

//#CLIENTSIDE

function onCreated() {
  
setshape(13232);

Ok FIRST AND FOREMOST. I DID NOT START THIS SCRIPT. I WOULD JUST LIKE TO KNOW HOW TO COMPLETE IT. IT WAS MADE FOR MY SERVER. It's supposed to go like this showimg in between axe swings then after a certain number it's supposed to play a gani of the tree falling. Where and what do I write to make this so in this script? Help please?
Reply With Quote
 


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 07:56 AM.


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