lucaluca
-
Posts
14 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by lucaluca
-
-
Nice system, thank you Mali.
However what do you think about adding the possibility to open chest info from a chat hyperlink? -
@Maze you have to specify the costume's bonuses in 'shopex_item'
(do it like in 'item_proto')
- 1
-
-
what offline shop are you using?
-
hey man how can i reload the 'BANIP' file ingame?
- 1
-
For anyone who wants to reload 'shopex' & 'shopex_item' using /reload p
(works on the db/mysql version only)
1. You must have this2. game/src
input_db.cppSpoiler
In void CInputDB::ReloadProto(const char * c_pData) search for:
/*
* SHOP
*/
wSize = decode_2bytes(c_pData);
c_pData += sizeof(WORD);
sys_log(0, "RELOAD: SHOP: %d", wSize);
if (wSize)
{
CShopManager::instance().Initialize((TShopTable *)c_pData, wSize);
c_pData += wSize * sizeof(TShopTable);
}
Add below:
/*
* SHOPEX
*/
wSize = decode_2bytes(c_pData);
c_pData += sizeof(WORD);
sys_log(0, "RELOAD: SHOPEX: %d", wSize);
if (wSize)
{
CShopManager::instance().InitializeShopEX((TShopTable *)c_pData, wSize);
c_pData += wSize * sizeof(TShopTable);
}
3. db/src
ClientManager.cpp
SpoilerIn void CClientManager::QUERY_RELOAD_PROTO() search for:
sizeof(WORD) + sizeof(TShopTable) * m_iShopTableSize +
Add below:
#if defined(ENABLE_RENEWAL_SHOPEX)
sizeof(WORD) + sizeof(TShopTable) * m_iShopEXTableSize +
#endif
Search:
tmp->EncodeWORD(m_iShopTableSize);
tmp->Encode(m_pShopTable, sizeof(TShopTable) * m_iShopTableSize);
Add below:
#if defined(ENABLE_RENEWAL_SHOPEX)
tmp->EncodeWORD(m_iShopEXTableSize);
tmp->Encode(m_pShopEXTable, sizeof(TShopTable) * m_iShopEXTableSize);
#endif
And that's it
Proof
Spoiler- 2
- 3
- 2
- 1
Stateful Server and Sync Position between Clients
in Guides & HowTo
Posted
thank you