"Trade": Type: Interact Requirements: Mode: None Steps: 1: Click Trigger: Script: - ^TRADER_TRANSACTION START SELL Sold Trigger: Script: - ^IF FLAG:TransactionItem:Diamond SCRIPT:Count_Diamond_Sold Count_Diamond_Sold: Type: Task Script: - ^FLAG 'Transactions:++' GLOBAL - ^IF GLOBAL EXACTLY FLAG:Transactions:40 SCRIPT:Discount_Pattern - ^IF GLOBAL FLAG:Transactions:45 SCRIPT:Basic_Pattern Discount_Pattern: Type: Task Script: - ^TRADER_PATTERN SET PAT:discount - ^CHAT "We got a discount on all items!" Basic_Pattern: Type: Task Script: - ^TRADER_PATTERN SET PAT:default - ^CHAT "The discount is over!" - ^FLAG Transactions:0 GLOBAL
Great!
outdated! going to update with denizen 0.8