Package lineage2.gameserver.templates.npc

Examples of lineage2.gameserver.templates.npc.RandomActions.addAction()


            org.dom4j.Element nextElement = (org.dom4j.Element)nextIterator.next();
            int id = Integer.parseInt(nextElement.attributeValue("id"));
            NpcString phrase = nextElement.attributeValue("phrase_id") == null ? null : NpcString.valueOf(Integer.parseInt(nextElement.attributeValue("phrase_id")));
            int socialActionId = nextElement.attributeValue("social_action_id") == null ? -1 : Integer.parseInt(nextElement.attributeValue("social_action_id"));
            int delay = nextElement.attributeValue("delay") == null ? 0 : Integer.parseInt(nextElement.attributeValue("delay"));
            randomActions.addAction(new RandomActions.Action(id, phrase, socialActionId, delay));
          }
          template.setRandomActions(randomActions);
        }
      }
      getHolder().addTemplate(template);
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.