From 5a542566079669c1851816716b168d246d7911bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Jan 2015 13:12:31 +0300 Subject: Fix adding default skills. --- npc/000-0-0/sailors.txt | 2 +- npc/000-2-0/julia.txt | 2 +- npc/functions/main.txt | 4 ++++ 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. +} -- cgit v1.2.3-70-g09d2