Bleached InuYasha Galaxy
http://www.biyg.org/forums/

Dr. Humaru lies! (off-by-one error)
http://www.biyg.org/forums/viewtopic.php?f=4&t=1986
Page 1 of 1

Author:  kitsune [ August 20th, 2009, 10:25 am ]
Post subject:  Dr. Humaru lies! (off-by-one error)

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.

Author:  Alexander [ August 22nd, 2009, 2:47 am ]
Post subject:  Re: Dr. Humaru lies! (off-by-one error)

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/