fre
2010-06-01 11:54:08
I have the ID of the trees but i can't seem to find a good procedure for it.
2010-06-01 11:54:08
2010-06-01 12:03:29
2010-06-01 12:16:33
2010-06-01 12:19:34
From: fre
Yes that is a simple solution and that is how i have done it before.
But this is not sufficient.
When my player arrives at a tree that is already cut it dont animate
and it keeps searching for the tree
and i don't want to make a loop with tries
and if it fails after # ammount of tries it goes to find another tree.
This is not human like and waste time.
I just have to check if the tree is there or not.
I was thinking about this
[php]
Object1 := GetObjectByID(1309,0,10);
begin
if FindRSObject(Object1) then
begin
writeln('object is found')
end;
end;
[/php]
2010-06-01 12:21:37
2010-06-01 16:00:43
From: fre
Well i spend alot of time on a function to find out if i am cutting the tree and the tree
is chopped down, to notice this.
I succeed, but now i dont have a function to see if my player arrives and the tree is ALREADY chopped down. I don't like to mmouse to find the uptext because this is supsecious and not human like.
2010-06-01 16:54:07
2010-06-01 17:11:30
From: fre
That is what i am doing here?
[php]
Object1 := GetObjectByID(1309,0,10);
begin
if FindRSObject(Object1) then
begin
writeln('object is found')
end;
end;
[/php]
But this gives me an error in objects.simba
2010-06-01 17:38:31
2010-06-01 18:11:18
2010-06-02 11:07:26
Const
treeTile
treedIDCut
/--------------------------/
begin
object := getObjectAt(treeTile,0);
if object.ID = treeIDCut then
begin
writeln('tree is down :( ')
end else
begin
writeln('tree is not down :) ')
end;
end;2010-06-05 11:19:55