• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

'amount' resets after buy [Trade]

Draraki

New Member
Joined
Mar 3, 2012
Messages
4
Reaction score
0
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

Code:
doPlayerRemoveMoney(cid, totalCost)       
self.amount = amount

but that's not solving my problem.
Any ideas how can i fix that?
 
Back
Top