summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-09-07 03:01:53 +0300
committerJoseph Botosh <rumly111@gmail.com>2015-09-07 03:01:53 +0300
commit8a545935d730fa21a2bdb610a4d9d0f1a1b60a07 (patch)
treef3d4a0a09f15642403d3a3506f1cb40db78bfa18
parentf7c29b3e34cbdbc3e9527c0f8344b80b9abe8904 (diff)
downloadserverdata-8a545935d730fa21a2bdb610a4d9d0f1a1b60a07.tar.gz
serverdata-8a545935d730fa21a2bdb610a4d9d0f1a1b60a07.tar.bz2
serverdata-8a545935d730fa21a2bdb610a4d9d0f1a1b60a07.tar.xz
serverdata-8a545935d730fa21a2bdb610a4d9d0f1a1b60a07.zip
optimize moon script SayRandomGreeting function
-rw-r--r--npc/001-2-2/moon.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/001-2-2/moon.txt b/npc/001-2-2/moon.txt
index 19785e6b..0185ddfa 100644
--- a/npc/001-2-2/moon.txt
+++ b/npc/001-2-2/moon.txt
@@ -14,19 +14,19 @@
001-2-2,33,32,0 script Moon#001-2-2 NPC_ELVEN_FEMALE,3,3,{
function SayRandomGreeting {
-
- setarray .messages$[0], l("Ouch!"), l("It hurts so bad!"), l("Help me!"),
- l("Hurry up!"), l("I can't wait all day!"),
- l("I need more Croc Claws."),
- l("What a relief."), l("No more pain, thanks to you."),
- l("I can walk again!");
- setarray .msg_first[0], 0, 3, 6;
- setarray .msg_last[0], 2, 5, 8;
-
.@q = getq(ArtisQuests_Urchin);
.@tick = gettimetick(1);
if (.@tick > @ArtisQuests_Urchin_MoonMsgTick + 30)
{
+ setarray .messages$[0], l("Ouch!"), l("It hurts so bad!"),
+ l("Help me!"), l("Hurry up!"),
+ l("I can't wait all day!"),
+ l("I need more Croc Claws."),
+ l("What a relief."),
+ l("No more pain, thanks to you."),
+ l("I can walk again!");
+ setarray .msg_first[0], 0, 3, 6;
+ setarray .msg_last[0], 2, 5, 8;
.@r = rand(.msg_first[.@q],.msg_last[.@q]);
.@msg$ = .messages$[.@r];
npctalk3 .@msg$;