possible cheat in 097 distro banker

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.

Moderators: POL Developer, Distro Developer

Locked
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

possible cheat in 097 distro banker

Post by Lagoon »

097\Distro\pkg\mobiles\brainAI\bundled\banker\listen.src
Line 75

Code: Select all

	ConsumeSubstance(bank_box, GetObjTypeByName("GoldCoin"), amount);
	CreateItemInBackPack(who, "GoldCoin", amount);
I think there's room for a cheat here. The result of ConsumeSubstance() shoudl be checked before creating the gold in the backpack. At line 71 CheckGoldAmount(npc, bank_box, amount) checks if the gold is available in the bank box, but even if it's available at that time, it doesn't mean it will be still available at the time ConsumeSubstance() is executed. I didn't test this honestly
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Fixed
Locked