Author Topic: How do you make a shop using cashmod  (Read 892 times)

I know this mod is pretty old, along with cashstorage being old too, but I have been trying to figure out how to use VCE and cash events in order to make a simple shop.

I know this mod is pretty old, along with cashstorage being old too, but I have been trying to figure out how to use VCE and cash events in order to make a simple shop.

Say your Cash is variable "Cash".
Code: [Select]
[0] OnActivate > Client > VCE_ModVariable [Cash] Add [50]Click it, and you'll get 50 Cash.

Now, For a shop, say, purcashing a weapon.
Code: [Select]
[0]   OnActivate > Client > VCE_IfVariable [Cash] == [50] [1 5]
[0]   OnVariableTrue > Client > VCE_ModVariable [Cash] Subtract [50]
[0]   OnVariableTrue > Client > AddItem [Sword]
[0]   OnVariableTrue > Client > ChatMessage [<color:ffffff>You have purchased a <color:ffff00>Sword<color:ffffff> for [0]50 Gold.]
[33] OnVariableTrue > Client > ChatMessage [<color:ffff00>Total Cash<color:ffffff>: <var:cl:Cash>
[0]   OnVariableFalse > Client > ChatMessage [<color:ff00ff>You do not have the required amount of money]


If you have VCE then under then there should be some simple cash events.
Code: [Select]
Onwhatever>self>addcash