• 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!

Problem TFS 1.2 (data-creaturescripts)

the script is trying to find something that doesn't exist.
Either delete that portion of the script, or find out what's wrong with the function.
(Does it exist? Is it incorrectly named? Was the other file not saved?)
 
I have only this in {login.lua}

-- Rewards
local rewards = #player:getRewardList()
if(rewards > 1) then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("You have %d %s in your reward chest.", rewards, rewards > 1 and "rewards" or "reward"))
end

-- Update player id
local stats = player:inBossFight()
if stats then
stats.playerId = player:getId()
end
 
Please HELP ME

login.lua should be located in creaturesripts/scripts/login.lua

error states you have it under creaturesripts/scripts/others/login.lua

update it to this

Lua:
-- Update player id
local stats = player:inBossFight()
if stats then
stats.playerId = player:getId()
end
 
Back
Top