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

"Using one of 100 manas" TFS 0.3.6.

ohman

Member
Joined
Oct 24, 2008
Messages
294
Reaction score
8
Location
Sweden
"Using one of 100 manas" TFS 0.3.6.

Hi guys! I trying to get my server working properly but with no succes. I have trying to get help and searched and tested many turtorials. I need to compile the server to get this problem fixed. And me and compiling dosnt seems to come along together :/. So now I am screaming for help! Can you help me compile my server so the manas is counting properly?

I need to change this text in game.cpp :

void Game::showHotkeyUseMessage(Player* player, Item* item)
{
int32_t subType = -1;
if(item->hasSubType() && !item->hasCharges())
subType = item->getSubType();

const ItemType& it = Item::items[item->getID()];
uint32_t count = player->__getItemTypeCount(item->getID(), subType, false);

char buffer[40 + it.name.size()];
if(count == 1)
sprintf(buffer, "Using the last %s...", it.name.c_str());
else
sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

To this:

void Game::showHotkeyUseMessage(Player* player, Item* item)
{
const ItemType& it = Item::items[item->getID()];
uint32_t count = player->__getItemTypeCount(item->getID(), -1);

char buffer[40 + it.name.size()];
if(count == 1)
sprintf(buffer, "Using the last %s...", it.name.c_str());
else
sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

I am using this server: http://www.mediafire.com/download/s72ekemd3wxxe33/cryingdamson+0.3.6+(8.60)+V8.2.rar

Source: http://www.mediafire.com/download/g3vvnxr553xvna0/cryingdamson+0.3.6+(8.60)+V8.2+Source.rar

It's from this thread: http://otland.net/f18/8-60-forgotten-server-0-3-6-crying-damson-v8-147913/

If you could compile this for me and change that little thing it would be GOLD! Thanks! :)
 
Last edited:
Back
Top