diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-09-07 02:57:38 +0300 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-09-07 02:57:38 +0300 |
commit | f7c29b3e34cbdbc3e9527c0f8344b80b9abe8904 (patch) | |
tree | 3db567cd94d01c0c4e83f9c2104143651c4f2a81 | |
parent | 6e94e662a5b98f9896acdd273e278fc8af912e99 (diff) | |
download | serverdata-f7c29b3e34cbdbc3e9527c0f8344b80b9abe8904.tar.gz serverdata-f7c29b3e34cbdbc3e9527c0f8344b80b9abe8904.tar.bz2 serverdata-f7c29b3e34cbdbc3e9527c0f8344b80b9abe8904.tar.xz serverdata-f7c29b3e34cbdbc3e9527c0f8344b80b9abe8904.zip |
optimize jenna script SayRandomGreeting function
-rw-r--r-- | npc/001-2-28/jenna.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/001-2-28/jenna.txt b/npc/001-2-28/jenna.txt index 9da5f3e4..d52afcd5 100644 --- a/npc/001-2-28/jenna.txt +++ b/npc/001-2-28/jenna.txt @@ -8,14 +8,14 @@ function SayRandomGreeting { - setarray .messages$[0], l("Welcome to our inn!"), - l("Welcome to RedPlush."), - l("Please, have a seat."), - l("Lovely day, isn't it?"); - .@tick = gettimetick(1); if (.@tick > @Artis_RedPlush_WaitressTick + 600) { + setarray .messages$[0], l("Welcome to our inn!"), + l("Welcome to RedPlush."), + l("Please, have a seat."), + l("Lovely day, isn't it?"); + .@r = rand(0, getarraysize(.messages$)); .@msg$ = .messages$[.@r]; npctalk3 .@msg$; |