Files
dsrc/sku.0/sys.server/compiled/game/script/quest/task/destroy.java
T

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;
}
}