Ignore:
Timestamp:
Jan 16, 2012 7:56:19 AM (4 months ago)
Author:
MELERIX
Message:

STABLE: Sync with BETA [8629]

Location:
trunk/L2J_DataPack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/L2J_DataPack

  • trunk/L2J_DataPack/dist/game/data/scripts/teleports/StakatoNest/StakatoNest.java

    r7665 r8630  
    1515package teleports.StakatoNest; 
    1616 
     17import com.l2jserver.gameserver.model.Location; 
    1718import com.l2jserver.gameserver.model.actor.L2Npc; 
    1819import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; 
    1920import com.l2jserver.gameserver.model.quest.Quest; 
    2021import com.l2jserver.gameserver.model.quest.QuestState; 
    21 import com.l2jserver.gameserver.model.quest.State; 
    2222 
    2323public class StakatoNest extends Quest 
    2424{ 
    25         private final static int[][] data = 
     25        private final static Location[] _locs = 
    2626        { 
    27                 {80456, -52322, -5640}, 
    28                 {88718, -46214, -4640}, 
    29                 {87464, -54221, -5120}, 
    30                 {80848, -49426, -5128}, 
    31                 {87682, -43291, -4128} 
     27                new Location(80456, -52322, -5640), 
     28                new Location(88718, -46214, -4640), 
     29                new Location(87464, -54221, -5120), 
     30                new Location(80848, -49426, -5128), 
     31                new Location(87682, -43291, -4128) 
    3232        }; 
    3333         
     
    4949                        st = newQuestState(player); 
    5050                 
    51                 int loc = Integer.parseInt(event) - 1; 
     51                int index = Integer.parseInt(event) - 1; 
    5252                 
    53                 if (data.length > loc) 
     53                if (_locs.length > index) 
    5454                { 
    55                         int x = data[loc][0]; 
    56                         int y = data[loc][1]; 
    57                         int z = data[loc][2]; 
     55                        Location loc = _locs[index]; 
    5856                         
    5957                        if (player.getParty() != null) 
     
    6260                                { 
    6361                                        if (partyMember.isInsideRadius(player, 1000, true, true)) 
    64                                                 partyMember.teleToLocation(x, y, z); 
     62                                                partyMember.teleToLocation(loc, true); 
    6563                                } 
    6664                        } 
    67                         player.teleToLocation(x, y, z); 
     65                        player.teleToLocation(loc, false); 
    6866                        st.exitQuest(true); 
    6967                } 
     
    7775                String htmltext = ""; 
    7876                QuestState accessQuest = player.getQuestState("240_ImTheOnlyOneYouCanTrust"); 
    79                 if (accessQuest != null && accessQuest.getState() == State.COMPLETED) 
     77                if ((accessQuest != null) && accessQuest.isCompleted()) 
    8078                        htmltext = "32640.htm"; 
    8179                else 
Note: See TracChangeset for help on using the changeset viewer.