PenUltima Online

It is currently Fri Oct 10, 2008 11:28 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: possible cheat in 097 distro banker
PostPosted: Fri Sep 01, 2006 3:13 pm 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 7:49 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 420
Location: San Diego, California
Fixed

_________________
-Austin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: MSN [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl