mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-29 23:15:55 -04:00
30 lines
717 B
Java
30 lines
717 B
Java
package script.item.component;
|
|
|
|
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;
|
|
|
|
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;
|
|
}
|
|
}
|