summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-07 10:54:27 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-07 10:54:27 -0300
commitf758eaa66406514a4980c5dc2b5cf997a37296d1 (patch)
tree7c0f04a7999091b49c896216245064bf4c5d69fa
parent01a2a5e659d25d3c3402f842df6d3dc40aff7e0d (diff)
downloadserverdata-f758eaa66406514a4980c5dc2b5cf997a37296d1.tar.gz
serverdata-f758eaa66406514a4980c5dc2b5cf997a37296d1.tar.bz2
serverdata-f758eaa66406514a4980c5dc2b5cf997a37296d1.tar.xz
serverdata-f758eaa66406514a4980c5dc2b5cf997a37296d1.zip
Blanc: Honor ITR
-rw-r--r--npc/015-3-3/blanc.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/015-3-3/blanc.txt b/npc/015-3-3/blanc.txt
index 84b4c5df2..39dd0a53d 100644
--- a/npc/015-3-3/blanc.txt
+++ b/npc/015-3-3/blanc.txt
@@ -50,6 +50,13 @@
goto L_Close;
}
+ // Trade restriction from the database
+ if (getiteminfo(.@x, ITEMINFO_TRADE) & ITR_NOSELLTONPC) {
+ mesn;
+ mesq l("Ehm, I count as a NPC, so... you can't contraband items which cannot be sold to NPCs, pal!"), 1;
+ goto L_Close;
+ }
+
mesn;
mesq l("A(n) %s, hm? And what do you want me to do with it?", getitemlink(.@x));