Package games.stendhal.server.core.scripting

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()


    //
    npc.add(ConversationStates.IDLE, Arrays.asList("hi", "hello",
        "greetings", "hola"), null, ConversationStates.IDLE,
        "My mom said, i am not allowed to talk to strangers.", null);
    npc.behave("bye", "Bye.");

    // Greating and admins may enable or disable her
    npc.add(ConversationStates.IDLE, Arrays.asList("hi", "hello",
        "greetings", "hola"), new AdminCondition(),
        ConversationStates.ATTENDING,
View Full Code Here


//    npc.add(ConversationStates.QUESTION_1, SpeakerNPC.YES_MESSAGES, new AdminCondition(),
//        ConversationStates.ATTENDING, null, new DebuggeraEnablerAction(true));
//    npc.add(ConversationStates.QUESTION_1, ConversationPhrases.NO_MESSAGES, new AdminCondition(),
//        ConversationStates.ATTENDING, null, new DebuggeraEnablerAction(false));

    npc.behave(Arrays.asList("insane", "crazy", "mad"),
        "Why are you so mean? I AM NOT INSANE. My mummy says, I am a #special child.");
    npc.behave(
        Arrays.asList("special", "special child"),
        "I can see another world in my dreams. That are more thans dreams. There the people are sitting in front of machines called computers. This are realy strange people. They cannot use telepathy without something they call inter-network. But these people and machines are somehow connected to our world. If I concentrate, I can #change thinks in our world.");
    // npc.behave("verschmelzung", "\r\nYou have one hand,\r\nI have the
View Full Code Here

//    npc.add(ConversationStates.QUESTION_1, ConversationPhrases.NO_MESSAGES, new AdminCondition(),
//        ConversationStates.ATTENDING, null, new DebuggeraEnablerAction(false));

    npc.behave(Arrays.asList("insane", "crazy", "mad"),
        "Why are you so mean? I AM NOT INSANE. My mummy says, I am a #special child.");
    npc.behave(
        Arrays.asList("special", "special child"),
        "I can see another world in my dreams. That are more thans dreams. There the people are sitting in front of machines called computers. This are realy strange people. They cannot use telepathy without something they call inter-network. But these people and machines are somehow connected to our world. If I concentrate, I can #change thinks in our world.");
    // npc.behave("verschmelzung", "\r\nYou have one hand,\r\nI have the
    // other.\r\nPut them together,\r\nWe have each other.");
    npc.add(
View Full Code Here

    // Set zone and position
    npc.setPosition(x, y);
    sandbox.add(npc);

    // Create Dialog
    npc.behave("greet", "Hi, how can I help you?");
    npc.behave(
        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
View Full Code Here

    npc.setPosition(x, y);
    sandbox.add(npc);

    // Create Dialog
    npc.behave("greet", "Hi, how can I help you?");
    npc.behave(
        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
View Full Code Here

    // Create Dialog
    npc.behave("greet", "Hi, how can I help you?");
    npc.behave(
        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
    npc.behave("help",
        "You can see what I #offer and take a break to meet new people!");
    npc.behave("bye", "Bye bye!");
View Full Code Here

        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
    npc.behave("help",
        "You can see what I #offer and take a break to meet new people!");
    npc.behave("bye", "Bye bye!");
    try {
      npc.behave("sell", SingletonRepository.getShopList().get(shop));
    } catch (final NoSuchMethodException e) {
View Full Code Here

    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
    npc.behave("help",
        "You can see what I #offer and take a break to meet new people!");
    npc.behave("bye", "Bye bye!");
    try {
      npc.behave("sell", SingletonRepository.getShopList().get(shop));
    } catch (final NoSuchMethodException e) {
      logger.error(e, e);
    }
View Full Code Here

      "It is on the left side of the temple.");
    npc.behave("help",
        "You can see what I #offer and take a break to meet new people!");
    npc.behave("bye", "Bye bye!");
    try {
      npc.behave("sell", SingletonRepository.getShopList().get(shop));
    } catch (final NoSuchMethodException e) {
      logger.error(e, e);
    }

    // TODO Modify Margaret
View Full Code Here

    // Set zone and position
    npc.setPosition(x, y);
    sandbox.add(npc);

    // Create Dialog
    npc.behave("greet", "Hi, how can i #help you?");
    npc.behave("help",
        "Perhaps you would like a free power #upgrade and maybe a #random destination?");
    npc.addGoodbye();
    npc.add(ConversationStates.ATTENDING, "upgrade", null,
        ConversationStates.ATTENDING, null, new UpgradeAction());
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.