All treasure chests broken

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
Metalfiiish
Developer
Posts: 176
Joined: Tue Jul 31, 2012 7:21 am

All treasure chests broken

Post by Metalfiiish » Wed Oct 10, 2012 5:01 am

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?
Attachments
Capture.PNG

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: All treasure chests broken

Post by whasf » Wed Oct 10, 2012 5:43 am

the variable "zone" isn't defined in the script..

Code: Select all

local zone = player:getZone();
-- Whasf

Metalfiiish
Developer
Posts: 176
Joined: Tue Jul 31, 2012 7:21 am

Re: All treasure chests broken

Post by Metalfiiish » Thu Oct 11, 2012 12:09 am

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

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: All treasure chests broken

Post by bluekirby0 » Fri Oct 12, 2012 1:40 pm

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.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: All treasure chests broken

Post by whasf » Fri Oct 12, 2012 5:21 pm

Can always print() or printf() the result and see if it's what you're expecting...
-- Whasf

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: All treasure chests broken

Post by PrBlahBlahtson » Fri Oct 12, 2012 5:38 pm

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. :oops:

Flunklesnarkin
Posts: 238
Joined: Wed Sep 05, 2012 10:48 am

Re: All treasure chests broken

Post by Flunklesnarkin » Fri Oct 19, 2012 6:24 pm

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.

Post Reply