Examples of PlaySoundAction


Examples of games.stendhal.server.entity.npc.action.PlaySoundAction

        addReply("trading", "To start a trade with another player, right-click on them and select 'Trade'. If they also want to trade with you, you'll see a window pop up where you can drag items to offer, and see what is being offered to you. Both click Offer, and then you both need to Accept the offer to complete the trade.");
        addJob("I'm the Customer Advisor here at Semos Bank.");
        addOffer("If you wish to access your personal chest in solitude, I can give you access to a private #vault. A guidebook inside will explain how it works.");   
        addGoodbye("It was a pleasure to serve you.");
        add(ConversationStates.ANY, "vault", new QuestCompletedCondition("armor_dagobert"), ConversationStates.IDLE, null,
            new MultipleActions(new PlaySoundAction("keys-1", true), new VaultChatAction()));
       
        add(ConversationStates.ANY, "vault", new QuestNotCompletedCondition("armor_dagobert"), ConversationStates.ATTENDING, "Perhaps you could do a #favour for me, and then I will tell you more about the private banking vaults.", null);
       
        // remaining behaviour defined in games.stendhal.server.maps.quests.ArmorForDagobert 
      }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.actions.PlaySoundAction

      else if (actionElement.getName().equalsIgnoreCase("play_sound"))
      {
        int range = Integer.parseInt(actionElement.attributeValue("range"));
        String sound = actionElement.attributeValue("sound");
        PlaySound.Type type = PlaySound.Type.valueOf(actionElement.attributeValue("type"));
        PlaySoundAction action = new PlaySoundAction(range, sound, type);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("give_item"))
      {
        int itemId = Integer.parseInt(actionElement.attributeValue("id"));
        long count = Integer.parseInt(actionElement.attributeValue("count"));
        GiveItemAction action = new GiveItemAction(itemId, count);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("announce"))
      {
        String val = actionElement.attributeValue("val");
        if ((val == null) && (time == Integer.MAX_VALUE))
        {
          info("Can't get announce time." + getCurrentFileName());
          continue;
        }
        int val2 = val == null ? time : Integer.parseInt(val);
        EventAction action = new AnnounceAction(val2);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("if"))
      {
        String name = actionElement.attributeValue("name");
        IfElseAction action = new IfElseAction(name, false);
        action.setIfList(parseActions(actionElement, time));
        actions.add(action);
        lastIf = action;
      }
      else if (actionElement.getName().equalsIgnoreCase("ifnot"))
      {
        String name = actionElement.attributeValue("name");
        IfElseAction action = new IfElseAction(name, true);
        action.setIfList(parseActions(actionElement, time));
        actions.add(action);
        lastIf = action;
      }
      else if (actionElement.getName().equalsIgnoreCase("else"))
      {
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.