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

Feature Reborn System | Reset level, increase power, set exclusive items, spells, houses, web and more!

Can you tell me what should i edit in my src to add this system please? I am using 10.97
 
thanks i playing with ur codes
 
Last edited:
This is a reborn system, on which player reaches level X and then goes back to level 8, you choose how and what status will be available.

This system was designed to TFS 1.2, but can be adapted to any version, the only difference is maybe a function name. Comment if you have problem adapting to your source.
bro What files do I have to modify? To add it to my sources.
only:
Code:
weapons.cpp
weapons.h
spells.cpp
house.cpp
item.cpp
luascript.h
luascript.cpp
game.cpp
player.h
player.cpp
iologindata.cpp

or any other file bro @Stellow ?

need more files:

Code:
spells.h
house.h
configmanager.h
configmanager.cpp
items.h

any other? xD
 
Last edited:
2qla813.png


weapons dont show rebirts need for use.
 
Last edited:
for houses working, need add this on buyhouse.lua

Code:
    if player:getRebirth() < house:getRequiredRebirth() then   
        player:sendCancelMessage("You no have rebirths required.")
        return false
    end
 
2qla813.png


weapons dont show rebirts need for use.

Did you configure it in the weapons.xml and rightfully compiled with the items.cpp?

bro What files do I have to modify? To add it to my sources.
only:
Code:
weapons.cpp
weapons.h
spells.cpp
house.cpp
item.cpp
luascript.h
luascript.cpp
game.cpp
player.h
player.cpp
iologindata.cpp

or any other file bro @Stellow ?

need more files:

Code:
spells.h
house.h
configmanager.h
configmanager.cpp
items.h

any other? xD

Compile your server with the files I have disposed here, or copy the changes to your source.
 
Did you configure it in the weapons.xml and rightfully compiled with the items.cpp?
yes, I Configure exactly the changes in your source. Only shows rebirths in the runes. In weapons it does not have any code to show rebirths. Check your sources.

Compile your server with the files I have disposed here, or copy the changes to your source.
It is working perfectly in my source. only no have code for show rebirths in weapons xD
 
This codes is of your sources:
IN RUNES HAVE TO SHOW REBIRTS:
Code:
                if (it.runeLevel > 0) {
                    s << " level " << it.runeLevel;
                }

                if (it.runeMagLevel > 0) {
                    if (it.runeLevel > 0) {
                        s << " and";
                    }

                    s << " magic level " << it.runeMagLevel;
                }
               
                if (it.runeRebirth > 0) {
                        s << " and";
                   
                    s << " rebirth " << it.runeRebirth;
                }

                s << " or higher";
            }
        }

ON OTHERS ITEMS DONT HAVE CODE FOR SHOW REBIRTHS BRO XD

Code:
    if (it.wieldInfo != 0) {
        s << std::endl << "It can only be wielded properly by ";

        if (it.wieldInfo & WIELDINFO_PREMIUM) {
            s << "premium ";
        }

        if (!it.vocationString.empty()) {
            s << it.vocationString;
        } else {
            s << "players";
        }

        if (it.wieldInfo & WIELDINFO_LEVEL) {
            s << " of level " << it.minReqLevel << " or higher";
        }

        if (it.wieldInfo & WIELDINFO_MAGLV) {
            if (it.wieldInfo & WIELDINFO_LEVEL) {
                s << " and";
            } else {
                s << " of";
            }

            s << " magic level " << it.minReqMagicLevel << " or higher";
        }

        s << '.';
    }
 
May you tell me how you did the more damage part? (or tell me where the files are to read)
Is the damage increased like: non-reborn basic attack damage = 200, reborn = 400? Or it doesn't increase at all?
 
May you tell me how you did the more damage part? (or tell me where the files are to read)
Is the damage increased like: non-reborn basic attack damage = 200, reborn = 400? Or it doesn't increase at all?

Nothing is related to damage.
 
so what files are the ones edited specifically i mean i would put all your files and comppile but ive already made some modifications on my sources which i dont want to lose, it would be nice like the common "paste this after this" kind of post haha but still great aportation ;D
 
May you tell me how you did the more damage part? (or tell me where the files are to read)
Is the damage increased like: non-reborn basic attack damage = 200, reborn = 400? Or it doesn't increase at all?

I apologize, you are right. Did not remember about that, the script was wrote long time ago.
 
so what files are the ones edited specifically i mean i would put all your files and comppile but ive already made some modifications on my sources which i dont want to lose, it would be nice like the common "paste this after this" kind of post haha but still great aportation ;D

I understand. You work around that. Try some software, or even a website that compare files; there you can see what is the different between your file and the rebirth file and manually added it. There is nothing really complex on the sources that you can't do by just matching it. Let me know if you need some help.
 
I understand. You work around that. Try some software, or even a website that compare files; there you can see what is the different between your file and the rebirth file and manually added it. There is nothing really complex on the sources that you can't do by just matching it. Let me know if you need some help.
thanks, i used sublime text editor i just was kind lazy to search by myself haha but i did it and its great, thanks again for the aportation bro :D
 
i have a problem
I compile everything but I'm not reborn when I level up?
 

Similar threads

Back
Top