summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/000-1/chest.txt4
-rw-r--r--npc/000-2-1/chest.txt4
-rw-r--r--npc/000-2-3/piourocket.txt2
-rw-r--r--npc/001-2-22/chest.txt4
-rw-r--r--npc/functions/fishing.txt4
5 files changed, 9 insertions, 9 deletions
diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt
index fd9ebf30..46f626a3 100644
--- a/npc/000-1/chest.txt
+++ b/npc/000-1/chest.txt
@@ -25,7 +25,7 @@
getitem OldBook, 1;
}
- misceffect .dir == 0 ? 24 : 25, getnpcid(0); // closed ? opening : closing
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid(0)); // closed ? opening : closing
.dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
.busy = true; // lock until available again
initnpctimer;
@@ -53,7 +53,7 @@ OnUnTouch:
OnTimer30000:
.busy = true;
.dir = 6; // closing
- misceffect 25, getnpcid(0); // closing
+ specialeffect(25, AREA, getnpcid(0)); // closing
setnpctimer 0;
OnTouch:
end;
diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt
index d2339b2c..3f565521 100644
--- a/npc/000-2-1/chest.txt
+++ b/npc/000-2-1/chest.txt
@@ -33,7 +33,7 @@
npctalk3 l("You take the clothes from the chest.");
}
- misceffect .dir == 0 ? 24 : 25, getnpcid(0); // closed ? opening : closing
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid(0)); // closed ? opening : closing
.dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
.busy = true; // lock the animation
initnpctimer;
@@ -61,7 +61,7 @@ OnUnTouch:
OnTimer30000:
.busy = true;
.dir = 6; // closing
- misceffect 25, getnpcid(0); // closing
+ specialeffect(25, AREA, getnpcid(0)); // closing
setnpctimer 0;
OnTouch:
end;
diff --git a/npc/000-2-3/piourocket.txt b/npc/000-2-3/piourocket.txt
index e383d5cf..e6ff2039 100644
--- a/npc/000-2-3/piourocket.txt
+++ b/npc/000-2-3/piourocket.txt
@@ -12,7 +12,7 @@
{
.dir = 2;
.last = .@now;
- misceffect 26;
+ specialeffect(26);
initnpctimer;
}
diff --git a/npc/001-2-22/chest.txt b/npc/001-2-22/chest.txt
index a7d1bdd2..010f5a79 100644
--- a/npc/001-2-22/chest.txt
+++ b/npc/001-2-22/chest.txt
@@ -10,7 +10,7 @@
if (.busy == false)
{
- misceffect .dir == 0 ? 24 : 25, getnpcid(0); // closed ? opening : closing
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid(0)); // closed ? opening : closing
.dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
.busy = true; // lock until available again
initnpctimer;
@@ -38,7 +38,7 @@ OnUnTouch:
OnTimer30000:
.busy = true;
.dir = 6; // closing
- misceffect 25, getnpcid(0); // closing
+ specialeffect(25, AREA, getnpcid(0)); // closing
setnpctimer 0;
OnTouch:
end;
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 6fc4d76e..44c620a2 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -38,7 +38,7 @@ OnBite:
setnpcdir @fishing_spot$, LEFT;
@fishing_tick = gettimetick(0);
- misceffect getvariableofnpc(.bite_fx, @fishing_spot$);
+ specialeffect(getvariableofnpc(.bite_fx, @fishing_spot$), SELF, playerattached());
end;
OnCleanUp:
@@ -279,7 +279,7 @@ function script fishing {
// The player uses this spot, his bait is ready, he just has to wait for the signal.
closedialog;
- misceffect .@initial_fx; // throw the bait
+ specialeffect(.@initial_fx, SELF); // throw the bait
sleep2 800; // wait 0.8s for synchronize the sound of "plop" in water with the npc dir UP.
setnpcdir .@npc$, UP;