From fe0df84b61325d3f0fc8cb6c38a8704c861248a8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 21 Mar 2021 17:12:20 -0300 Subject: Crafting - Players are now able to opt for bound items instead of named ones. Bound items cannot be traded but accept cards. --- npc/commands/ucp.txt | 15 +++++++++++++-- npc/craft/smith.txt | 2 ++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt index 6386a850b..f20a8eede 100644 --- a/npc/commands/ucp.txt +++ b/npc/commands/ucp.txt @@ -217,6 +217,14 @@ function script UserCtrlPanel { mes l("Lethal overdrinking: ") + col(l("Allowed"), 2); + // GSET_CRAFT_BOUND + // Should players make bound or named items? + if (GSET_CRAFT_BOUND) + mes l("Crafting method: ") + col(l("Account Bound"), 1); + else + mes l("Crafting method: ") + col(l("Named Items"), 2); + + // TUTORIAL // Should we show players tutorial info? if (!TUTORIAL) @@ -257,6 +265,7 @@ function script UserCtrlPanel { l("Text Wall Density"), l("Alchemy Table brewing"), l("Lethal alcohol overdrinking"), + l("Change crafting method"), l("Show Tutorial Protips"), rif($EVENT$ == "Valentine", ("Valentine Eating")), rif(strcharinfo(2) == "Monster King", ("Toggle Autoreceive Event Coins")); @@ -295,10 +304,12 @@ function script UserCtrlPanel { case 6: GSET_ALCOHOL_NOOVERDRINK=!GSET_ALCOHOL_NOOVERDRINK; break; case 7: - TUTORIAL=!TUTORIAL; break; + GSET_CRAFT_BOUND=!GSET_CRAFT_BOUND; break; case 8: - GSET_VALENTINE_EATALL=!GSET_VALENTINE_EATALL; break; + TUTORIAL=!TUTORIAL; break; case 9: + GSET_VALENTINE_EATALL=!GSET_VALENTINE_EATALL; break; + case 10: GSET_AUTORECEIVE_COINS=!GSET_AUTORECEIVE_COINS; break; } clear; diff --git a/npc/craft/smith.txt b/npc/craft/smith.txt index 6d5ea54c9..cfad0c30a 100644 --- a/npc/craft/smith.txt +++ b/npc/craft/smith.txt @@ -60,6 +60,8 @@ function script SmithSystem { if (.scope == CRAFT_GUILD) getitembound(.@it, 1, 2); // Create a guild-bound item + else if (GSET_CRAFT_BOUND) + getitembound(.@it, 1, 1); // Create an account-bound item else getnameditem(.@it, strcharinfo(0)); if (getskilllv(TMW2_CRAFT)) { -- cgit v1.2.3-60-g2f50