Package instances

Examples of instances.GvGInstance$Finish


    }
    for (int i = 0; i < leaderList.size(); i += 2)
    {
      Player team1Leader = leaderList.get(i).get();
      Player team2Leader = leaderList.get(i + 1).get();
      GvGInstance r = new GvGInstance();
      r.setTeam1(team1Leader.getParty());
      r.setTeam2(team2Leader.getParty());
      r.init(iz);
      r.setReturnLoc(GvG.RETURN_LOC);
      for (Player member : team1Leader.getParty().getPartyMembers())
      {
        Functions.unRide(member);
        Functions.unSummonPet(member, true);
        member.setTransformation(0);
        member.setInstanceReuse(instancedZoneId, System.currentTimeMillis());
        member.dispelBuffs();
        member.teleToLocation(Location.findPointToStay(GvG.TEAM1_LOC, 0, 150, r.getGeoIndex()), r);
      }
      for (Player member : team2Leader.getParty().getPartyMembers())
      {
        Functions.unRide(member);
        Functions.unSummonPet(member, true);
        member.setTransformation(0);
        member.setInstanceReuse(instancedZoneId, System.currentTimeMillis());
        member.dispelBuffs();
        member.teleToLocation(Location.findPointToStay(GvG.TEAM2_LOC, 0, 150, r.getGeoIndex()), r);
      }
      r.start();
    }
    leaderList.clear();
    _log.info("GvG: Event started successfuly.");
  }
View Full Code Here

TOP

Related Classes of instances.GvGInstance$Finish

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.