mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
34 lines
1.0 KiB
Java
34 lines
1.0 KiB
Java
package script.item.camp;
|
|
|
|
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.structure;
|
|
|
|
public class cloning_tube extends script.base_script
|
|
{
|
|
public cloning_tube()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
messageTo(self, "handleInitializeCloningTube", null, 3.0f, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int handleInitializeCloningTube(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
attachScript(self, "structure.municipal.cloning_facility");
|
|
String myTemplate = getTemplateName(self);
|
|
dictionary facilityData = dataTableGetRow(structure.DATATABLE_CLONING_FACILITY_RESPAWN, myTemplate);
|
|
dictionary dict = new dictionary();
|
|
dict.put("facilityData", facilityData);
|
|
messageTo(self, "registerCloningFacility", dict, 10.0f, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|