• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [TFS 1.2] Update chest reward lua error

Slaz99

New Member
Joined
Jul 30, 2014
Messages
3
Reaction score
0
Console throws this error everytime a player gets a reward

Lua Script Error: [Action Interface]
data/actions/scripts/rewardchest.lua:eek:nUse
data/actions/scripts/rewardchest.lua:2: attempt to call method 'updateRewardChest' (a nil value)
stack traceback:
[C]: in function 'updateRewardChest'
data/actions/scripts/rewardchest.lua:2: in function <data/actions/scripts/rewardchest.lua:1>

This is the rewardchest.lua
Lua:
function onUse(player, item)
    player:updateRewardChest()
    return false
end

Where and which function I should add?
 
Console throws this error everytime a player gets a reward

Lua Script Error: [Action Interface]
data/actions/scripts/rewardchest.lua:eek:nUse
data/actions/scripts/rewardchest.lua:2: attempt to call method 'updateRewardChest' (a nil value)
stack traceback:
[C]: in function 'updateRewardChest'
data/actions/scripts/rewardchest.lua:2: in function <data/actions/scripts/rewardchest.lua:1>

This is the rewardchest.lua
Lua:
function onUse(player, item)
    player:updateRewardChest()
    return false
end

Where and which function I should add?

If you're using this system: Feature - Reward Chest & Boss Reward [TFS 1.2]

The function you're referring too is inside the reward_chest_creaturescript.zip which was located in his third post.
 
Back
Top