Bleached InuYasha Galaxy

Forums for the MUD (biyg.org 1801)
It is currently April 24th, 2024, 2:18 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Dr. Humaru lies! (off-by-one error)
PostPosted: August 20th, 2009, 10:25 am 
Offline
Fellow player
User avatar

Joined: June 11th, 2007, 11:11 am
Posts: 55
The eye clinic
Exits: west.
Dr. Himaru stands by the chair waiting for his next patient.
Dr. Himaru smiles at you.
Dr. Himaru says 'Hello, there. Your eyes look just fine...'
Dr. Himaru says 'Are you looking to change their color?'
Dr. Himaru raises an eyebrow.
Dr. Himaru says 'Ah, well... If you are, just say which and I'll be happy to do it.'
Dr. Himaru says 'It costs a small fee of 1,000 yen, though.'

>yen
You have 1000 Yen.

>'green
Dr. Himaru says 'Sorry, you can't afford the surgery yet.'

>get yen
You get one yen.

>'green
You say 'green'
You give Dr. Himaru some Yen.
Dr. Himaru nods solemnly.
Dr. Himaru says 'Alright, then. Have a seat.'
Atari sits down in the chair.
Dr. Himaru says 'You might feel a slight pressure, but don't worry.'
Dr. Himaru leans over Atari and begins the surgery.
Your eye color is changed to green.
Atari changes her eye color to green.

>yen
You have 1 Yen.


Top
 Profile  
 
 Post subject: Re: Dr. Humaru lies! (off-by-one error)
PostPosted: August 22nd, 2009, 2:47 am 
Offline
Fellow player
User avatar

Joined: April 13th, 2005, 3:50 pm
Posts: 455
Location: Alvin, TX
It is highly possible that the area's designer made improper use of variables within the program. In example, it may be reading as:

if yenamt($n) <= 1000
say Sorry, you can't afford the surgery yet.
else
...
...
...

When it should read:

if yenamt($n) <= 999
say Sorry, you can't afford the surgery yet.
else
...
...
...

You get the idea, I am sure. An easy mistake to fix. It shall be noted.

_________________
"Being right means you betray life. After all, common sense is dead."
-Alexander Leon


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 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