diff options
author | Reid <reidyaro@gmail.com> | 2016-04-14 18:32:04 +0200 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-04-14 18:32:04 +0200 |
commit | 8ee2eaa6cf415b5a6b307fcb09d631bf39eccd07 (patch) | |
tree | 164e2c68aae7d93b426793d23826f5efd45af6f0 | |
parent | 60845db139349f5f9670e9b5f6cfc03685f7ad25 (diff) | |
download | serverdata-8ee2eaa6cf415b5a6b307fcb09d631bf39eccd07.tar.gz serverdata-8ee2eaa6cf415b5a6b307fcb09d631bf39eccd07.tar.bz2 serverdata-8ee2eaa6cf415b5a6b307fcb09d631bf39eccd07.tar.xz serverdata-8ee2eaa6cf415b5a6b307fcb09d631bf39eccd07.zip |
Cut Janus's script into functions.
-rw-r--r-- | npc/001-2-9/janus.txt | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/npc/001-2-9/janus.txt b/npc/001-2-9/janus.txt index 04d9adb3..aaea9ec2 100644 --- a/npc/001-2-9/janus.txt +++ b/npc/001-2-9/janus.txt @@ -33,11 +33,23 @@ return; } + function janus_is_not_ianus { + speech 1, + l("Janus!"); + emotion 11; + next; + + speech 12, + l("Ianus is from the legion of Aemil, don't compare me to this brigand."); + + return; + } + speech 4, - l("!"); + lg("Welcome miss.", "Good day sir."); - menuint rif (getq (General_Janus) == 1, l("Field 1")), 1, - rif (getq (General_Janus) == 2, l("Field 2")), 2, + menuint rif (getq (General_Janus) == 1, l("I would like to create a party.")), 1, + rif (getq (General_Janus) == 2, l("I would like to create a guild.")), 2, l("What service do you offer?"), 3, l("Your name is Ianus or Janus?"), 4; @@ -55,13 +67,7 @@ explain_service; break; case 4: - speech 1, - l("Janus!"); - emotion 11; - next; - - speech 12, - l("Ianus is from the legion of Aemil, don't compare me to this brigand."); + janus_is_not_ianus; break; } |