Gani's and parameters

Make a gani of a closed chest.
Make a gani of the chest opening with the item raising out of it, and the item being set by a parameter and make this gani setbackto the opened chest gani.
Make a gani of the opened chest.
And as far as gs1/2 goes... you posted in the gs2 forums but posted a gs1 script.
For setting the sword power there's a command for it,
PHP Code:
setsword sword4.png,4;
I think that's it.
As for the chest code itself... in GS1 with gani's it'd be something like:
PHP Code:
//CLIENTSIDE
if (created||playerenters) {
setstring this.chest,chest_#L-#v(x)-#v(y);
if (strcontains(#s(this.chest),#s(client.openedchests))) setcharani chest_opened,;
else setcharani chest_closed,;
setstring this.itemimg,sword4icon.png;
}
if (playertouchsme && !strcontains(#s(this.chest),#s(client.openedchests))) {
if (int(playerx+.5)==x && int(playery-1)==y) {
setcharani chest_open,#s(this.itemimg);
setsword sword4.png,4;
addstring client.openedchests,chest_#L-#v(x)-#v(y);
}
}
I don't know gs2 and I can't help with the serverside stuff, but that should be enough to help you in the general direction.