Comments (9)
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.
Started working on it, but as said it may take some time :P
from dtlcitizenstrader.
I am a denizen developer - if you tell me what you need i can implemented it :D
from dtlcitizenstrader.
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.
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.
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.
yep thank you!
I am glad i hadn't started to work on the trader npc scripts yet ;)
from dtlcitizenstrader.
This feature needs some debug info :D and feature requests so I know what you want :)
from dtlcitizenstrader.
Wiki incoming in the next 2-3 days
from dtlcitizenstrader.
Related Issues (20)
- [Bug] Error with HOT 1
- [Bug] Don't work anymore HOT 1
- [Bug] Prices Reseting HOT 3
- [Bug] Stack Price dont work like the another versions HOT 3
- [Bug] Some Commands not working HOT 2
- Error when trying to convert from cititraders HOT 5
- enchanment books HOT 4
- bank duplicate issue HOT 5
- Permissions Issue HOT 6
- Written book bug HOT 3
- Java error in 1.5.1 HOT 6
- Trader Duplicate Bug? HOT 5
- Manager mode bugs HOT 11
- Integration with Denizen scripts? HOT 3
- Bug when Right click a trader HOT 2
- Starting Error in console
- Feature Requests for 3.0 HOT 2
- Pattern File Formatting HOT 18
- items disapearing
- Reset shop?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtlcitizenstrader.