Examples of behave()


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

    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

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

      "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

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

    // 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

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

    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());
    npc.add(ConversationStates.ATTENDING, "random", null,
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.