Jump to content
  • 0

CTF aCis


l2jkain

Question


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

2 answers to this question

Recommended Posts

  • 0

What is this?

 

As i see the spawnSingle just spawn a monster. You want just to spawn a monster in aCis?

Edited by Kara`
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...