Hello,
I used tfs 1.4 8.6 nekiro downgrade. I have problem with saving items in depot and locker.
I used in event script this functions
When event ends winner get bag with items inside when i relog it's ok but when i put the items to depot or locker and relog i get errors.
@Nekiro
I used tfs 1.4 8.6 nekiro downgrade. I have problem with saving items in depot and locker.
I used in event script this functions
Lua:
local bag = winner:addItem(config.rewardBag, 1)
bag:addItem(reward.itemId, reward.count, INDEX_WHEREEVER, FLAG_NOLIMIT)
Code:
[Error - mysql_real_query] Query: INSERT INTO `player_depotlockeritems` (`player_id`, `pid`, `sid`, `itemtype`, `count` , `attributes`) VALUES (7, 1, 101, 2496, 1, ''),(7, 1, 102, 1988, 1, ''),(7, 1, 103, 2407, 1, ''),(7, 102, 104, 2539, 1 , '')
Message: Duplicate entry '7-103' for key 'player_depotlockeritems.player_id_2'
[Error - mysql_real_query] Query: INSERT INTO `player_depotlockeritems` (`player_id`, `pid`, `sid`, `itemtype`, `count` , `attributes`) VALUES (7, 1, 101, 2496, 1, ''),(7, 1, 102, 1988, 1, ''),(7, 1, 103, 2407, 1, ''),(7, 102, 104, 2539, 1 , '')
Message: Duplicate entry '7-103' for key 'player_depotlockeritems.player_id_2'
[Error - mysql_real_query] Query: INSERT INTO `player_depotlockeritems` (`player_id`, `pid`, `sid`, `itemtype`, `count` , `attributes`) VALUES (7, 1, 101, 2496, 1, ''),(7, 1, 102, 1988, 1, ''),(7, 1, 103, 2407, 1, ''),(7, 102, 104, 2539, 1 , '')
Message: Duplicate entry '7-103' for key 'player_depotlockeritems.player_id_2'
Error while saving player: Nefre
Last edited: