summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-23 03:38:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-23 03:38:57 -0300
commit4f8705e3cfc0de3a22319682f2eff6fa406f1bf0 (patch)
tree63e41c315f4fc52cfffc52c3eb0f93fa187ffa8b /npc
parentcbb546abba8a869f45ac04cc44b9e36d9adead7d (diff)
downloadserverdata-4f8705e3cfc0de3a22319682f2eff6fa406f1bf0.tar.gz
serverdata-4f8705e3cfc0de3a22319682f2eff6fa406f1bf0.tar.bz2
serverdata-4f8705e3cfc0de3a22319682f2eff6fa406f1bf0.tar.xz
serverdata-4f8705e3cfc0de3a22319682f2eff6fa406f1bf0.zip
Add a general use Alchemy Cauldron :3
Diffstat (limited to 'npc')
-rw-r--r--npc/012-4/_import.txt1
-rw-r--r--npc/012-4/craft.txt42
2 files changed, 43 insertions, 0 deletions
diff --git a/npc/012-4/_import.txt b/npc/012-4/_import.txt
index f226d86ca..cb639cb80 100644
--- a/npc/012-4/_import.txt
+++ b/npc/012-4/_import.txt
@@ -1,4 +1,5 @@
// Map 012-4: Alchemy Shop
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/012-4/_warps.txt",
+"npc/012-4/craft.txt",
"npc/012-4/wyara.txt",
diff --git a/npc/012-4/craft.txt b/npc/012-4/craft.txt
new file mode 100644
index 000000000..ccf366376
--- /dev/null
+++ b/npc/012-4/craft.txt
@@ -0,0 +1,42 @@
+// TMW2: Moubootaur Legends scripts.
+// Author:
+// Jesusalva
+// Description:
+// Rentable Alchemy Bench
+
+012-4,27,31,0 script Alchemy Cauldron NPC_NO_SPRITE,{
+ do {
+ mesc l("What will you brew today?");
+ mesc l("It costs %d GP to use.", 300), 1;
+ if (Zeny < 300)
+ close;
+
+ if (AlchemySystem(CRAFT_PLAYER)) {
+ if (Zeny < 300) {
+ mesc l("WARNING, you have been detected cheating and thus, violating Tulimshar Anti-Theft Policy."), 1;
+ mesc l("You were jailed and now need a GM to get you out of there."), 1;
+ logmes "WARNING, "+strcharinfo(0)+" found out cheating, only had "+Zeny+"/300 GP for alchemy table. Jailed.", LOGMES_ATCOMMAND;
+ consoleinfo("%s jailed - no money when brewing.", strcharinfo(0));
+ atcommand("@jail "+strcharinfo(0));
+ // Apply a more realistic penalty
+ Zeny=0;
+ CRAFTSYS_CURRENT=0;
+ close;
+ }
+ Zeny-=300;
+ mesc l("Success!"), 3;
+ } else {
+ mesc l("That didn't work!"), 1;
+ }
+ next;
+ mesc l("Try again?");
+ } while (askyesno() == ASK_YES);
+
+ close;
+
+OnInit:
+ .distance=3;
+ end;
+}
+
+