Author Topic: Chat Shop  (Read 536 times)

Is it possible to create a Shop system in which you click a bricks it asks what you wanna buy and then you say it and if you have enough you get the item?
Example:
--Click Brick
--In chat it gives list of Items
--You type what you want
--you purchase the item and get it depending on if you have the cash.


Yes, VCE.
Use RetroChecks on LastMsg and do a relay or something.

Use RetroChecks on LastMsg and do a relay or something.
That helps a little. Is it possible you can give a more detailed explaination on doing that?

Do not use retrochecks and instead use <var:cl:lastmsg>.

Do not use retrochecks and instead use <var:cl:lastmsg>.
Can you post a basic guide to how the event would look?
Example:
1. OnActivate...
2. OnVariableTrue...
etc

0  0 onActivate Client centerPrint "If you want to buys something, chat it in the next 30 seconds."
1  30000 onActivate Self VCE_ifValue <var:cl:lastmsg> == [Bow] [2 3]
2  0 onVariableTrue Player addItem Bow
3  0 onVariableTrue Client centerPrint "You purchased a Bow"
4  30000 onActivate Self VCE_ifValue <var:cl:lastmsg> == [Gun] [5 6]
5  0 onVariableTrue Player addItem Gun
6  0 onVariableTrue Client centerPrint "You purchased a Gun"