Page 1 of 1
All treasure chests broken
Posted: Wed Oct 10, 2012 5:01 am
by Metalfiiish
I was looking into bug 270 (not really a bug rather not implemented but was doing it anyway). I went to copy scripts from other treasure chests but it appears none of them are working. Every chest breaks when you trade the chest key (not coffers, hadn't tried those). I tested the one I made for giddeus, the one that was already made for castle oztroja and the delfkuts tower chests. I have attached a screenshot of the error that is received via the console AND the line that it is choking on. As far as I can tell this has NEVER worked (looking through revisions of all chests). Can anyone check it out?
Re: All treasure chests broken
Posted: Wed Oct 10, 2012 5:43 am
by whasf
the variable "zone" isn't defined in the script..
Re: All treasure chests broken
Posted: Thu Oct 11, 2012 12:09 am
by Metalfiiish
Well I had tried that but it doesn't appear to fix it. I believe the "..zone.." is a database file maybe? as it says in eror "trying to concatenate 'zone' a nil value.."
I'm not sure what database table its checking will go look
Re: All treasure chests broken
Posted: Fri Oct 12, 2012 1:40 pm
by bluekirby0
Hmm...those are some weird concatenation methods in use there (I'm not an LUA expert so I can't say whether that is right or wrong, but maybe some of those quotes need to be escaped?)...I'd try taking a look at the coffer scripts and see what differs. AFAIK coffers have worked for a long tine and chests have never worked.
Re: All treasure chests broken
Posted: Fri Oct 12, 2012 5:21 pm
by whasf
Can always print() or printf() the result and see if it's what you're expecting...
Re: All treasure chests broken
Posted: Fri Oct 12, 2012 5:38 pm
by PrBlahBlahtson
Hmm, odd. I added these lines and didn't run into this issue.
Code: Select all
@line 45
zone = player:getZone();
print("Zone set: "..zone);
...
@line 67
print("Zone about to be used!");
I didn't use local, since I was just testing. I did go back and set to local though, just to verify.
However, I got this text message:
What story would you like to be told?
On second thought, maybe later.
Blade of Evil.
Obtained 7205 gil.
Guessing the message is just because the script needs to be refined somehow, or the TextID doesn't match for my client version.
The char_var was also successfully set. idk what I did differently.

Re: All treasure chests broken
Posted: Fri Oct 19, 2012 6:24 pm
by Flunklesnarkin
I opened a Giddeus Treasure Chest today and I noticed the Gil Reward is much too high.
I had a key on my two characters and the first time I received 9216 gil and the second time I received 8699 Gil. That kind of gil reward is more in line with a treasure coffer.
For Giddeus it should be around 800 to 1600 gil
Here is a pretty good reference for the amount of gil each chest / coffer should give out as a reward and also the spawn locations.
http://wiki.ffxiclopedia.org/wiki/Treas ... ffer_Guide
I also noticed that the Treasure Chest did not despawn when opened.
Another thing I noticed was that the Gil from the chest was not split among the group.