mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
24 lines
716 B
Java
Executable File
24 lines
716 B
Java
Executable File
package script.quest.task;
|
|
|
|
import script.library.quests;
|
|
import script.obj_id;
|
|
|
|
public class destroy extends script.base_script
|
|
{
|
|
public destroy()
|
|
{
|
|
}
|
|
public int OnIncapacitateTarget(obj_id self, obj_id target) throws InterruptedException
|
|
{
|
|
LOG("newquests", "destroy - OnIncapacitateTarget()");
|
|
int questId = quests.getQuestIdForTarget(self, target);
|
|
if (questId > -1)
|
|
{
|
|
LOG("newquests", "destroy - Destroyed target is for a player's current active task");
|
|
String questName = quests.getDataEntry(questId, "NAME");
|
|
quests.complete(questName, self, true);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|