summaryrefslogtreecommitdiff
path: root/npc/001-2-33
diff options
context:
space:
mode:
authorMonwarez <monwarez@gmail.com>2016-12-03 06:30:25 +0100
committergumi <mekolat@users.noreply.github.com>2016-12-04 09:45:36 -0500
commit4f7a7e7b2d3ed1eae73317858c4d22f9a5820043 (patch)
tree49353b59fbf20af912942d70893045a703b9b95d /npc/001-2-33
parent3e66a8fd9ee24f5e36487c757b07abb06ae7dbb5 (diff)
downloadserverdata-4f7a7e7b2d3ed1eae73317858c4d22f9a5820043.tar.gz
serverdata-4f7a7e7b2d3ed1eae73317858c4d22f9a5820043.tar.bz2
serverdata-4f7a7e7b2d3ed1eae73317858c4d22f9a5820043.tar.xz
serverdata-4f7a7e7b2d3ed1eae73317858c4d22f9a5820043.zip
remove goto in lozerk
Diffstat (limited to 'npc/001-2-33')
-rw-r--r--npc/001-2-33/lozerk.txt26
1 files changed, 11 insertions, 15 deletions
diff --git a/npc/001-2-33/lozerk.txt b/npc/001-2-33/lozerk.txt
index 57dd1d19..e1c42f4e 100644
--- a/npc/001-2-33/lozerk.txt
+++ b/npc/001-2-33/lozerk.txt
@@ -2,6 +2,7 @@
// Authors:
// Reid
// Tirifto
+// monwarez
// Description:
// Sword trainer from the Legion of Aemil guild.
// Variables:
@@ -16,7 +17,7 @@
001-2-33,34,33,0 script Lozerk NPC_DEMON_MALE_SWORD,{
-// Quest-related functions
+ // Quest-related functions
function send_training {
speech 5,
@@ -40,7 +41,7 @@
return;
}
-function send_battle {
+ function send_battle {
speech 5,
lg("So, did you get your blood boiling? Give the dummies a good lesson? Good!"),
l("But since it's not dummies that will go after you out there, this training won't be enough."),
@@ -54,7 +55,7 @@ function send_battle {
return;
}
-function send_qanon {
+ function send_qanon {
speech 5,
lg("And you won! That means you should be able to handle yourself in battle from now on."),
lg("If you keep it up, you'll eventually become a fearsome warrior, just like me!"),
@@ -70,7 +71,7 @@ function send_qanon {
return;
}
-// Normal functions
+ // Normal functions
function tell_about_legion {
speech 5,
@@ -88,7 +89,7 @@ function send_qanon {
return;
}
-// Conversation
+ // Conversation
speech 4,
l("Welcome to the the Legion of Aemil's building in Artis!");
@@ -109,34 +110,29 @@ function send_qanon {
{
case 1:
send_training;
- goto L_Close;
+ break;
case 2:
send_battle;
- goto L_Close;
+ break;
case 3:
send_qanon;
- goto L_Close;
+ break;
case 4:
tell_about_legion;
break;
case 5:
praise_sword;
break;
- case 6:
- goto L_Close;
}
- }while(1);
-
- goto L_Close;
+ }while(@menu != 6);
-L_Close:
closedialog;
goodbye;
close;
OnInit:
.sex = G_MALE;
- .distance = 2;
+ .distance = 3;
end;
}