MuEmu source S8- function to update the resetcount.
Well I'm using MuEmu S8 Source, and I've written a "buy leatherset" command, which buys for you a leather set for 60 resets.
so for taking the resets I use :
Quote:
lpObj->Reset -= 60;
while ingame, if a character has 70 resets, he would be able to use the command once, and if he tries again it will say that he doesn't have enough resets.
If he reconnects, however, he can buy the set again.
This is happening because this line (lpObj->Reset -= 20;) doesn't update the sql value of his resets.
I need some kind of a function like the zen's GCMoneySend.
If someone knows this function in MuEmu source, please tell, and if not, guide me on how to write one myself.
Thanks in advance.
btw, I've tried
Quote:
GCNewCharacterInfoSend(lpObj);
but to no avail.
- - - Updated - - -
Fixed, close the thread.
Re: MuEmu source S8- function to update the resetcount.
Maybe share solution before closure?
Enviado desde mi LG-H340AR mediante Tapatalk
Re: MuEmu source S8- function to update the resetcount.
I dont understand this kind of coding, I mean its not minecraft to request /kit monster.. :D
On 60 reset who want leatherset :D Or you are making really really low exp server?
Anyway as ianvalls90 wrote, please share the solution, because if somebody else want to do the same, he will find on the forum.
But with this information I am not sure about anybody can help for you. You ask for answer and you share "lpObj->Reset -= 60;" this code part only?:D I mean I am working on mu sources since 2013, and I have no idea totally where you do this, why you do this. :D
Re: MuEmu source S8- function to update the resetcount.
I recommend you study the MASTER RESET with it you can get to what you need.