PHP Code:
function onActionProjectile(){
if(params[0] == "fireball"){
if(this.attr[5] == null){
this.attr[5] = "wheat_fire.gani";
scheduleevent(9, "onStop");
}
}
}
function onCreated(){
this.setimg("corinthia_wheat.png");
this.setshape(0, 32, 32);
this.maker = null;
}
//Then there is some chopping down code for harvesting wheat
//#CLIENTSIDE
function onCreated(){
this.setshape(0, 32, 32);
}