View Single Post
  #13  
Old 03-31-2007, 10:11 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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)==&& 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.
Reply With Quote