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
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