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

Fix/Patch [7.6 YurOTS] RME Depot compatibility

hans henrik

Active Member
Joined
Jun 5, 2007
Messages
320
Reaction score
39
Location
Norway
for YurOTS 7.6X, and those based on yurots, here is a fix to load depots when using RME*
const76.h in
[cpp]enum item_t {[/cpp] add [cpp]
#ifdef HHB_RME_HOTFIX
ITEM_LOCKER1 = 2589,
ITEM_LOCKER2 = 2590,
ITEM_LOCKER3 = 2591,
ITEM_LOCKER4 = 2592,
#endif//HHB_RME_HOTFIX
[/cpp]
in item.cpp under [cpp]
Item* Item::CreateItem(const unsigned short _type, unsigned short _count /*= 0*/)
{
Item *newItem;
[/cpp] add [cpp]#ifdef HHB_RME_HOTFIX
if(_type == ITEM_LOCKER1 || _type == ITEM_LOCKER2 || _type == ITEM_LOCKER3 || _type == ITEM_LOCKER4){
newItem = new Container(_type);

Container* c=dynamic_cast<Container*>(newItem);
if(c)
{
c->depot=true;
}/// else {std::cout << "depot error..."<<std::endl;}
} else
#endif//HHB_RME_HOTFIX
[/cpp]
add -DHHB_RME_HOTFIX
depots with RME should now work. ^.^
 
I think most servers now use 7.6 Avesta servers released by Ferrus. YurOTS is too outdated to be able to have any decent OT on it anymore. It was great back then, but times has changed.
 
Who da fuck used yurots? Isn't that shit XML? Hah
default XML, SQL with -D__USE_MYSQL__

ioaccountsql can be found here SourceForge.net Repository - [opentibia] Revision 1327

I think most servers now use 7.6 Avesta servers released by Ferrus. YurOTS is too outdated to be able to have any decent OT on it anymore. It was great back then, but times has changed.
that may be. persoanlly i cannot stand the new pvp system tho, like Walking intrupts shooting, shooting interupts walking, normal attack interupts, etc.. like say a sorcerer vs a knight, sorcerer running ofc, "hmm i wanna shoot a SD on that guy. lets stop running.", or "i wanna use my wand to shoot that knight (running after me), great time to stop running!" x.x
also seriously annoying: "im currently walking, so i cant open backpack." or "im opening backpack, so i cant keep walking" or "i tried to eat a apple, so i gotta stop walking"...
 
Last edited:
It's works for me! But I needed to change the line:

From:
Code:
c->depot=true;

To:
Code:
c->depot=1;
 
Why use YurOTs? It's very deprecated and old. Just asking.
 
I'm c++ programmer...

So I spent months recreating the server ...

Today the server works with SQL database ... and weapons.xml works! :D

This will be one of the best OTServ 7.6 of all time ...

See you later....
 
Anyone else know where to input this fix?

[cpp]enum item_t {[/cpp] add [cpp]
#ifdef HHB_RME_HOTFIX
ITEM_LOCKER1 = 2589,
ITEM_LOCKER2 = 2590,
ITEM_LOCKER3 = 2591,
ITEM_LOCKER4 = 2592,
#endif//HHB_RME_HOTFIX
[/cpp]
in item.cpp under [cpp]
Item* Item::CreateItem(const unsigned short _type, unsigned short _count /*= 0*/)
{
Item *newItem;
[/cpp] add [cpp]#ifdef HHB_RME_HOTFIX
if(_type == ITEM_LOCKER1 || _type == ITEM_LOCKER2 || _type == ITEM_LOCKER3 || _type == ITEM_LOCKER4){
newItem = new Container(_type);

Container* c=dynamic_cast<Container*>(newItem);
if(c)
{
c->depot=true;
}/// else {std::cout << "depot error..."<<std::endl;}
} else
#endif//HHB_RME_HOTFIX
[/cpp]
add -DHHB_RME_HOTFIX
 
Back
Top