diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/fishing.txt | 8 | ||||
-rw-r--r-- | npc/functions/savepoint.txt | 2 |
2 files changed, 5 insertions, 5 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; } diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt index 28bab131..0e0b6f90 100644 --- a/npc/functions/savepoint.txt +++ b/npc/functions/savepoint.txt @@ -41,7 +41,7 @@ function script savepointparticle { INN_REGISTER = NO_INN; } savepoint .@mapname$, .@mapx, .@mapy; - misceffect 4, getcharid(3); + specialeffect(4, SELF, getcharid(3)); @lastSave = gettimetick(2); return; |