mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
32 lines
819 B
Java
32 lines
819 B
Java
package script.item.special;
|
|
|
|
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 autoinsure extends script.base_script
|
|
{
|
|
public autoinsure()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
messageTo(self, "handleAutoInsure", null, 1.0f, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnInitialize(obj_id self) throws InterruptedException
|
|
{
|
|
messageTo(self, "handleAutoInsure", null, 2.0f, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int handleAutoInsure(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
setAutoInsured(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|