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

How To MAke Reborn?

I think he meant Reborn/Reset System
Yeah thats what I thought aswell. Use the search Function on the corner right part of your screen.
3lgEm3zldF.png


Please use it in the future.
 
I'd like to report this user for containing an offensive nickname...
a7a = fuck you in masry language. (Commonly said at Egypt) I know some arabic and you can ask a masry what it means.
a7a = Fuck you.
Ana Valentino = I'm Valentino. Anta masry? Are you muslim/egyptian.
I know some arabic and I swear it's an insult.

Ontopic:
He means Reborn, like dragonball rofl.
 
One can reply to an "a7a" by saying "a7atein" (literally: two "a7a"'s).
"a7a I missed my bus"
"a7a that khawal stole my wallet"
"a7a I can't believe this shit"
 
I'd like to report this user for containing an offensive nickname...
a7a = fuck you in masry language. (Commonly said at Egypt) I know some arabic and you can ask a masry what it means.
a7a = Fuck you.
Ana Valentino = I'm Valentino. Anta masry? Are you muslim/egyptian.
I know some arabic and I swear it's an insult.

Ontopic:
He means Reborn, like dragonball rofl.
I would like to report him too, I'm an egyptian but im not proud coz similar s**t like this happen from egyptians
As moataz said it's like an objection, like when something happens makes you mad, you say it but thats for local egyptians i mean low class people in egypt. I used to go to a language school, a friend of mine used to say it everytime something happens bad, he said it in the class while the teacher was explaining the lesson, he got suspended from the school, anyways sorry for the long story, all i wanted to say is, it's a bad word to be said but not realy bad like f**k you, its like F**K NO, I LOST THIS ROUND!
EliteOT got it from a dictionary or something its well explained..
Ontopic: He meant a reborn system, that gets u back to level 1, same hp and mana as a level 500 or something :)
 
Hope I helped. If you run into any problems, please message back, and I'll fix them as soon as I can.


Reset.lua << Creaturescript

LUA:
local config =
{
    levelLimit = 400, --limit of course
    kickTime = 60000, --(in miliseconds) time before player gets kicked
    removeInventory = true, --remove items from inventory after reset? (to prevent players using items with level required after reset)
    newLevel = 20, --new level after reset
    newExp = 4500, --new exp after reset
    resetSkills = true, --reset skills?
    skillLevel = 11, --new skills level after reset
    resetMagic = true, --reset magic level?
    newMagic = 2, --new magic level after reset
    resetHealth = true, --reset health?
    newHealth = 180, --new player health/healthmax after reset
    resetMana = true, --reset mana?
    newMana = 240, --new player mana/manamax after reset
    resetVocation = true --delete promotion?
}
 
local displayMessage, message = true, "You have reached the level limit, you will be kicked in " .. config.kickTime / 1000 .. " seconds."
 
function onAdvance(cid, skill, oldlevel, newLevel)
 
    if(skill == SKILL__LEVEL and isPlayer(cid)) then
        if newLevel >= config.levelLimit then
            local queries = {}
            local id = getPlayerGUID(cid)    
 
            if displayMessage then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, message)
            end
            if config.removeInventory then
                table.insert(queries, "delete from player_items where player_id = " .. id .. ";")
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Save your items on the depot or will be deleted after the reset.")
            end
            if config.resetSkills then
                for i = 1, 6 do
                    table.insert(queries, "update player_skills set value = " .. config.skillLevel .. ", count = 0 where skillid = " .. i - 1 .. " and player_id = " .. id .. ";")
                end
            end
            table.insert(queries, "update players set level = " .. config.newLevel .. ", experience = " .. config.newExp .. "" .. (config.resetMagic and ", maglevel = " .. config.newMagic .. "" or "") .. (config.resetHealth and ", health = " .. config.newHealth .. ", healthmax = " .. config.newHealth .. "" or "") .. (config.resetMana and ", mana = " .. config.newMana .. ", manamax = " .. config.newMana .. "" or "") .. (config.resetVocation and ", promotion = 0" or "") .. ";")
            addEvent(reset, config.kickTime, getCreatureName(cid), queries)
        else
            if config.levelLimit - newLevel <= 10 then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need " .. config.levelLimit - newLevel .. " levels more to reach the limit".. (config.removeInventory and ", remember to save your items at the depot" or "") .. ".")
            end
        end
    end
    return true
end
 
function reset(p, queries)
    if getPlayerByName(p) ~= nil then
        doRemoveCreature(getCreatureByName(p))
        db.executeQuery("update players set online = 0 where id = " .. getPlayerGUIDByName(p) .. ";")
    end
    for i = 1, table.maxn(queries) do
        if not db.executeQuery(queries[i]) then
            print("[RESET] Unable to execute query: " .. queries[i])
        end
    end
    return true
end


Creaturescripts.xml
LUA:
<event type="advance" name="reset" event="script" value="reset.lua"/>


Login.lua
LUA:
registerCreatureEvent(cid, "reset")
 

Similar threads

Back
Top