hans henrik
Active Member
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. ^.^
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. ^.^