I have been tossing a idea around recently and I wanna toss it out to the
List to see what Ya all think bout it. I want to see if there is perhaps a
better way to do this. This is with Player Owned Shops..

First off this is a idea, I haven't written any code up yet, but I am going
through this and thinking bout how I would implement it.

First off We would have to specify a Room or a Mob as the Shopkeeper for the
Player Owned shop. So either another setting in ROOMS to mark the room a
player owned shop or have a mob in the room the shopowner..

I liked the MOB idea better cause then the person could goto the room, and
you could write up a fancy mob program to give them the money. The Character
file would already be loaded and online when they ask for the money, so no
need to actually load anything into memory... It could be stored just like
money is stored on Player Files... Shop Coin, Shop Coin1, Shop Coin2.

That handles your basics.. Now how to store the actual items for sale.. I
considered doing this.. Adding a Invisible Item FLAG to the Items which
marked them as being items they are selling, now using code already written
to save and load the items like the functions. Since We the stocking would
be done online, All you would have to do is add the flag to the item, make
them so the person can't see them, use them or whatever..... (they would be
on them, and Immortals for testing purposes can see the items with the flag
SELLING or something ) so they would think they don't go it but in the
background their still on their playerfile.. I did something like this to
allow people to bank items to store in the bank like a safety deposit box of
some sort.

Now for when a person goes to LIST or BUY items.. Simple concept would be
Check to see if the Player doing the selling was online... If so just go
through his item list and look for the items which have the special flag on
them... If not load up the character, look for the items and check the
flags..

This would also allow players to sell revamped or changed items.... and such
so they could sell unique stuff.. Allow them to have full control of
stocking the shop and add some nice RP.. like you could have a maintance
cost or charge the person for the mob's services.. IE have them pay them..
It could be deducted from the shop earnings or the MOB walks *smiles* or
goes on STRIKE!!!! *laughs*

anyways heres the idea on how I thought of implmenting this.. Perhaps people
have better ideas, toss em on up.. Been awhile since I made any code of this
sort so thought I would take on the job.. I have not seen this implemented
cept in CIRCLE and I didn't like how they did it.. I would rather the thing
be automated....


Thanks,
Steven Radziul
Redkoala Mud Services - Senior Programmer (Alive and kicking)



Reply via email to