Files
dsrc/sku.0/sys.server/compiled/game/script/theme_park/naboo/gating.java
T
TekaohandGitHub 5c2e112349 Java 11.0.2 migration (#32)
* Code compiles - execution NOT tested

* updating gitignore

* Removed intellij settings files

* Removed more intellij files

* Added exclusion for JDK classes.

* Fixed purchasing script for vendors that have listed coin types.

* Updated script to not kick off until the entire preload is complete.

* adds static name entry for Solo movie poster and tcg9 vendor entry

* clean up empty and orphaned object templates

* adds placeholder black market (static) spawns

* corrects entries for the video game table to correctly set it in tcg series 2 and remove series 1 console errors

* Updated gitignore and removed intellij project files

* Fixed appearance reference for thranta payroll and kashyyyk door, added skipLosCheck objvar due to cannit see issue. Requires updated src

* Fixed appearance and template for terminal (#2)

* Fixed appearance and template for terminal (#3)

* Fixed appearance and template for terminal (#4)

* Deleted another faulty/orphaned object template

* Fixed gcw ranks option on frog. Only issue is that it doesn't award the officer commands or badges.

* Fixed some unneeded java 11 changes
2019-04-18 18:31:52 -05:00

90 lines
3.6 KiB
Java
Executable File

package script.theme_park.naboo;
import script.library.factions;
import script.library.quests;
import script.obj_id;
public class gating extends script.base_script
{
public gating()
{
}
public static final String KAJA_QUEST_1 = "kajaQuest1";
public static final String KAJA_QUEST_2 = "kajaQuest2";
public static final String LOAM_QUEST_1 = "loamQuest1";
public static final String HETHRIR_QUEST_1 = "hethrirQuest1";
public static final String VADER_QUEST_1 = "vaderQuest1";
public static final String VADER_QUEST_2 = "vaderQuest2";
public static final String EMPEROR_QUEST_1 = "emperorQuest1";
public static final String EMPEROR_QUEST_2 = "emperorQuest2";
public static final String EMPEROR_QUEST_3 = "emperorQuest3";
public static final String BOSS_NASS_INF_QUEST_1 = "nassInfQuest1";
public static final String GOR_EBELT_INF_QUEST_1 = "gorEbeltInfQuest1";
public static final String HETH_VET_CRAFTING_1 = "hethVetCrafting1";
public static final String HETH_VET_COMBAT_1 = "hethVetCombat1";
public static final String LOAM_VET_CRAFTING_1 = "loamVetCrafting1";
public static final String EMPEROR_VET_GROUP_1 = "emperorVetGroup1";
public static final String VADER_VET_GROUP_1 = "vaderVetGroup1";
public static final String NASS_VET_CRAFTING_1 = "nassVetCrafting1";
public static final String NASS_VET_CRAFTING_2 = "nassVetCrafting2";
public static final String NASS_VET_COMBAT_1 = "nassVetCombat1";
public static final String NASS_VET_COMBAT_2 = "nassVetCombat2";
public static final String NASS_VET_GROUP_1 = "nassVetGroup1";
public static final String EBELT_VET_CRAFTING_1 = "ebeltVetCrafting1";
public static final String EBELT_VET_COMBAT_1 = "ebeltVetCombat1";
public static final String EBELT_VET_GROUP_1 = "ebeltVetGroup1";
public static boolean canTakeQuest(obj_id player, String questId) throws InterruptedException
{
if (quests.hasCompletedQuest(player, questId))
{
return false;
}
if (factions.getFactionStanding(player, factions.FACTION_IMPERIAL) < 500.0f)
{
return false;
}
if (questId.equals(KAJA_QUEST_1))
{
return true;
}
if (questId.equals(KAJA_QUEST_2))
{
return quests.hasCompletedQuest(player, KAJA_QUEST_1);
}
if (questId.equals(LOAM_QUEST_1))
{
return quests.hasCompletedQuest(player, KAJA_QUEST_2);
}
if (questId.equals(HETHRIR_QUEST_1))
{
return quests.hasCompletedQuest(player, LOAM_QUEST_1);
}
if (questId.equals(EMPEROR_QUEST_1))
{
return quests.hasCompletedQuest(player, HETHRIR_QUEST_1);
}
if (questId.equals(EMPEROR_QUEST_2))
{
return quests.hasCompletedQuest(player, EMPEROR_QUEST_1);
}
if (questId.equals(EMPEROR_QUEST_3))
{
return quests.hasCompletedQuest(player, EMPEROR_QUEST_2);
}
if (questId.equals(VADER_QUEST_1))
{
return quests.hasCompletedQuest(player, EMPEROR_QUEST_3);
}
if (questId.equals(VADER_QUEST_2))
{
return quests.hasCompletedQuest(player, VADER_QUEST_1);
}
debugServerConsoleMsg(player, "Error: Don't know WTF " + questId + " quest is!");
return false;
}
public static boolean canTakeInfiltrationMission(obj_id player, String questId) throws InterruptedException
{
return true;
}
}