Affecting fishing speed of a player

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

JNJPIG

New Member
Feb 19, 2024
6
0
1
23
I have a skript that sets wind currents to a certain direction and when the player fishes in the direction of the wind I want the player to have increased fishing speed. I have the arrow indications set up but I just dont know how to actually increase the fishing rates. Anything would be helpful like temporarily giving the player an extra lure level or if there is simply a way to change fishing speeds.

Here is my current code although it really isn't too important. The added fishing speed code would go underneath the conditional "if {_dirNumber} is 0:"


on load:
set {directions::*} to "north", "northeast", "east", "southeast", "south", "southwest", "west", "northwest"
set {windDirection} to random element of {directions::*}
broadcast "&b&lThe wind is now blowing from the %{windDirection}% direction!"

every 30 seconds:
set {windDirection} to random element of {directions::*}
if {windDirection} is "north":
set {windNumber} to 1
if {windDirection} is "northeast":
set {windNumber} to 2
if {windDirection} is "east":
set {windNumber} to 3
if {windDirection} is "southeast":
set {windNumber} to 4
if {windDirection} is "south":
set {windNumber} to 5
if {windDirection} is "southwest":
set {windNumber} to 6
if {windDirection} is "west":
set {windNumber} to 7
if {windDirection} is "northwest":
set {windNumber} to 8

broadcast "&b&lThe wind is now blowing from the %{windDirection}% direction!"


on fishing:
if player's yaw is between 157.5 and 202.5:
set {_playerDir} to 1
if player's yaw is between 202.5 and 247.5:
set {_playerDir} to 2
if player's yaw is between 247.5 and 292.5:
set {_playerDir} to 3
if player's yaw is between 292.5 and 337.5:
set {_playerDir} to 4
if player's yaw is between 337.5 and 360:
set {_playerDir} to 5
if player's yaw is between 0 and 22.5:
set {_playerDir} to 5
if player's yaw is between 22.5 and 67.5:
set {_playerDir} to 6
if player's yaw is between 67.5 and 112.5:
set {_playerDir} to 7
if player's yaw is between 112.5 and 157.5:
set {_playerDir} to 8
set {_dirNumber} to {_playerDir} - {windNumber}

if {_dirNumber} is 1 or -7:
send action bar "&f↖" to player
if {_dirNumber} is 2 or -6:
send action bar "&f←" to player
if {_dirNumber} is 3 or -5:
send action bar "&f↙" to player
if {_dirNumber} is 4 or -4:
send action bar "&f↓" to player
if {_dirNumber} is 5 or -3:
send action bar "&f↘" to player
if {_dirNumber} is 6 or -2:
send action bar "&f→" to player
if {_dirNumber} is 7 or -1:
send action bar "&f↗" to player
if {_dirNumber} is 0:
send action bar "&f↑" to player

send "%{_dirNumber}%" to player
 
I have a skript that sets wind currents to a certain direction and when the player fishes in the direction of the wind I want the player to have increased fishing speed. I have the arrow indications set up but I just dont know how to actually increase the fishing rates. Anything would be helpful like temporarily giving the player an extra lure level or if there is simply a way to change fishing speeds.

Here is my current code although it really isn't too important. The added fishing speed code would go underneath the conditional "if {_dirNumber} is 0:"


on load:
set {directions::*} to "north", "northeast", "east", "southeast", "south", "southwest", "west", "northwest"
set {windDirection} to random element of {directions::*}
broadcast "&b&lThe wind is now blowing from the %{windDirection}% direction!"

every 30 seconds:
set {windDirection} to random element of {directions::*}
if {windDirection} is "north":
set {windNumber} to 1
if {windDirection} is "northeast":
set {windNumber} to 2
if {windDirection} is "east":
set {windNumber} to 3
if {windDirection} is "southeast":
set {windNumber} to 4
if {windDirection} is "south":
set {windNumber} to 5
if {windDirection} is "southwest":
set {windNumber} to 6
if {windDirection} is "west":
set {windNumber} to 7
if {windDirection} is "northwest":
set {windNumber} to 8

broadcast "&b&lThe wind is now blowing from the %{windDirection}% direction!"


on fishing:
if player's yaw is between 157.5 and 202.5:
set {_playerDir} to 1
if player's yaw is between 202.5 and 247.5:
set {_playerDir} to 2
if player's yaw is between 247.5 and 292.5:
set {_playerDir} to 3
if player's yaw is between 292.5 and 337.5:
set {_playerDir} to 4
if player's yaw is between 337.5 and 360:
set {_playerDir} to 5
if player's yaw is between 0 and 22.5:
set {_playerDir} to 5
if player's yaw is between 22.5 and 67.5:
set {_playerDir} to 6
if player's yaw is between 67.5 and 112.5:
set {_playerDir} to 7
if player's yaw is between 112.5 and 157.5:
set {_playerDir} to 8
set {_dirNumber} to {_playerDir} - {windNumber}

