All treasure chests broken
Forum rules
NO LONGER BEING MAINTAINED!
NO LONGER BEING MAINTAINED!
-
- Developer
- Posts: 176
- Joined: Tue Jul 31, 2012 7:21 am
All treasure chests broken
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
the variable "zone" isn't defined in the script..
Code: Select all
local zone = player:getZone();
-- Whasf
-
- Developer
- Posts: 176
- Joined: Tue Jul 31, 2012 7:21 am
Re: All treasure chests broken
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
I'm not sure what database table its checking will go look
-
- Developer
- Posts: 707
- Joined: Sun Jul 22, 2012 12:11 am
Re: All treasure chests broken
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
Can always print() or printf() the result and see if it's what you're expecting...
-- Whasf
-
- Developer
- Posts: 539
- Joined: Sun Jul 22, 2012 12:17 am
Re: All treasure chests broken
Hmm, odd. I added these lines and didn't run into this issue.
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.
Code: Select all
@line 45
zone = player:getZone();
print("Zone set: "..zone);
...
@line 67
print("Zone about to be used!");
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.

Test Server: Hanekawa | Fantasy World: Naito
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
-
- Posts: 238
- Joined: Wed Sep 05, 2012 10:48 am
Re: All treasure chests broken
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.
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.