summaryrefslogtreecommitdiff
path: root/npc/functions/asleep.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:32 +0300
commit66a7953e6f6b4d7951c306e1d305ab3b904f557a (patch)
treed96f9df4db7a506277b5659aa6165e0efa7b1700 /npc/functions/asleep.txt
parentefb1c01272dc109188f1a4559db05a73405a7d38 (diff)
downloadserverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.gz
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.bz2
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.xz
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.zip
Replace temp variables into scope temp variables.
Diffstat (limited to 'npc/functions/asleep.txt')
-rw-r--r--npc/functions/asleep.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/asleep.txt b/npc/functions/asleep.txt
index cab79b93..42a99796 100644
--- a/npc/functions/asleep.txt
+++ b/npc/functions/asleep.txt
@@ -5,15 +5,15 @@
// Description:
// Tell a random sleeping sound.
// Variables:
-// @rand = Random number between the number of "sleeping" choice.
+// .@rand = Random number between the number of "sleeping" choice.
function script Asleep {
- set @rand, rand(3);
- if (@rand == 0) npctalk3 l("Zzzzzzzzz...");
- if (@rand == 1) npctalk3 l("Rrrr... Pchhhh...");
- if (@rand == 2) npctalk3 l("Ggrmm... Grmmmm...");
- if (@rand == 3) npctalk3 l("Hm...");
+ set .@rand, rand(3);
+ if (.@rand == 0) npctalk3 l("Zzzzzzzzz...");
+ if (.@rand == 1) npctalk3 l("Rrrr... Pchhhh...");
+ if (.@rand == 2) npctalk3 l("Ggrmm... Grmmmm...");
+ if (.@rand == 3) npctalk3 l("Hm...");
close;
}