|
||
|
|
#1 (permalink) |
|
Forum Novice
|
Summery:
This is really nothing more than a Bank Stone with requirements. Basically, it's a stone that you can place anywhere, and then players must have an ATM card to access their bank account by using the stone. You can either, hand them out on character creation, or, I've provided (below) a way to add the card to your banker to sell to players. If a player without a card double clicks the stone they are imformed that, "You must have an ATM card to access this ATM stone.", if they have an ATM card, it opens their bank box. The card is blessed, you can change this by opening up AtmCard.cs and removing the loottype line. Installation: Simply unzip the AtmStone folder in your customs folder, then fire up your server. To add the ATM card to your bankers, open up SBBanker.cs file, and add: Add( new GenericBuyInfo( "ATM Card", typeof( AtmCard ), 1000, 20, 0x12AC, 0 ) ); inside the "public InternalBuyInfo()". Obviously you can change the 1000, 20 to whatever you want: how much, how many Enjoy. |
|
|
|
|
|
#2 (permalink) |
|
Join Date: Mar 2004
Posts: 38
|
would be a good addon to this script if you could make it so that players could give their atm card to another player they could get money out of their bank might need to add some sort of pin number to it though just in case it got lost
|
|
|
|
|
|
#3 (permalink) | |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
Quote:
It can be done but it would need to be done perfectly because of the nature of it
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
|
|
#5 (permalink) | |
|
Master of the Internet
|
Quote:
|
|
|
|
|
|
|
#6 (permalink) |
|
Hax Your Face.
Join Date: Jun 2004
Age: 21
Posts: 820
|
Not necessarily.
You can just add a "coowner" type property to store a mobile. With it checking for a coowner and a pin through a gump, I don't see any possible abuse* if done properly. *That is excluding the chosen coowner stealing stuff with access . . . But that's a risk you can't really do much about without making access EXTREMELY limited from the second party. |
|
|
|
|
|
#7 (permalink) | |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
Quote:
shouldn't be too hard, and would be less exploitable (not that it still is not dangerous unless done perfectly)
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
|
|
#9 (permalink) |
|
Or the card could simply not have a static owner.
Let's say Bob loses his ATM card and Larry picks it up. When Larry went to an ATM stone it would open HIS bank, not Bob's. This seems like the easiest route. Otherwise you might want to check out the personal bless deed script and find out how to make it so the card only works for one player. PINs are not a bad idea either, but how would they be generated and what if a player forgot his? And while you're at it I think it would make it more realistic if you were to make it so that you can only do the equivilant of saying "withdraw [amount]" from an ATM stone (you cannot open your SDB; only withdraw cash) |
|
|
|
|
|
|
#10 (permalink) | |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
Quote:
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
|
|
#11 (permalink) |
|
Forum Novice
|
I like the idea of binding it to the owner's bank account. Maybe hand it out on player creation, binding it to that person, then make it stealable, lootable, etc.
It'd be just like a normal ATM card, if you lose it, it's your fault. This would suck to be the person who lost the card, that's why you could put a feature on the ATM stone to destroy the esixting card, replacing it with a new card and PIN, of course teh card would be placed into the owner's pack. I, however, being the sucky coder that I am, can't do any of this, so if anyone wants this done, get coding ;] |
|
|
|
|
|
#12 (permalink) | |
|
Soul of Darkness
|
Quote:
The thing I am curious to though... it would only have access to the players gold in the Bank correct?? cause Items as well??? Nah that would be kinda annoying...
__________________
You never learn, do you? This wasn't about you, this was never about you. And you fall for it every single time! It must be bunnies...or maybe midgets. |
|
|
|
|
|
|
#13 (permalink) |
|
Forum Expert
|
on pin #
Have it so it gets an owner, ONLY if the owner d clicks the card itll display to them the pin #, a 5 digit or 4 digit number, and if someone else uses it itll say, it isnt your card! but if they use the stone a gump appears for the pin # of card, if they get the cards pin right it lets em in, if not it deletes it and says your card was shredded. |
|
|
|
|
|
#14 (permalink) | |
|
Soul of Darkness
|
Quote:
__________________
You never learn, do you? This wasn't about you, this was never about you. And you fall for it every single time! It must be bunnies...or maybe midgets. |
|
|
|
|
|
|
#16 (permalink) |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
give them 3 attempts... like any modern ATM
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
|
#17 (permalink) |
|
Forum Novice
|
If the old card is "shredded" then a new one should be issued to the original owner at the same time, with a new PIN.
The ATM card gives access to the entire bankbox, so, if you only store gold in your bank, then that's all you need to worry about being stolen. |
|
|
|
|
|
#18 (permalink) |
|
Hax Your Face.
Join Date: Jun 2004
Age: 21
Posts: 820
|
I'm sort of doubting the ability to actually go through with this --
I gave it a try. I've gotten everything up to owners, pins, checking for owners, and even sending and confirming the pin in a gump. The problem is when attempting to open the bankbox for someone who isn't the owner. The Open() method for the BankBox class opens the bank gump for the bank's owner, always. What I did, was if the person using the card wasn't the owner, it would send them a gump. If they entered the correct pin in the gump, I called the following: Code:
card.Owner.BankBox.Open(); I suppose I could create a method that takes args for a mobile, and send the gump to them Code:
public void OpenFor( Mobile m ) If I misunderstand the workings of the Open() method, please correct me, but my code seemed pretty solid and I'm led to believe what I explained. |
|
|
|
|
|
#19 (permalink) |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
I have an idea...
Banks... They store money, and valubles. The money in the vault, the other valubles in safe deposit boxes... Can you get to your safe deposit box with an ATM card? no. ATM machines only have money. I personally would do this a bit different, but following your original design.... Make a property in the PlayerMobile.cs with some name like bankmoney Then make an ATM machine (if its not already made) A player can use the ATM card on the machine to deposit gold (only gold) the number is stored in the property we just made. If a player uses someone elses ATM, it checks the owners value (not the bank box)... if they want the other stuff in their bank, they would have to go inside the bank to the safe deposit boxes... do you understand what I'm saying?
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
|
#20 (permalink) |
|
Join Date: Aug 2004
Age: 18
Posts: 58
|
As for only depositing/withdrawing money, you could do something like the tithing gump for when you tithe money to an ankh. You'd have to make it so you could withdraw too, but it would still be the best thing to go with if you're trying to make it gold-only.
|
|
|
|
|
|
#21 (permalink) | |
|
Soul of Darkness
|
Quote:
Yea I def think only gold should be accessable with the ATM Card.... Just curious couldn't you base a gump off how a vendor takes your gold from your bank when you buy something?? I think some actually take money even if its in Bank checks not totally sure... Speaking of bank checks... should those be accessable?? Or should they not be
__________________
You never learn, do you? This wasn't about you, this was never about you. And you fall for it every single time! It must be bunnies...or maybe midgets. |
|
|
|
|
|
|
#22 (permalink) |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
the tithing gump or the stone itself doesn't save the amount you have donated... the amount is saved on the character as TithingPoints or some such.
Besides you wouldn't want to change tithing to be used for this system, you need a new variable in the PM Most of the ground work is done, going back to try and create a system using another system like tithing would be a step backwards its fairly simple from here make a property in PM like BankMoney then in the atm card you make the unique code that is based off the player, name the property something like UIN this variable should be the account name of the player like in string form, or convert it to a number and use Int, whatever you prefer... The ATM machine needs to check this UIN in the OnDoubleClick and it uses that players BankMoney Then, on the ATM card you make another property named PIN This will be a number determined by the player (its not hard to do) In the ATM Machine OnDoubleClick again, there needs to be a check for the PIN, if the player holding the card uses the right one it opens the ATM gump... if not it goes to case 2, which is the same as 1, it allows them to try again... then if fail, to case 3, where if they fail again, it removes the card from the players pack (not deleting it) and places it in the account owners bank ... no need to shred the card, but you can still tell the player that the card was shredded... it will have the same effect. If a player loses the card they can go to the ATM machine and choose to get a new card ( for a fee like the real banks ) It doesn't get a new card, but finds theirs. IF it is deleted it makes a new one, the info is on the PM so its not lost. They will just need to choose another PIN Looking at the tithing system while it will not hurt... don't let it confuse you, not much is really needed to do this. Also, as for the bank box. I'd say don't even access it. It's like a new account at the bank. So if they want to transfer gold from the bank to the ATM, thats fine.
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
|
#23 (permalink) |
|
Soul of Darkness
|
So basically like a new account like a checking account it would be an ATM account that they could add gold to by gump in the stone?? Yea that sounds decent
__________________
You never learn, do you? This wasn't about you, this was never about you. And you fall for it every single time! It must be bunnies...or maybe midgets. |
|
|
|
|
|
#24 (permalink) | |
|
God of Pandora
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
|
Quote:
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|