Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2StaticObjectInstance


      StatsSet npcDat = L2NpcTemplate.getEmptyStatsSet();
      npcDat.set("npcId", 0);
      npcDat.set("name", "Helm");
      npcDat.set("type", "L2StaticObject");
      L2NpcTemplate template = new L2NpcTemplate(npcDat);
      L2StaticObjectInstance controlKey = new L2StaticObjectInstance(_owner.getClanId(), template);
      controlKey.setType(3);
      controlKey.setLoc(getLoc());
      _controlKey = controlKey;
    }
  }
View Full Code Here


  public static void spawnFlagPoles(Fortress fortress)
  {
    for(SiegeSpawn sp : _flagPoleSpawnList.get(fortress.getId()))
    {
      String line = "FlagPole;" + sp.getNpcId() + ";" + sp.getLoc().x + ";" + sp.getLoc().y + ";" + sp.getLoc().z + ";3;none;0;0";
      L2StaticObjectInstance flagPole = StaticObjectsTable.parse(line);
      fortress.getSiege().addFlagPole(flagPole);
    }
  }
View Full Code Here

      {
        if(line.trim().length() == 0 || line.startsWith("#"))
        {
          continue;
        }
        L2StaticObjectInstance obj = parse(line);
        _staticObjects.put(obj.getStaticObjectId(), obj);
      }
    }
    catch(FileNotFoundException e)
    {
      _log.warning("staticobjects.csv is missing in data folder");
View Full Code Here

    npcDat.set("npcId", id);
    npcDat.set("name", type == 0 ? "Arena" : "");
    npcDat.set("jClass", "static");
    npcDat.set("type", "L2StaticObject");
    L2NpcTemplate template = new L2NpcTemplate(npcDat);
    L2StaticObjectInstance obj = new L2StaticObjectInstance(IdFactory.getInstance().getNextId(), template);
    obj.setType(type);
    obj.setStaticObjectId(id);
    obj.setFilePath(filePath);
    obj.setMapX(mapX);
    obj.setMapY(mapY);
    obj.spawnMe(new Location(x, y, z));
    return obj;
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2StaticObjectInstance

Copyright © 2018 www.massapicom. 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.