summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-27 21:25:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-27 21:25:02 +0300
commit49dbe47290300cbdfc47eed2774896d7f1b6dc6a (patch)
treef470207a0908f999ccd8eea1daca265fb43748a0
parent262e8bd9015e130fabe1b26c2984923c56db5387 (diff)
downloadserverdata-49dbe47290300cbdfc47eed2774896d7f1b6dc6a.tar.gz
serverdata-49dbe47290300cbdfc47eed2774896d7f1b6dc6a.tar.bz2
serverdata-49dbe47290300cbdfc47eed2774896d7f1b6dc6a.tar.xz
serverdata-49dbe47290300cbdfc47eed2774896d7f1b6dc6a.zip
Replace npcspeed to .speed
-rw-r--r--npc/001-1/flyingpiou.txt4
-rw-r--r--npc/functions/npcmove.txt2
-rw-r--r--npc/functions/npcmovegraph.txt2
3 files changed, 4 insertions, 4 deletions
diff --git a/npc/001-1/flyingpiou.txt b/npc/001-1/flyingpiou.txt
index 4c459b4d..44e2cfce 100644
--- a/npc/001-1/flyingpiou.txt
+++ b/npc/001-1/flyingpiou.txt
@@ -11,7 +11,7 @@ function script ArtisFlyingPiouLogic {
.@LastTimeTouched = getvariableofnpc(.LastTimeTouched, strnpcinfo(3));
if (.@tick > .@LastTimeTouched + 300)
{
- npcspeed 200;
+ .speed = 200;
set getvariableofnpc(.LastPlayerTouched, strnpcinfo(3)), -1;
}
.@rnd = rand(5) - 3;
@@ -89,7 +89,7 @@ function script ArtisFlyingPiouLogic {
setarray .RandomFailureMessages$[0], l("So close!"), l("It escaped!"), l("Almost got it!"), l("Oh, the little...");
.@r = rand(getarraysize(.RandomFailureMessages$));
message strcharinfo(0), .RandomFailureMessages$[.@r];
- npcspeed max(140, 200 - 10 * (@ArtisQuests_CatchPiouTries +
+ .speed = max(140, 200 - 10 * (@ArtisQuests_CatchPiouTries +
ArtisQuests_CatchPiou_Difficulcy));
}
end;
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt
index 59107e0a..e8aa38aa 100644
--- a/npc/functions/npcmove.txt
+++ b/npc/functions/npcmove.txt
@@ -71,7 +71,7 @@ function script domoveaction {
}
else if (.@cmd$ == "speed")
{
- npcspeed getvariableofnpc(.movepathx[.@pos], strnpcinfo(3));
+ .speed = getvariableofnpc(.movepathx[.@pos], strnpcinfo(3));
return 2;
}
else if (.@cmd$ == "sit")
diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt
index 7e0761aa..4ae7abcd 100644
--- a/npc/functions/npcmovegraph.txt
+++ b/npc/functions/npcmovegraph.txt
@@ -170,7 +170,7 @@ function script execmovecmd {
}
else if (.@cmd$[0] == "speed")
{
- npcspeed atoi(.@cmd$[1]);
+ .speed = atoi(.@cmd$[1]);
}
else if (.@cmd$[0] == "say")
{