darkshin
New old member
- Joined
- Dec 14, 2010
- Messages
- 231
- Reaction score
- 22
Hello Guys!
I'm trying to send some storage information from the server to be displayed into OTClient, I was doing it by using parsePlayerStats function, but then I tried to create a new function, just by copying the parsePlayerStats from OTClient and making a new opcode like "GameServerPlayerInfo" = 52, assigined it to to new function. And at the TFS side, i've copied the sendStats() function from protocolgame.cpp. Both are identical, but the new function just can't be displayed as it should. So, is it possible to add custom opcodes?
I'm trying to send some storage information from the server to be displayed into OTClient, I was doing it by using parsePlayerStats function, but then I tried to create a new function, just by copying the parsePlayerStats from OTClient and making a new opcode like "GameServerPlayerInfo" = 52, assigined it to to new function. And at the TFS side, i've copied the sendStats() function from protocolgame.cpp. Both are identical, but the new function just can't be displayed as it should. So, is it possible to add custom opcodes?