Files
dsrc/sku.0/sys.server/compiled/game/script/item/camp/cloning_tube.java
T
2018-06-07 00:32:29 +01:00

28 lines
954 B
Java
Executable File

package script.item.camp;
import script.dictionary;
import script.library.structure;
import script.obj_id;
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;
}
}