Package games.stendhal.server.entity.npc

Examples of games.stendhal.server.entity.npc.SpeakerNPC.say()


                  Integer.toString(heraldNews.get(i).getInterval())+", limit "+
                  Integer.toString(heraldNews.get(i).getLimit())+", text \""+
                  heraldNews.get(i).getNews()+"\"");
            turnNotifier.dontNotify(heraldNews.get(i).getTNL());
            heraldNews.remove(i);
            npc.say("Ok, already forget it.");
          } catch (NumberFormatException nfe) {
            logger.error("RemoveNewsAction: cant remove "+number+" speech.", nfe);
            npc.say(DontUnderstand);
          }
        }
View Full Code Here


            turnNotifier.dontNotify(heraldNews.get(i).getTNL());
            heraldNews.remove(i);
            npc.say("Ok, already forget it.");
          } catch (NumberFormatException nfe) {
            logger.error("RemoveNewsAction: cant remove "+number+" speech.", nfe);
            npc.say(DontUnderstand);
          }
        }
      }   
     
      /**
 
View Full Code Here

                  " cleared announcement list.");
            for (int i=0; i<heraldNews.size(); i++) {
              turnNotifier.dontNotify(heraldNews.get(i).getTNL());
            }
            if(heraldNews.size()!=0){
              npc.say("Ufff, I have now some time for rest. I heard, there is a gambling game in Semos city?");             
              heraldNews.clear();
            } else {
              npc.say("Oh, thank you for trying to help me, but I'm ok.");
            }
          }
View Full Code Here

                // check if the player has brought all Food
                missing = missingFood(player, true);

                if (!missing.isEmpty()) {
                  npc.say("Thank you very much! What else did you bring?");
                } else {
                  player.addKarma(5.0);
                  player.addXP(20);
                  /*
                   * place soup after XP added otherwise
View Full Code Here

            }
            if(heraldNews.size()!=0){
              npc.say("Ufff, I have now some time for rest. I heard, there is a gambling game in Semos city?");             
              heraldNews.clear();
            } else {
              npc.say("Oh, thank you for trying to help me, but I'm ok.");
            }
          }
      }
     
      /**
 
View Full Code Here

                   * to be accurate for the place soup
                   * stage
                   */
                  placeSoupFor(player);
                  player.healPoison();
                  npc.say("The soup's on the table for you. It will heal you. "
                      + "My magical method in making the soup has given you a little karma too.");
                  player.setQuest(QUEST_SLOT, "done;"
                      + System.currentTimeMillis());
                  player.notifyWorldAboutChanges();
                  npc.setCurrentState(ConversationStates.ATTENDING);
View Full Code Here

                      + System.currentTimeMillis());
                  player.notifyWorldAboutChanges();
                  npc.setCurrentState(ConversationStates.ATTENDING);
                }
              } else {
                npc.say("Don't take me for a fool, traveller. You don't have "
                  + Grammar.a_noun(itemName)
                  + " with you.");
              }
            } else {
              npc.say("You brought me that ingredient already.");
View Full Code Here

                npc.say("Don't take me for a fool, traveller. You don't have "
                  + Grammar.a_noun(itemName)
                  + " with you.");
              }
            } else {
              npc.say("You brought me that ingredient already.");
            }
          }
      });
    }
   
View Full Code Here

        public void onNewFerryState(final Status status) {
          switch (status) {
          case ANCHORED_AT_MAINLAND:
          case ANCHORED_AT_ISLAND:
            npc.say("Attention: We have arrived!");
            break;

          default:
            npc.say("Attention: We have set sail!");
            break;
View Full Code Here

          case ANCHORED_AT_ISLAND:
            npc.say("Attention: We have arrived!");
            break;

          default:
            npc.say("Attention: We have set sail!");
            break;
          }
        }
      };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.