You have probably already seen it this stopped working after tfs 1.X, I have tfs 1.2 but probably even if you transform it to 1.3 it will surely work for me many things work for me but you are an expert so I think you could solve it? I can't get it to work because the "onlook" no longer exists in "creatureevents" so maybe I should create one for "events" but I'm not sure, when you have time help me! Thank you!
Lua:
function onLook(cid, thing, position, lookDistance)
local quests = {20001, 20003, 20009}
local completed = {}
if isPlayer(thing.uid) then
for i = 1, #quests do
if getPlayerStorageValue(thing.uid, quests) > 0 then
table.insert(completed, 1)
end
end
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " has completed ".. #completed .. "/" .. #quests .. " quests")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerName(thing.uid) .. " has completed " .. #completed .. "/" .. #quests .. " quests.")
end
return true
end