MUSH Money System
Submitted by attyjuju on Thu, 2008-05-22 21:56.
Does anyone have an easy to implement one? Just a basic one that can do a cron to pay every two weeks? My thanks!
»
- attyjuju's blog
- Login or register to post comments

Click 

just use the included one?
I recently toyed with creating a soft-coded channel system. After thinking about long term support, time, and priorities, I decided to use the hardcoded channel system, which does everything I want to, and has all the features I could ever want.
So what would be bad about using the hardcoded money system? Does it not do something you want to do? Or is there a security problem (so a player might accumlate so much money they could run a huge search() ).
That being said, you could create a mortal_dark, wizard attribute on a player called player_money (or whatever), and use that.
MUSH Pennies
Although a lot of new features have been added (semi-)recently for the built-in MUSH Pennies money system that make it easier to use it for IC money (like the "buy" command and @pricelist attribute), using it as an IC system can be problematic because it does still have OOC uses. You can spend months building up an IC fortune, then write a piece of runaway code by mistake and find your wealth gone in a few minutes (one of the big uses for pennies is to prevent broken/looping code from running indefinately; when you run out of pennies, you can't queue new commands). So I personally tend to dislike using it for that.
I have a softcoded econ system on my website, btw, though it might be more complex than you really want. (Nothing to stop you using it and ignoring the more complex features, at least until you find something simpler, though.) It doesn't have a cron built in to it, but you can trigger it from another cron easily enough to pay people on a regular basis.
Disconnects
Are any ports you need to keep open other than the port number in a firewall to prevent disconnects, on TCP and UDP?
Thanks in advance.
Nope
Assuming you mean a firewall on a router and people trying to connect in to the pennmush server on a box behind the router.
You only need to open the TCP port (or ports, if you use SSL) that the MUSH listens on.