summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index f9ec439d..06b12a30 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -747,6 +747,11 @@ function script updateskill {
return;
}
+function script npctalk2 {
+ npctalk getarg(1), getarg(0);
+ return;
+}
+
function script learnskill {
if (getskilllv(getarg(0)) < getarg(1, 1))
skill getarg(0), getarg(1, 1), 0;
@@ -764,8 +769,10 @@ function script spawndummy {
// Create monster, with optional event
if (.@e$ == "")
.@u=monster(.@m$, .@x, .@y, .@n$, .@id, 1);
- else
+ else {
.@u=monster(.@m$, .@x, .@y, .@n$, .@id, 1, .@e$);
+ debugmes "SPAWNDUMMY %s", .@e$;
+ }
// Reset unit data for script use
setunitdata(.@u, UDT_LEVEL, 1);
setunitdata(.@u, UDT_HP, 1);