• 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 How to Make for free Accs offline training? tfs 1.0

Zekay

New Member
Joined
Dec 18, 2015
Messages
12
Reaction score
0
How edit this code for use in free accounts , please :)
Code:
local statue = {
    [18488] = SKILL_SWORD,
    [18489] = SKILL_AXE,
    [18490] = SKILL_CLUB,
    [18491] = SKILL_DISTANCE,
    [18492] = SKILL_MAGLEVEL
    }
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local premiumDays = getPlayerPremiumDays(cid)

    if (isPlayerPzLocked(cid)) then
        return false
    end
    if (isPremium(cid)) then
        doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
        doRemoveCreature(cid)
    else
        doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
    end
    return true
end
 
Here's the part that checks for premium: Figure out what to do next. :)

va4wb5s.png
 
Not an inconvenience, just look at it this way:

We can never advance, without trial and error. There's always some person who has failed 1-10000 times. But if you don't try, how will you learn?

"I have not failed. I've just found 10,000 ways that won't work."
That quote means so much.

If all we do is mooch and leech, we will eventually drain everything this world has to offer.

Next time atleast TRY first, then post your results. There's probably 500 members here who could've given you the script.
 
Back
Top