diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-21 16:04:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-21 16:04:32 +0300 |
commit | 66a7953e6f6b4d7951c306e1d305ab3b904f557a (patch) | |
tree | d96f9df4db7a506277b5659aa6165e0efa7b1700 /npc/functions/asleep.txt | |
parent | efb1c01272dc109188f1a4559db05a73405a7d38 (diff) | |
download | serverdata-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.txt | 12 |
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; } |