I would think the watering can would just be...
PHP Code:
if (onwater(x,y)&&weaponfired)
{
setani ganifill,;
this.waterfill=4;
}
if (weaponfired&&!onwater(x,y))
{
setani gani water,;
this.waterfill-=1;
}
if (weaponfired&&!onwater(x,y)&&this.water=0)
{
setani gani canempty,;
}
With the tree, there would be a couple lines similar to...
PHP Code:
if (playertouchsme&&strequals(#m,water))
{
this.watered++;
}