mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-14 23:07:51 -04:00
33 lines
931 B
Java
Executable File
33 lines
931 B
Java
Executable File
package script.fishing;
|
|
|
|
import script.dictionary;
|
|
import script.library.minigame;
|
|
import script.obj_id;
|
|
|
|
public class npc extends script.base_script
|
|
{
|
|
public npc()
|
|
{
|
|
}
|
|
public int OnDetach(obj_id self) throws InterruptedException
|
|
{
|
|
minigame.cleanupFishing(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnEnteredCombat(obj_id self) throws InterruptedException
|
|
{
|
|
minigame.stopFishing(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int handleFishingTick(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int handlePlayCastSplash(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
minigame.playCastSplash(self, params);
|
|
messageTo(self, minigame.HANDLER_FISHING_TICK, null, minigame.FISHING_TICK, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|