Saving data to individual users - 27/04/11 11:04 AM
I'm in the process of making a game and i'm stuck, mostly im playing around and learning scripting as i go along. What i have is
What i need is for each individual nick that does [!@.]getcash to save the amount they get to only their nick. So for example if nick1 does !getcash and they end up with 10m it saves that amount to their nick and when nick2 does !getcash and gets 100m it saves that amount to their nick and so on and so forth with it increasing by however much they happen to get when doing !getcash.
Code:
on $*:text:/^[!@.]getcash/Si:#:{ var %getcash = $rand(10,100) inc %totalcash %getcash msg $chan $nick is given %getcash $+ m $+ , $nick now has %totalcash $+ m }