diff options
-rw-r--r-- | npc/001-1/flyingpiou.txt | 4 | ||||
-rw-r--r-- | npc/functions/npcmove.txt | 2 | ||||
-rw-r--r-- | npc/functions/npcmovegraph.txt | 2 |
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") { |