if {_dirNumber} is 1 or -7:
send action bar "&f↖" to player
if {_dirNumber} is 2 or -6:
send action bar "&f←" to player
if {_dirNumber} is 3 or -5:
send action bar "&f↙" to player
if {_dirNumber} is 4 or -4:
send action bar "&f↓" to player
if {_dirNumber} is 5 or -3:
send action bar "&f↘" to player
if {_dirNumber} is 6 or -2:
send action bar "&f→" to player
if {_dirNumber} is 7 or -1:
send action bar "&f↗" to player
if {_dirNumber} is 0:
send action bar "&f↑" to player

send "%{_dirNumber}%" to player
I would not do this in skript…. Your gunna end up with 10 addons installed which I would rather have a plugin for it (or make my own plugin).
 
  • Like
Reactions: JNJPIG
I would not do this in skript…. Your gunna end up with 10 addons installed which I would rather have a plugin for it (or make my own plugin).
I thought it would be pretty easy since the only thing needed is a way to make fishing slightly faster somehow.
 
I have a skript that sets wind currents to a certain direction and when the player fishes in the direction of the wind I want the player to have increased fishing speed. I have the arrow indications set up but I just dont know how to actually increase the fishing rates. Anything would be helpful like temporarily giving the player an extra lure level or if there is simply a way to change fishing speeds.

Here is my current code although it really isn't too important. The added fishing speed code would go underneath the conditional "if {_dirNumber} is 0:"


on load:
set {directions::*} to "north", "northeast", "east", "southeast", "south", "southwest", "west", "northwest"
set {windDirection} to random element of {directions::*}
broadcast "&b&lThe wind is now blowing from the %{windDirection}% direction!"

every 30 seconds:
set {windDirection} to random element of {directions::*}
if {windDirection} is "north":
set {windNumber} to 1
if {windDirection} is "northeast":
set {windNumber} to 2
if {windDirection} is "east":
set {windNumber} to 3
if {windDirection} is "southeast":
set {windNumber} to 4
if {windDirection} is "south":
set {windNumber} to 5
if {windDirection} is "southwest":
set {windNumber} to 6
if {windDirection} is "west":
set {windNumber} to 7
if {windDirection} is "northwest":
set {windNumber} to 8

broadcast "&b&lThe wind is now blowing from the %{windDirection}% direction!"


on fishing:
if player's yaw is between 157.5 and 202.5:
set {_playerDir} to 1
if player's yaw is between 202.5 and 247.5:
set {_playerDir} to 2
if player's yaw is between 247.5 and 292.5:
set {_playerDir} to 3
if player's yaw is between 292.5 and 337.5:
set {_playerDir} to 4
if player's yaw is between 337.5 and 360:
set {_playerDir} to 5
if player's yaw is between 0 and 22.5:
set {_playerDir} to 5
if player's yaw is between 22.5 and 67.5:
set {_playerDir} to 6
if player's yaw is between 67.5 and 112.5:
set {_playerDir} to 7
if player's yaw is between 112.5 and 157.5:
set {_playerDir} to 8
set {_dirNumber} to {_playerDir} - {windNumber}

if {_dirNumber} is 1 or -7:
send action bar "&f↖" to player
if {_dirNumber} is 2 or -6:
send action bar "&f←" to player
if {_dirNumber} is 3 or -5:
send action bar "&f↙" to player
if {_dirNumber} is 4 or -4:
send action bar "&f↓" to player
if {_dirNumber} is 5 or -3:
send action bar "&f↘" to player
if {_dirNumber} is 6 or -2:
send action bar "&f→" to player
if {_dirNumber} is 7 or -1:
send action bar "&f↗" to player
if {_dirNumber} is 0:
send action bar "&f↑" to player

send "%{_dirNumber}%" to player
hey if you just want to change fishing speed most of this is kinda useless instead of directions, reply to me if you are talking about bobbing time or it being reeled in or out
 
hey if you just want to change fishing speed most of this is kinda useless instead of directions, reply to me if you are talking about bobbing time or it being reeled in or out
I just wanna increase bobbing time, my current skript is for a wind feature where the wind flows a new direction every few minutes and if you fish in that direction you get faster fishing speed so you can fish more stuff. all i need is a few lines of code to actually speed up the bobbing time.
 
I just wanna increase bobbing time, my current skript is for a wind feature where the wind flows a new direction every few minutes and if you fish in that direction you get faster fishing speed so you can fish more stuff. all i need is a few lines of code to actually speed up the bobbing time.
honestly i dont think u can change bobbing time with skript directly ive looked at addons and none have anything like this either the way you are going is probably a good way but a long one so i dont think ill be able to hold much more but their should be actual plugins for this