mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
* 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
62 lines
2.2 KiB
Java
Executable File
62 lines
2.2 KiB
Java
Executable File
package script.npe;
|
|
|
|
import script.library.groundquests;
|
|
import script.location;
|
|
import script.obj_id;
|
|
|
|
public class handoff_to_tatooine extends script.base_script
|
|
{
|
|
public handoff_to_tatooine()
|
|
{
|
|
}
|
|
public static final String questNewbieStart = "quest/speeder_quest";
|
|
public static final String questNewbieStartBH = "quest/speeder_quest";
|
|
public static final String questCrafterEntertainer = "quest/tatooine_eisley_noncombat";
|
|
public int OnLogin(obj_id self) throws InterruptedException
|
|
{
|
|
location origin = getLocation(self);
|
|
location fighting = new location(3521.0f, 0.0f, -4821.0f, origin.area);
|
|
location crafty = new location(3309.0f, 6.0f, -4785.0f, origin.area);
|
|
String profession = getSkillTemplate(self);
|
|
int crafter = profession.indexOf("trader");
|
|
int entertainer = profession.indexOf("entertainer");
|
|
int bountyhunter = profession.indexOf("bounty_hunter");
|
|
if (crafter > -1 || entertainer > -1)
|
|
{
|
|
if (!groundquests.isQuestActiveOrComplete(self, questCrafterEntertainer))
|
|
{
|
|
groundquests.grantQuest(self, questCrafterEntertainer);
|
|
}
|
|
}
|
|
else if (bountyhunter > -1)
|
|
{
|
|
if (groundquests.hasCompletedQuest(self, questNewbieStartBH) || groundquests.isQuestActive(self, questNewbieStartBH))
|
|
{
|
|
detachScript(self, "npe.handoff_to_tatooine");
|
|
}
|
|
else
|
|
{
|
|
groundquests.requestGrantQuest(self, questNewbieStartBH);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (groundquests.hasCompletedQuest(self, questNewbieStart) || groundquests.isQuestActive(self, questNewbieStart))
|
|
{
|
|
detachScript(self, "npe.handoff_to_tatooine");
|
|
}
|
|
else
|
|
{
|
|
groundquests.requestGrantQuest(self, questNewbieStart);
|
|
}
|
|
}
|
|
if (crafter > -1)
|
|
{
|
|
newbieTutorialSetToolbarElement(self, 10, "/survey");
|
|
}
|
|
newbieTutorialEnableHudElement(self, "radar", true, 0);
|
|
detachScript(self, "npe.handoff_to_tatooine");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|