summaryrefslogtreecommitdiff
path: root/npc/functions/fishing.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/fishing.txt')
-rw-r--r--npc/functions/fishing.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 44c620a2..88fef427 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -43,7 +43,7 @@ OnBite:
OnCleanUp:
dispbottom l("You waited too long and lost the bait...");
- specialeffect2 getvariableofnpc(.failure_fx, @fishing_spot$), SELF; // event fail
+ specialeffect(getvariableofnpc(.failure_fx, @fishing_spot$), SELF, playerattached()); // event fail
OnPCLogoutEvent:
fishing_cleanup @fishing_spot$;
@fishing_spot$ = ""; // unbind fishing npc
@@ -157,7 +157,7 @@ function script fishing {
{
deltimer "global fishing handler::OnCleanUp"; // cancel auto cleanup
deltimer "global fishing handler::OnBite";
- specialeffect2 .@failure_fx, SELF; // event fail
+ specialeffect(.@failure_fx, SELF, playerattached()); // event fail
fishing_cleanup .@npc$; // do it manually instead
dispbottom l("You pulled too soon and lost the bait.");
return -3;
@@ -190,7 +190,7 @@ function script fishing {
// RNG to obtain a fish
if (rand(gettimetick(0) - @fishing_tick) <= .@pull_rand_max)
{
- specialeffect2 .@success_fx, SELF; // event success
+ specialeffect(.@success_fx, SELF, playerattached()); // event success
if(!checkweight(.@fish_id, 1))
{
@@ -205,7 +205,7 @@ function script fishing {
else
{
dispbottom l("You pulled too late and lost the bait...");
- specialeffect2 .@failure_fx, SELF; // event fail
+ specialeffect(.@failure_fx, SELF, playerattached()); // event fail
.@fish_id = 0;
}