Examples of addSpawn()


Examples of com.garbagemule.MobArena.region.ArenaRegion.addSpawn()

       
        region.set("arena", new Location(world, loc.getX(), y1+1, loc.getZ()));
        region.set("lobby", new Location(world, x1+2, ly1+1, z1+2));
        region.set("spectator", new Location(world, loc.getX(), y2+1, loc.getZ()));
       
        region.addSpawn("s1", new Location(world, x1+3, y1+2, z1+3));
        region.addSpawn("s2", new Location(world, x1+3, y1+2, z2-3));
        region.addSpawn("s3", new Location(world, x2-3, y1+2, z1+3));
        region.addSpawn("s4", new Location(world, x2-3, y1+2, z2-3));
        region.save();
       
View Full Code Here

Examples of com.garbagemule.MobArena.region.ArenaRegion.addSpawn()

        region.set("arena", new Location(world, loc.getX(), y1+1, loc.getZ()));
        region.set("lobby", new Location(world, x1+2, ly1+1, z1+2));
        region.set("spectator", new Location(world, loc.getX(), y2+1, loc.getZ()));
       
        region.addSpawn("s1", new Location(world, x1+3, y1+2, z1+3));
        region.addSpawn("s2", new Location(world, x1+3, y1+2, z2-3));
        region.addSpawn("s3", new Location(world, x2-3, y1+2, z1+3));
        region.addSpawn("s4", new Location(world, x2-3, y1+2, z2-3));
        region.save();
       
        am.reloadConfig();
View Full Code Here

Examples of com.garbagemule.MobArena.region.ArenaRegion.addSpawn()

        region.set("lobby", new Location(world, x1+2, ly1+1, z1+2));
        region.set("spectator", new Location(world, loc.getX(), y2+1, loc.getZ()));
       
        region.addSpawn("s1", new Location(world, x1+3, y1+2, z1+3));
        region.addSpawn("s2", new Location(world, x1+3, y1+2, z2-3));
        region.addSpawn("s3", new Location(world, x2-3, y1+2, z1+3));
        region.addSpawn("s4", new Location(world, x2-3, y1+2, z2-3));
        region.save();
       
        am.reloadConfig();
        return true;
View Full Code Here

Examples of com.garbagemule.MobArena.region.ArenaRegion.addSpawn()

        region.set("spectator", new Location(world, loc.getX(), y2+1, loc.getZ()));
       
        region.addSpawn("s1", new Location(world, x1+3, y1+2, z1+3));
        region.addSpawn("s2", new Location(world, x1+3, y1+2, z2-3));
        region.addSpawn("s3", new Location(world, x2-3, y1+2, z1+3));
        region.addSpawn("s4", new Location(world, x2-3, y1+2, z2-3));
        region.save();
       
        am.reloadConfig();
        return true;
    }
View Full Code Here

Examples of l2p.gameserver.model.Reflection.addSpawn()

          L2MonsterInstance npc = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(mobId));
          npc.setSpawnedLoc(Rnd.coordsRandomize(actor.getLoc(), 400, 1000));
          npc.setReflection(actor.getReflection());
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
          r.addSpawn(npc.getSpawn());
          L2Character randomHated = actor.getRandomHated();
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, randomHated != null ? randomHated : attacker, Rnd.get(1, 100));
        }
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.Reflection.addSpawn()

        L2MonsterInstance trap = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(TRAP_NPC_ID));
        trap.setSpawnedLoc(TRAP_LOCS[index]);
        trap.setReflection(r);
        trap.onSpawn();
        trap.spawnMe(trap.getSpawnedLoc());
        r.addSpawn(trap.getSpawn());
        if(index < _traps.size())
        {
          _traps.remove(index);
        }
        _traps.add(index, trap);
View Full Code Here

Examples of l2p.gameserver.model.Reflection.addSpawn()

          npc.setReflection(r);
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
          if(r.getId() > 0)
          {
            r.addSpawn(npc.getSpawn());
          }
          if(killer != null && killer.isPlayable())
          {
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, killer, 100);
            killer.setTarget(npc);
View Full Code Here

Examples of l2p.gameserver.model.Reflection.addSpawn()

            npc.setChampion(((L2MonsterInstance) actor).getChampion());
            npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp(), true);
            npc.spawnMe(npc.getSpawnedLoc());
            if(r.getId() > 0)
            {
              r.addSpawn(npc.getSpawn());
            }
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
            actor.decayMe();
            actor.doDie(actor);
            attacker.setTarget(npc);
View Full Code Here

Examples of l2p.gameserver.model.quest.QuestState.addSpawn()

    }
    for(int n = 1; n <= 5; n++)
    {
      for(int i : CHESTS)
      {
        leader.addSpawn(i, 102100, 103450, -3400, 0, 100, 60000);
      }
    }
    leader.startQuestTimer("chest_timer", 60000);
  }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState.addSpawn()

    {
      case HelpingS:
        if (npcId == Helping && cond == 16) //Aden Castle
        {
          ItemFunctions.removeItem(st.getPlayer(), HelpingSeed, 1L, true);
          /*NpcInstance mob =*/ st.addSpawn(HelpingTree, 148216, 14856, -1393);
          st.giveItems(Ashes, 1);
          st.playSound("ItemSound.quest_middle");
          st.setCond(17);
        }
        break;
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.