diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-09-23 21:01:14 +0300 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-09-23 21:01:14 +0300 |
commit | b35d6a3bf22f5d2e2e870e1c01c915494a41704d (patch) | |
tree | c386e158f22d5296f15caf8cc35f67a8484dfc5c | |
parent | bf1836913276cf3963939797dc8e0fdc23a24d96 (diff) | |
download | serverdata-b35d6a3bf22f5d2e2e870e1c01c915494a41704d.tar.gz serverdata-b35d6a3bf22f5d2e2e870e1c01c915494a41704d.tar.bz2 serverdata-b35d6a3bf22f5d2e2e870e1c01c915494a41704d.tar.xz serverdata-b35d6a3bf22f5d2e2e870e1c01c915494a41704d.zip |
add debugnpc function
-rw-r--r-- | npc/functions/main.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index f08116321..b78c94337 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -95,3 +95,11 @@ function script speech { } return; } + + +// Show debug message if .debug variable of NPC is set to 1 +function script npcdebug { + if (getvariableofnpc(.debug, strnpcinfo(3))) + debugmes strnpcinfo(3) + ": " + getarg(0); + return; +} |