summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-09 13:12:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-09 13:12:31 +0300
commit5a542566079669c1851816716b168d246d7911bb (patch)
tree0b79c71531044d73f4de19a64a8b51c06014df2a
parent87f2605f55d31958c968000f411692b4c3dc9dcf (diff)
downloadserverdata-5a542566079669c1851816716b168d246d7911bb.tar.gz
serverdata-5a542566079669c1851816716b168d246d7911bb.tar.bz2
serverdata-5a542566079669c1851816716b168d246d7911bb.tar.xz
serverdata-5a542566079669c1851816716b168d246d7911bb.zip
Fix adding default skills.
-rw-r--r--npc/000-0-0/sailors.txt2
-rw-r--r--npc/000-2-0/julia.txt2
-rw-r--r--npc/functions/main.txt4
3 files changed, 6 insertions, 2 deletions
diff --git a/npc/000-0-0/sailors.txt b/npc/000-0-0/sailors.txt
index f1461c7e..4488b89e 100644
--- a/npc/000-0-0/sailors.txt
+++ b/npc/000-0-0/sailors.txt
@@ -65,7 +65,7 @@ OnTalk:
restorecam;
warp "000-2-1.gat", 50, 38;
savepoint "000-2-1.gat", 50, 38;
- addtoskill 1, 1; // Add Emote skill.
+ adddefaultskills;
closedialog;
close;
diff --git a/npc/000-2-0/julia.txt b/npc/000-2-0/julia.txt
index ad959684..c13a68c4 100644
--- a/npc/000-2-0/julia.txt
+++ b/npc/000-2-0/julia.txt
@@ -33,7 +33,7 @@
// 25 Reward taken from the box.
000-2-0,27,24,0 script Julia 404,2,10,{
- addtoskill 1, 1; // Add Emote skill.
+ adddefaultskills;
mesn;
mesq lg("Hello dear!");
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index ac5dbd9f..ec044344 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -36,3 +36,7 @@ function script col {
if (.@color > 9) .@color = 9;
return "##" + .@color + getarg(0) + "##0";
}
+
+function script adddefaultskills {
+ skill 1, 1, 0; // Add basic skill.
+}