Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.