Hello.
I'm using TFS 0.4 and i want kept 'amount' variable after buying something in NPC trade window. I removed function that resets self.amount variable, but it still reset it sometimes (propably when engine have to change cc to pc/gc). I discovered that when i remove call to 'doRemoveMoney' function it works good. I tried
but that's not solving my problem.
Any ideas how can i fix that?
I'm using TFS 0.4 and i want kept 'amount' variable after buying something in NPC trade window. I removed function that resets self.amount variable, but it still reset it sometimes (propably when engine have to change cc to pc/gc). I discovered that when i remove call to 'doRemoveMoney' function it works good. I tried
Code:
doPlayerRemoveMoney(cid, totalCost)
self.amount = amount
but that's not solving my problem.
Any ideas how can i fix that?