mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
17 lines
286 B
Plaintext
17 lines
286 B
Plaintext
trigger OnAttach()
|
|
{
|
|
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;
|
|
} |