ganghouse shops?

Post Reply
axb9041

ganghouse shops?

Post by axb9041 »

when somebody purchases an item from a gang house shop how is the money transfer? Does it get deposited in the leaders bank account? or what?



- Adam
syntax53
Posts: 0
Joined: Wed Apr 03, 2002 6:00 am

Re: ganghouse shops?

Post by syntax53 »

Originally posted by axb9041

when somebody purchases an item from a gang house shop how is the money transfer? Does it get deposited in the leaders bank account? or what?



- Adam



interesting that you asked this. when we were looking up database fields while making our ganghouses, locke cole came across just your very question. we did find a new field in the rooms database, i titled it "Ganghouse Number" and it defines a room as belonging to a ganghouse. since the shops need to be assigned to the rooms to work, when someone goes to stock an item the code checks to see if they have the deed (or an item with the GShopItem ability) and then checks to see if the room belongs to the ganghouse of the deed's ganghouse #.



now, what locke figured out is how mud stores who the owner of the shop is so that they get the money when someone buys the item. when you stock an item, since gangshop's don't use the "Max Stock" shop field, mud stores the user's bbs name in there. since you can sell 20 items and normally the max stock field is a 2 byte integer, the provides 40 charaters whish is enough for the 30 character bbs name.



the deed is the only item that has the GShopItem ability which is what the code checks against when stocking items. now we are figuring (in theory) that if you wanted to allow more than one person to stock items you could make a new item and give it the GShopItem abiity. the thing is, the money for ANY items sold would go the the LAST person to stock and item. the only other thing is it may only write that info when the first item is stocked which would be optimal but who knows.



-syn
axb9041

Re: ganghouse shops?

Post by axb9041 »

the only other thing is it may only write that info when the first item is stocked which would be optimal but who knows.



Thank you syntax and locke cole for your hard work. Do you really think metro really would do anything optimal? [insert sarcasm]
syntax53
Posts: 0
Joined: Wed Apr 03, 2002 6:00 am

Re: ganghouse shops?

Post by syntax53 »

Originally posted by axb9041

Thank you syntax and locke cole for your hard work. Do you really think metro really would do anything optimal? [insert sarcasm]



well, only to be fair ... it doesn't matter to them either way, since they only intended for 1 item to be able to stock a shop anyway.
axb9041

Re: ganghouse shops?

Post by axb9041 »

It would be nice though if Lieutenants of a gang could stock items too. It would help pay for the house, like mob shakedowns.
Post Reply

Return to “Anything MajorMUD”