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

TFS 1.X+ Quest System

myalitth

New Member
Joined
Jan 13, 2013
Messages
69
Reaction score
3
Questsytem action id 2000 with UID.

When player do the quest do not shows the name of the prize.
Only a "."


1643243465145.png

Lua:
    local ret = getItemDescriptions(reward.uid)
    result = "You have found " .. ret.article .. " " .. ret.name
    if(doPlayerAddItemEx(cid, reward.uid, false) == RETURNVALUE_NOERROR)then
        result = result .. "."
        doCreatureSetStorage(cid, storage, 1)
    else
        result = (getPlayerFreeCap(cid) < getItemWeight(reward.uid)) and result .. ". Weighing " .. getItemWeight(reward.uid) .. " oz it is too heavy." or result .. ", but you have no room to take it."
    end   
        if(questsExperience[storage] ~= nil) then
            doPlayerAddExpEx(cid, questsExperience[storage])
        end

    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, result)
    return true
end
 

Similar threads

Back
Top