17.01.2010, 11:52
Can someone give me an example script.. for E.G:
I type /buyshit.
It takes away 30 from a file (i know how to do that.)
What i need help with is:
When i buy it, there will be over 10, so.. how can i make it so i buy it for a designated price?
/buyshit
Cost each: $100.. for example
Amount in stock: 100
I need the script that when you /buyshit [amount], im not sure how you multiply it, or whatever. - just have no clue on that.
Hoepfully you know what i mean :S if not please post and ill try to re-explain it.
I type /buyshit.
It takes away 30 from a file (i know how to do that.)
What i need help with is:
When i buy it, there will be over 10, so.. how can i make it so i buy it for a designated price?
/buyshit
Cost each: $100.. for example
Amount in stock: 100
I need the script that when you /buyshit [amount], im not sure how you multiply it, or whatever. - just have no clue on that.
Hoepfully you know what i mean :S if not please post and ill try to re-explain it.