mobs and bank manipulation

Posted by Meerclar on Thu 14 Nov 2002 01:58 AM — 4 posts, 18,498 views.

USA #0
Is there a currently defined method for mobs to manipulate clan bank accts? If not, how ugly would development of one likely be?
#1
Are you wanting to create player based shops ? The only way I could think to do it would be to code something up so that a mob could be flagged as an owner, and then any profit would go into that players gold inventory. Or, make it so that particular mobs gold amount is saved (like corpses) and have the player who own's the room go and issue a command to get the mob to give him the 'profit'.

Ixliam
IMP/Founder - War of the Lance
www.wotl.org wotl.org 4020
USA #2
Or just make it so that the room that they designate for their shop gets flagged as a shop and add a profit[x] variable to rooms. You could use profit[0] to save the actual amount of gold, profit[1] for the silver and profit[2] to save their clan. Then you could just make a clanshop_update for update.cpp to check profits and deposit them into the corresponding clans bank. Granted, the above isn't "simple" persay, but it's only a couple hours work and it makes it so that their profits can still accumulate when they're offline, also allows you to make it so everything saves over reboots.
USA #3
Actually, what I have a need of is a way for mobs to withdraw gold from clan bank accts. Later it may be that I have a need for mobs to deposit into said accts as well but for now I'd like something close to automated payment of stuff like clan guardian fees.