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

How to display storages in otclient?

Lagers

New Member
Joined
Jan 19, 2015
Messages
2
Reaction score
0
I want to display playerStorages in new otclient window and I don't know how to do it.
 
i need it too. So much!

Basically, you have to send that information from TFS to the OTClient. (This will require editing and re-compiling TFS). Then you edit OTClient to save that information (The same way it saves your health, mana, etc)

It isn't hard, just edit TFS to send the storages to the otclient, and then edit the otclient to save the storages.
 
Edit: my bad it was late when I posted, use a function you normally would to send text to the client and attach the get storage value function the end.
This is executed off the server
for 1.x
Code:
Player(cid):sendTextMessage(MESSAGE_INFO_DESCR, "This is storage value for 12345 "..Player(cid):getStorageValue(12345) )
 
Last edited:
As a server developer is quite useful to test things, such as new quests/scripts/systems.

Now I just have to logout and check database all the time.

I use custom spell:
simply make spell and let him send you text of the storage values you want.
 
Basically, you have to send that information from TFS to the OTClient. (This will require editing and re-compiling TFS). Then you edit OTClient to save that information (The same way it saves your health, mana, etc)

It isn't hard, just edit TFS to send the storages to the otclient, and then edit the otclient to save the storages.
I know that, I need to use protocolgame.cpp to do it but ,what I need to add on server site to be able to get storage value in OTC?
 
That depends on a million things.

But yea, you either make a new parse message to send to the OTClient, or you can edit the addCreature one so that every creature gets storage values sent to the OTClient.

You'll have to decide on specific storages and stuff, but you haven't explained anything sooooo do some research? Look at protocolgame.cpp, see how it sends something like... skills? So when it sends skills to the client also send storage values and just save it in memory.
 
Back
Top