PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
possible cheat in 097 distro banker

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion
Display posts from previous:   

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Fri Sep 01, 2006 7:13 pm    Post subject: possible cheat in 097 distro banker Reply with quote

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

Code:
   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

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 355
Location: San Diego, California

PostPosted: Mon Sep 11, 2006 11:49 am    Post subject: Reply with quote

Fixed

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty