l2jkain Posted February 25, 2019 Share Posted February 25, 2019 Hello anyone could help me with this method for aCis? + /** + * Method called to spawn a team flag + * @param teamId as Integer + * @return L2Spawn + */ + private L2Spawn spawnFlag(int teamId) + { + return NpcUtils.spawnSingle(teamId == 1 ? BLUE_NPC_ID : RED_NPC_ID, getConfigs().FLAGS.get(teamId), eventInstance); + } + Cod method jServe /** * Method spawnSingle. * @param npcId int * @param x int * @param y int * @param z int * @return NpcInstance */ public static NpcInstance spawnSingle(int npcId, int x, int y, int z) { return spawnSingle(npcId, new Location(x, y, z, -1), ReflectionManager.DEFAULT, 0); } Link to comment Share on other sites More sharing options...
0 Kara Posted February 25, 2019 Share Posted February 25, 2019 (edited) What is this? As i see the spawnSingle just spawn a monster. You want just to spawn a monster in aCis? Edited February 25, 2019 by Kara` Link to comment Share on other sites More sharing options...
0 SweeTs Posted February 25, 2019 Share Posted February 25, 2019 Use regular spawn method. Link to comment Share on other sites More sharing options...
Question
l2jkain
Hello anyone could help me with this method for aCis?
+ /**
+ * Method called to spawn a team flag
+ * @param teamId as Integer
+ * @return L2Spawn
+ */
+ private L2Spawn spawnFlag(int teamId)
+ {
+ return NpcUtils.spawnSingle(teamId == 1 ? BLUE_NPC_ID : RED_NPC_ID, getConfigs().FLAGS.get(teamId), eventInstance);
+ }
+
Cod method jServe
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now