vinivst
New Member
- Joined
- Mar 15, 2012
- Messages
- 16
- Reaction score
- 0
Hello,
I'm trying to get the store module fully functional and already opened an issue at official's github, but since there isn't the place to ask for help i'm making this thread do ask some questions.
My main concern is that i got all the things working separately but i can't put it all together in the right places. So, i got the UI from Margoh's store module system, i got the server side code from Lofiv's distro, and of course the otclient source code from this commit of @TheSumm
Lets get into what i really need to learn:
1) How can i call in store module a function from otclient source that sends to the server side the information that the Store was opened by player and get the provided information back to the otclient by a parse receipt function that will draw the UI with the especified products from a store's xml located into server side data folder?
2) The same parse receipt function needs to get from server the coin balance and shows in the UI.
3) When a coin transfer is called the otclient needs to communicates with the server again to run the logics and send back if it was successful or not.
Basically i need to know how to communicate the otclient with the server using a module that calls functions in otclient source which will call another function in the server side, and the process to get it all back.
Just to get clear, i'm really newbie to otclient and don't know much, but what's getting me intrigued is what's the OPCodes? And, they can help me in anyway?
Hope someone might give me a hand,
Thank you in advance.
I'm trying to get the store module fully functional and already opened an issue at official's github, but since there isn't the place to ask for help i'm making this thread do ask some questions.
My main concern is that i got all the things working separately but i can't put it all together in the right places. So, i got the UI from Margoh's store module system, i got the server side code from Lofiv's distro, and of course the otclient source code from this commit of @TheSumm
Lets get into what i really need to learn:
1) How can i call in store module a function from otclient source that sends to the server side the information that the Store was opened by player and get the provided information back to the otclient by a parse receipt function that will draw the UI with the especified products from a store's xml located into server side data folder?
2) The same parse receipt function needs to get from server the coin balance and shows in the UI.
3) When a coin transfer is called the otclient needs to communicates with the server again to run the logics and send back if it was successful or not.
Basically i need to know how to communicate the otclient with the server using a module that calls functions in otclient source which will call another function in the server side, and the process to get it all back.
Just to get clear, i'm really newbie to otclient and don't know much, but what's getting me intrigued is what's the OPCodes? And, they can help me in anyway?
Hope someone might give me a hand,
Thank you in advance.