Git Product home page Git Product logo

Comments (9)

Dandielo avatar Dandielo commented on June 11, 2024

Sure :) will try to add it :) but might be not easy :P

EDIT: This might take some time because waiting for an denizen API that could do this :D because there so far no Callbacks after a Action has ended :P

from dtlcitizenstrader.

Dandielo avatar Dandielo commented on June 11, 2024

Started working on it, but as said it may take some time :P

from dtlcitizenstrader.

spaceemotion avatar spaceemotion commented on June 11, 2024

I am a denizen developer - if you tell me what you need i can implemented it :D

from dtlcitizenstrader.

Dandielo avatar Dandielo commented on June 11, 2024

hmm... because there are some ways to achieve this, one of them is to "listen" a "trader click" trigger and then use dtltrader open/close command,

another way is to create a <trader.clallback.open/close> tag, that would read some info from a specified flag. and if it will be true a scheduled statement would open or close the inventory,

or (I dunno how generally actions work atm), allow to add on the action caller sth like a callback function, so if the actions ends, this function will be called (but this would be a denizen side work),

btw your sitting on Denizen IRC? Because I don't know your nickname xd

from dtlcitizenstrader.

Dandielo avatar Dandielo commented on June 11, 2024

Ok after a day full of laziness and a bit work :D
You can use the "TRADER" command to open a traders inventory, atm only one argument "OPEN" that is not required and default :P

Also added TraderClickTrigger, better said "TraderTrigger" you can use it as a normal Trigger
or as an Action "On Trader"

added these tags:
* < trader.stock.sell.trigger>
* < trader.stock.sell.hint>
* < trader.stock.buy.trigger>
* < trader.stock.buy.hint>
* < trader.pattern>
* < trader.owner>
* < trader.wallet>
* < trader.wallet.balance>
* < transaction.trigger>
* < transaction.item>
* < transaction.item.price>
* < transaction.item.amount>
* < transaction.item.instock>
* < transaction.failure>

< trader.stock.<...>.trigger> are automatically replaced with a regex for all trader items in the specified stock
< trader.stock.<...>.hint> creates string that has each item (it's regex name) and it's price in the specified stock

Buy stock is still not done sorry :P

< transaction.trigger> holds the item name that triggered the chat trigger, it's used by the transaction command,

  • TRANSACTION 'ITEM:<transaction.trigger>'

< trader...> tags are available always where, <transaction...> tags can be used only after the Transaction command, these tags provides additional transaction information.

Transaction command

TRANSACTION ({SELL}|BUY) [ITEM:#(:#)] (QTY:#)

QTY: should be used for different amounts :)

Please report any bugs :)

from dtlcitizenstrader.

Dandielo avatar Dandielo commented on June 11, 2024

waiting for a denizen issue fix,

and for now these tags are change into

  • < trader.stock.sell-trigger>
    • < trader.stock.sell-hint>
    • < trader.stock.buy-trigger>
    • < trader.stock.buy-hint>

from dtlcitizenstrader.

spaceemotion avatar spaceemotion commented on June 11, 2024

yep thank you!
I am glad i hadn't started to work on the trader npc scripts yet ;)

from dtlcitizenstrader.

Dandielo avatar Dandielo commented on June 11, 2024

This feature needs some debug info :D and feature requests so I know what you want :)

from dtlcitizenstrader.

Dandielo avatar Dandielo commented on June 11, 2024

Wiki incoming in the next 2-3 days

from dtlcitizenstrader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.