mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-14 23:07:51 -04:00
21 lines
449 B
Java
Executable File
21 lines
449 B
Java
Executable File
package script.fishing;
|
|
|
|
import script.obj_id;
|
|
|
|
public class bait extends script.base_script
|
|
{
|
|
public bait()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
setCount(self, rand(2, 5));
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnInitialize(obj_id self) throws InterruptedException
|
|
{
|
|
detachScript(self, "fishing.bait");
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|