summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-08-10 14:46:07 -0400
committergumi <git@gumi.ca>2020-08-10 14:46:07 -0400
commit0fe3a6fde2769b55b0019487d9939bf628c760b2 (patch)
tree85d9cde3b6f22e6a3f49ce55b694e41ee8fcf54d
parentf032ae046477ae96ea518ad3e12e5508bc4edba7 (diff)
downloadserverdata-0fe3a6fde2769b55b0019487d9939bf628c760b2.tar.gz
serverdata-0fe3a6fde2769b55b0019487d9939bf628c760b2.tar.bz2
serverdata-0fe3a6fde2769b55b0019487d9939bf628c760b2.tar.xz
serverdata-0fe3a6fde2769b55b0019487d9939bf628c760b2.zip
add debug commands to call the crafting menus
-rw-r--r--npc/functions/crafting.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/functions/crafting.txt b/npc/functions/crafting.txt
index ba032f41..05a9d9a6 100644
--- a/npc/functions/crafting.txt
+++ b/npc/functions/crafting.txt
@@ -91,4 +91,27 @@ function script SmithSystem {
return .success;
}
+- script @craft FAKE_NPC,{
+ public function DoTailoring {
+ SmithSystem(CRAFT_TAILORING);
+ end;
+ }
+
+ public function DoSmithery {
+ SmithSystem(CRAFT_SMITHERY);
+ end;
+ }
+ public function OnInit {
+ if (debug < 1) {
+ end;
+ }
+
+ bindatcmd("@tailoring", sprintf("%s::%s", .name$, "DoTailoring"));
+ bindatcmd("@tailor", sprintf("%s::%s", .name$, "DoTailoring"));
+ bindatcmd("@smithery", sprintf("%s::%s", .name$, "DoSmithery"));
+ bindatcmd("@smith", sprintf("%s::%s", .name$, "DoSmithery"));
+ bindatcmd("@blacksmithery", sprintf("%s::%s", .name$, "DoSmithery"));
+ end;
+ }
+}