guiismiti
Well-Known Member
- Joined
- May 19, 2014
- Messages
- 315
- Solutions
- 3
- Reaction score
- 68
Hello,
As the title suggests, I'm using TFS 1.2.
I've done a few tests, and, turns out that sending items to an empty depot does not work.
For it to work, after logging in, the player must either:
This is the code I have - the orange messages were used for testing
I have also used the DP of ID 13 (Yalahar) to test if there was something wrong with only the DP of ID 34.
So, the results - the test if(depotChest) is false if the DP is empty or if the player did not open it before the items were sent.
Any ideas on how to solve this?
Thanks in advance.
As the title suggests, I'm using TFS 1.2.
I've done a few tests, and, turns out that sending items to an empty depot does not work.
For it to work, after logging in, the player must either:
- open that DP before the items are sent; or
- have at least one item in the dp.
This is the code I have - the orange messages were used for testing
Code:
local depotChest = self:getDepotChest(34)
doCreatureSay(self, '1', TALKTYPE_ORANGE_1)
if(depotChest) then
doCreatureSay(self, '2', TALKTYPE_ORANGE_1)
depotChest:addItem(itemid, count, INDEX_WHEREEVER, FLAG_NOLIMIT)
end
depotChest = self:getDepotChest(13)
if(depotChest) then
doCreatureSay(self, '3', TALKTYPE_ORANGE_1)
end
So, the results - the test if(depotChest) is false if the DP is empty or if the player did not open it before the items were sent.
Any ideas on how to solve this?
Thanks in advance.