コード例 #1
0
ファイル: Batrade.java プロジェクト: xxxmtixxx/dragonspires
 public void interact(int opt, DSpiresSocket c) {
   switch (opt) {
     case 1:
       c.pSend(
           "("
               + name
               + ": Who do I look like? I'm the baddest Valkyre this side of the other side of.. whatever it is that we're on one side of.");
       break;
     case 2:
       c.pSend(
           "("
               + name
               + " puts her large arm around you, drags you to the bar, and makes you buy her a bottle of the most expensive ale!!");
       c.updateGold(-25);
       break;
     case 3:
       c.pSend(
           "("
               + name
               + " slaps you on the back and laughs out loud.\n("
               + name
               + ": Bwahaha! Never heard THAT one before, slim!");
       break;
     case 4:
       c.pSend(
           "(As you lean in to kiss Batrade full on the lips, she makes a funny face and pushes you away with one hand. You fall backward onto the floor.\n("
               + name
               + ": Hey! Who gave you permission to defile THESE lips?!");
   }
 }
コード例 #2
0
ファイル: SirJ.java プロジェクト: xxxmtixxx/dragonspires
 public void get(DSpiresSocket c) {
   if (c.inhand == 47) {
     c.pSend(
         "(Sir J. looks around to see if anyone's watching and takes the herb. He tastes it and puts it in his pocket.\n(Sir J. gives you 70 gold!");
     c.setHands(0);
     c.updateGold(70);
   } else c.pSend("(Sir J.: Wts?");
 }
コード例 #3
0
ファイル: RBTree.java プロジェクト: xxxmtixxx/dragonspires
  public void get(DSpiresSocket c) {
    if (c.inhand >= c.map.items + 9 && c.inhand <= c.map.items + 16) {
      c.pSend(
          "("
              + name
              + ": Wow! Another snail! Thank you! You may have one of my berries.\n(* You pluck a red berry from the tree.");
      c.setHands(255);
      return;
    }

    c.pSend("(" + name + ": I only like snails.");
  }
コード例 #4
0
ファイル: Mistress.java プロジェクト: xxxmtixxx/dragonspires
  public void get(DSpiresSocket c) {
    if (state == 0) {
      if (c.inhand == 165) {
        c.pSend(
            "("
                + name
                + ": Oh! Thank you! Just what a girl like me needs! No more lonely days and nights with nobody to talk to! I don't know how I can repay you.. oh yes, my gem, here, take it!");
        c.setHands(168);
        state = 1;
        return;
      }
    }

    c.pSend("(" + name + ": No thank you.");
  }
コード例 #5
0
ファイル: SirJ.java プロジェクト: xxxmtixxx/dragonspires
 public void interact(int opt, DSpiresSocket c) {
   switch (opt) {
     case 1:
       c.pSend("(" + name + ": I'm Sir J., This fatass next to me is Silent Olaf.");
       break;
     case 2:
       c.pSend(
           "("
               + name
               + ": Hey, they're medicinal! What are you, a Royal Guard or something? Stop hassling me, man!!");
       break;
     case 3:
       c.pSend("(You poke Sir J. in the eye. He blinks a few times. Don't abuse Herbs, kids!");
   }
 }
コード例 #6
0
ファイル: Elmer.java プロジェクト: xxxmtixxx/dragonspires
 public void get(DSpiresSocket c) {
   if (state == 0) {
     if (c.inhand == 153) {
       c.pSend(
           "("
               + name
               + ": Thank you so much!!! *gulps down the water* Here, take this grey scroll, it will help protect you on your journeys.\n("
               + name
               + " gives you a grey scroll!");
       c.setHands(101);
       state = 1;
     }
   } else {
     c.pSend("(" + name + ": No thanks, I don't need anything right now.");
   }
 }
コード例 #7
0
ファイル: RBTree.java プロジェクト: xxxmtixxx/dragonspires
  public void interact(int opt, DSpiresSocket c) {
    String retval = null;
    switch (opt) {
      case 1:
        retval = "I just love them. They're fun to watch.";
        break;
      case 2:
        retval =
            "Well they're not so easy to give away, they're like a part of me! Maybe if you bring me another snail.";
    }

    if (retval != null) c.pSend("(" + name + ": " + retval);
  }
コード例 #8
0
ファイル: Mistress.java プロジェクト: xxxmtixxx/dragonspires
 public void interact(int opt, DSpiresSocket c) {
   String retval = null;
   if (state == 0) {
     switch (opt) {
       case 1:
         retval =
             "An adventurer found it and gave it to me in hopes of winning my affections. What a silly notion!";
         break;
       case 2:
         retval =
             "Well, I would be willing to part with it, maybe for a WaterFreak potion, it gets kind of lonely out here in the woods.";
     }
   } else {
     switch (opt) {
       case 1:
         retval = "Hiya!";
     }
   }
   if (retval != null) c.pSend("(" + name + ": " + retval);
 }
コード例 #9
0
ファイル: Elmer.java プロジェクト: xxxmtixxx/dragonspires
  public void interact(int opt, DSpiresSocket c) {
    String retval = null;

    if (state == 0) {
      switch (opt) {
        case 1:
          retval = "Excellent observation, genius! I'm dying here!";
          break;
        case 2:
          retval = "Yes, but what good is turning into a rock if you're about to die of thirst??";
      }
    } else {
      switch (opt) {
        case 1:
          retval = "A little, but I'm okay.";
          break;
        case 2:
          retval =
              "No anymore! I just traded my grey scroll for some water. Now I have to go find another one!";
      }
    }

    if (retval != null) c.pSend("(" + name + ": " + retval);
  }