mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-14 23:07:51 -04:00
24 lines
581 B
Java
Executable File
24 lines
581 B
Java
Executable File
package script.item.component;
|
|
|
|
import script.obj_id;
|
|
|
|
public class serialize extends script.base_script
|
|
{
|
|
public serialize()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
obj_id serial = getTopMostContainer(self);
|
|
if (!isIdValid(serial))
|
|
{
|
|
long id = 192837465;
|
|
serial = getObjIdWithNull(id);
|
|
}
|
|
setCraftedId(self, serial);
|
|
setCrafter(self, serial);
|
|
detachScript(self, "item.component.serialize");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|