mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
32 lines
882 B
Java
32 lines
882 B
Java
package script.quest.task;
|
|
|
|
import script.*;
|
|
import script.base_class.*;
|
|
import script.combat_engine.*;
|
|
import java.util.Arrays;
|
|
import java.util.Hashtable;
|
|
import java.util.Vector;
|
|
import script.base_script;
|
|
|
|
import script.library.quests;
|
|
import script.library.utils;
|
|
|
|
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;
|
|
}
|
|
}
|