mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
23 lines
681 B
Java
Executable File
23 lines
681 B
Java
Executable File
package script.quest.task;
|
|
|
|
import script.library.quests;
|
|
import script.obj_id;
|
|
|
|
public class encounter extends script.base_script
|
|
{
|
|
public encounter()
|
|
{
|
|
}
|
|
public int OnQuestActivated(obj_id self, int questRow) throws InterruptedException
|
|
{
|
|
LOG("newquests", "encounter - OnQuestActivated(+ " + questRow + ")");
|
|
if (quests.isMyQuest(questRow, "quest.task.encounter"))
|
|
{
|
|
boolean success = quests.doEncounterSpawn(self, questRow);
|
|
String questName = quests.getDataEntry(questRow, "NAME");
|
|
quests.complete(questName, self, success);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|