if (isset(f5)) {
  load.pic(v0);
  draw.pic(v0);
  discard.pic(v0);
  set.horizon(37);
  if ((v1 == 3 ||
      v1 == 0)) {
    position(o0,70,167);
    status.line.on();
    accept.input();
  }

  draw(o0);
  show.pic();
}
if (said("examine")) {
  print("This is an empty room.");
}

if (v2 == 3) {
  new.room(3);
}
animate.obj(o2);
load.view(139);
set.view(o2,139);
set.cel(o2,2);
position(o2,42,132);
draw(o2);
stop.cycling(o2);
if(isset(f5)){
animate.obj(o1);
load.view(142);
set.view(o1,142);
set.loop(o1,2);
position(o1,85,83);
draw(o1);
stop.cycling(o1);
}



if(has("amulet")){
if(said("talk","girl")){
if(obj.in.box(o0,70,91,110,95)){
prevent.input();
move.obj(o0,77,92,1,f115);
}
else{
print("You are not close enough.");
}}}
if(isset(f115)){
reset(f115);
erase(o0);
animate.obj(o12);
load.view(36);
set.view(o12,36);
set.loop(o12,0);
position(o12,77,92);
draw(o12);
start.cycling(o12);
set(f110);
v200 = 0;
}
if(isset(f110)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Hello Lavinia.");
reset(f5);
reset(f110);
set(f111);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f111)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Hello Cailtyn. How is your new amulet?");
reset(f111);
set(f112);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f112)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("I like it very much. I hope it will come in handy.");
reset(f112);
set(f113);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f113)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Oh I am sure it will. Be careful out there.");
reset(f113);
set(f114);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f114)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("I will, thanks Lavinia.");
reset(f114);
stop.cycling(o1);
start.cycling(o12);
erase(o12);
draw(o0);
accept.input();
}

if(said("talk","girl")){
if(obj.in.box(o0,70,91,110,95)){
prevent.input();
move.obj(o0,77,92,1,f95);
}
else{
print("You are not close enough.");
}}
if(isset(f95)){
reset(f95);
erase(o0);
animate.obj(o12);
load.view(36);
set.view(o12,36);
set.loop(o12,0);
position(o12,77,92);
draw(o12);
start.cycling(o12);
set(f96);
v200 = 0;
}
if(isset(f96)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Hello Lavinia, your shop is looking very nice these days.");
reset(f5);
reset(f96);
set(f97);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f97)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Ahh Caitlyn, why do you not visit more often? We many new amulets here at the store. Perhaps one could be of use to you?");
reset(f97);
set(f98);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f98)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Amulets? What kind of amulets? Are they magical?.");
reset(f98);
set(f99);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f99)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Oh yes of course, they hold some magic. I have amulets of luck, beauty, charm, and protection.");
print("Luck amulets will ensure a good day, amulets of beauty is what every girl wants in this town, charm amulets will allow you attract almost any man, and protection amulets will protect you against creatures of evil and darkness. Not exactly the most popular amulet.");
reset(f99);
set(f100);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f100)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Sounds very interesting. I'll think about it Lavinia. Good day.");
reset(f100);
stop.cycling(o1);
start.cycling(o12);
erase(o12);
draw(o0);
accept.input();
}
if(has("amulet")){
if(said("buy","amulet")){
print("You already bought it.");
}}

if(has("statue")){
if(said("buy","amulet")){
if(obj.in.box(o0,70,91,110,95)){
prevent.input();
move.obj(o0,77,92,1,f101);
}
else{
print("You are not close enough.");
}}}

if(isset(f101)){
reset(f101);
erase(o0);
animate.obj(o12);
load.view(36);
set.view(o12,36);
set.loop(o12,0);
position(o12,77,92);
draw(o12);
start.cycling(o12);
set(f102);
v200 = 0;
}
if(isset(f102)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Hey Lavinia! What do you think about this statue?");
reset(f5);
reset(f102);
set(f103);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f103)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("It is beautiful Cailtyn! It has a very dark and ominious feel to it does it not? How I love snakes! Where did you find this?");
reset(f103);
set(f104);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f104)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("I got it from a friend. Would you trade this for the amulet of protection?");
reset(f104);
set(f105);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f105)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Oh of course Cailtyn! Let me get it for you this second!");
reset(f105);
set(f106);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f106)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Thank you very much Lavinia, I hope you enjoy the statue!");
reset(f106);
stop.cycling(o12);
start.cycling(o1);
set.loop(o1,2);
move.obj(o1,77,83,1,f107);
}
if(isset(f107)){
reset(f107);
print("Lavinia takes an amulet from the middle shelf.");
set.loop(o1,0);
move.obj(o1,85,83,1,f108);
}
if(isset(f108)){
reset(f108);
set.loop(o1,2);
start.cycling(o1);
set(f109);
}
if(isset(f109)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Here you go Cailtyn. Wear this amulet if you think you may be around something dark or evil. It will protect you as long as you are wearing it.");
reset(f109);
print("You give Lavinia your statue and hang your new amulet around your neck.");
stop.cycling(o1);
set.cel(o1,0);
get("amulet");
drop("statue");
erase(o12);
draw(o0);
accept.input();
}


if(said("buy","amulet")){
if(obj.in.box(o0,70,91,110,95)){
prevent.input();
move.obj(o0,77,92,1,f116);
}
else{
print("You are not close enough.");
}}
if(isset(f116)){
reset(f116);
erase(o0);
animate.obj(o12);
load.view(36);
set.view(o12,36);
set.loop(o12,0);
position(o12,77,92);
draw(o12);
start.cycling(o12);
set(f117);
v200 = 0;
}
if(isset(f117)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("I'd like to by the protection amulet please.");
reset(f5);
reset(f117);
set(f118);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f118)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Very well Cailtyn, that will be 20 gold pieces.");
reset(f118);
set(f119);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f119)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Oh, I can't afford that. Is there anything I can trade for the amulet?");
reset(f119);
set(f120);
stop.cycling(o12);
start.cycling(o1);
}
if(isset(f120)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Well... I suppose, find me some antique of equal value and I may be willing to trade, if it fits my style.");
reset(f120);
set(f121);
stop.cycling(o1);
start.cycling(o12);
}
if(isset(f121)){
v200 += 1;
}
if(v200 == 30){
v200=0;
print("Great! I'll let you know if I find anything. Goodbye.");
print("You think to yourself: What style would fir Lavinia? Probably dark and spooky.");
reset(f121);
stop.cycling(o1);
start.cycling(o12);
erase(o12);
draw(o0);
accept.input();
}
return();

// Messages
#message 1 "This is an empty room."