Package games.stendhal.server.core.scripting

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.