mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-03 03:15:55 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package script.player.skill;
|
||||
|
||||
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;
|
||||
|
||||
import script.library.utils;
|
||||
import script.library.minigame;
|
||||
|
||||
public class minigame_cmd extends script.base_script
|
||||
{
|
||||
public minigame_cmd()
|
||||
{
|
||||
}
|
||||
public static final String STF = "som/som_item";
|
||||
public int cmdFish(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
|
||||
{
|
||||
if (!isIdValid(self))
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
String planetName = getCurrentSceneName();
|
||||
if (planetName.startsWith("mustafar"))
|
||||
{
|
||||
sendSystemMessage(self, new string_id(STF, "cannot_fish"));
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (minigame.isFishing(self))
|
||||
{
|
||||
minigame.stopFishing(self);
|
||||
queueCommand(self, (138370278), null, "", COMMAND_PRIORITY_DEFAULT);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
minigame.startFishing(self);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user