• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

exp limit

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
how i can break level 717217 in 0.4
need script when player stepon action xxxx summone monster same name of player and same power and sam vocation.
EXAMPLE
if player name tester and vocation paladin and his mana 2500 and hp 3000
the monster will be name tester and use paladin weapon and his mana and hp 3000 and use exura san same outfit the player use
im use tfs 0.4 @Limos you can help me in something like this ?
 
Last edited:
i like ur idea i searched everywhere and don't found function to summon monster with ur name but found spell i tried to edite it but don't work with me i will post if there any one can help u and edite it
Code:
local removeTime = 8 --time to remove the clones
local HAVE_CLONE = 65531 --storage to know if you have clones or not
local arr = {
    {
        {1},
        {2}
    },
    {
        {1, 0, 1},
        {0, 2, 0}
    },
    
    {
        {1, 0, 1},
        {0, 2, 0},
        {1, 0, 1}
    },
    
    {
        {1, 0, 1},
        {1, 2, 1},
        {1, 0, 1}
    },
    
    {
        {1, 1, 1},
        {1, 2, 1},
        {1, 1, 1}
    },
    
    {
        {1, 1, 0, 1, 1},
        {1, 0, 1, 0, 1},
        {0, 1, 2, 1, 0},
        {1, 0, 1, 0, 1},
        {1, 1, 0, 1, 1}
    }
}

local function removeCreatures(cid, creature)
        setPlayerStorageValue(cid, HAVE_CLONE, 0)
        if isCreature(creature) == TRUE then
                doRemoveCreature(creature)
        end
end

function onTargetTile(cid, pos)
local name = getPlayerName(cid)
local creature = doSummonCreature(name, pos)
        doConvinceCreature(cid, creature)
        setCreatureMaxHealth(creature, getPlayerMaxHealth(cid))
        doCreatureAddHealth(creature, getPlayerMaxHealth(cid))
        setCreatureMaxMana(creature, getPlayerMaxMana(cid))
        doCreatureAddMana(creature, getPlayerMaxMana(cid))
        doChangeSpeed(creature, getPlayerBaseSpeed(cid))
        doSetCreatureOutfit(creature, getPlayerOutfit(cid), -1)
        doSetCreatureName(creature, getPlayerName(cid))
        addEvent(removeCreatures, removeTime * 1000, cid, creature)
        return TRUE
end

local combat = {}
for i = 1, 6 do
        combat[i] = createCombatObject()
        setCombatParam(combat[i], COMBAT_PARAM_EFFECT, CONST_ME_POFF)
        setCombatArea(combat[i], createCombatArea(arr[i]))
        _G["onTargetTile" .. i] = onTargetTile
        setCombatCallback(combat[i], CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. i)
end
function onCastSpell(cid, var)
local level = getPlayerLevel(cid)
        if getPlayerStorageValue(cid, HAVE_CLONE) < 1 then
                if level < 200 then
                        doCombat(cid, combat[1], var)
                elseif level < 300 then
                        doCombat(cid, combat[2], var)
                elseif level < 400 then
                        doCombat(cid, combat[3], var)
                elseif level < 500 then
                        doCombat(cid, combat[4], var)
                elseif level < 600 then
                        doCombat(cid, combat[5], var)
                else
                        doCombat(cid, combat[6], var)
                end
                setPlayerStorageValue(cid, HAVE_CLONE, 1)
        else
                doPlayerSendCancel(cid, "You already have clones.")
        end
end
 
LOOOL, look this:
Your level: 717217

In-Tibia experience formula:

Code:
x = 717217
Exp = (50 / 3) * (x ^ 3 - 6 * x ^ 2 + 17 * x - 12)

After changing x with 717217:
Code:
Exp = (50 / 3) * (717217 ^ 3 - 6 * 717217 ^ 2 + 17 * 717217 - 12)
Exp ~= 6.14 * 10 ^ 18

This is extremally huge value. If you don't belive take your pen and try just this:
Code:
717217 ^ 3

When you open your skills tab Tibia have to display a value over 30% of 64bit size. To calculate that amount of experience it have to exceed 64bits. So, as long as you will have any kind of exp - game will crash.

The best way is change experience formula to something lower. And after that you have to lower exp from monsters. Or even permanently remove exp system.

PS:
Forgot to add, PEN and TOOOOONS OF PAPER!
 
Last edited:
Back
Top