summaryrefslogtreecommitdiff
path: root/npc/001-1
diff options
context:
space:
mode:
authoromatt <m.vuoso@laposte.net>2016-07-16 18:52:53 +0200
committeromatt <m.vuoso@laposte.net>2016-08-04 05:10:04 +0200
commit474df6a958a9543dcae07d2e76ba648882621878 (patch)
treedd492be687ee20a00277d2ac9f0a58e0a5029dd8 /npc/001-1
parentf1efb34969c42a2eba29d972731d96e6ab467b3f (diff)
downloadserverdata-474df6a958a9543dcae07d2e76ba648882621878.tar.gz
serverdata-474df6a958a9543dcae07d2e76ba648882621878.tar.bz2
serverdata-474df6a958a9543dcae07d2e76ba648882621878.tar.xz
serverdata-474df6a958a9543dcae07d2e76ba648882621878.zip
change water animation (001-1), and change fishing function
Diffstat (limited to 'npc/001-1')
-rw-r--r--npc/001-1/wateranimation.txt229
1 files changed, 197 insertions, 32 deletions
diff --git a/npc/001-1/wateranimation.txt b/npc/001-1/wateranimation.txt
index c27a7f4f..ad409d1a 100644
--- a/npc/001-1/wateranimation.txt
+++ b/npc/001-1/wateranimation.txt
@@ -5,10 +5,23 @@
// Water animations, splash, fishes, etc...
001-1,116,123,0 script #water_animation0 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ // skip the narator when we are in fishing
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3); // give the name of npc for set the addtimer.
close;
+OnPull:
+ emotion 106; // here the effect, emote is just for try :3
+ if (@pull == 3) // is too late or too soon, don't set the @pull 2
+ // useless for now, because if you fail that delete the timer
+ // just a security
+ end;
+ else
+ @pull = 2; // set 2, the fish bite the bait
+ @tick = gettimetick(0); // the tick required for the pull_max
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -16,10 +29,20 @@ OnInit:
}
001-1,119,102,0 script #water_animation1 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -27,10 +50,20 @@ OnInit:
}
001-1,167,82,0 script #water_animation2 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -38,10 +71,20 @@ OnInit:
}
001-1,167,40,0 script #water_animation3 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -49,10 +92,20 @@ OnInit:
}
001-1,104,127,0 script #water_animation4 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -60,10 +113,20 @@ OnInit:
}
001-1,166,123,0 script #water_animation5 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -71,10 +134,20 @@ OnInit:
}
001-1,181,119,0 script #water_animation6 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -82,10 +155,20 @@ OnInit:
}
001-1,202,114,0 script #water_animation7 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -93,10 +176,20 @@ OnInit:
}
001-1,187,86,0 script #water_animation8 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -104,10 +197,20 @@ OnInit:
}
001-1,32,57,0 script #water_animation9 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -115,10 +218,20 @@ OnInit:
}
001-1,40,144,0 script #water_animation10 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -126,10 +239,20 @@ OnInit:
}
001-1,58,131,0 script #water_animation11 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -137,10 +260,20 @@ OnInit:
}
001-1,76,137,0 script #water_animation12 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -148,10 +281,20 @@ OnInit:
}
001-1,109,132,0 script #water_animation13 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -159,10 +302,20 @@ OnInit:
}
001-1,141,93,0 script #water_animation14 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;
@@ -170,10 +323,22 @@ OnInit:
}
001-1,168,57,0 script #water_animation15 NPC_WATER_SPLASH,{
- narrator 4, l("You see some fish reflecting the sun on the surface of the water.");
- fishing;
+ if (@pull != 1 && @pull != 2)
+ {
+ narrator 4, l("You see some fish reflecting the sun on the surface of the water. " + @pull + "");
+ }
+ fishing strnpcinfo(3);
close;
+OnPull:
+ emotion 106;
+ if (@pull == 3)
+ end;
+ else
+ @pull = 2;
+ @tick = gettimetick(0);
+ end;
+
OnInit:
.sex = G_OTHER;
.distance = 5;