Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-22-2004, 11:45 AM   #1 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Send a message via MSN to septor
Default An ATM Stone

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.
Attached Files
File Type: zip ATMStone.zip (1.1 KB, 306 views)
septor is offline   Reply With Quote
Old 07-23-2004, 03:17 PM   #2 (permalink)
 
Join Date: Mar 2004
Posts: 38
Default

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
jungleboy is offline   Reply With Quote
Old 07-23-2004, 04:13 PM   #3 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

Quote:
Originally Posted by jungleboy
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
very dangerous, and very exploitable, even with a pin...

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.
KillerBeeZ is offline   Reply With Quote
Old 07-23-2004, 05:58 PM   #4 (permalink)
 
Join Date: Oct 2003
Location: Ankara / Turkey
Age: 42
Posts: 125
Default

Maybe ATMCard can be done to use only the owner of it, like newplayerticket.
WebSiter is offline   Reply With Quote
Old 07-23-2004, 06:42 PM   #5 (permalink)
Master of the Internet
 
DontdroptheSOAD's Avatar
 
Join Date: Apr 2003
Location: Glen Saint Mary, Florida
Age: 19
Posts: 6,834
Send a message via AIM to DontdroptheSOAD
Default

Quote:
Originally Posted by KillerBeeZ
very dangerous, and very exploitable, even with a pin...

It can be done but it would need to be done perfectly because of the nature of it
Ya it would be VERY dangerous having players basically using the [bank command
DontdroptheSOAD is offline   Reply With Quote
Old 07-23-2004, 06:47 PM   #6 (permalink)
Hax Your Face.
 
Join Date: Jun 2004
Age: 21
Posts: 820
Default

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.
Waverian is offline   Reply With Quote
Old 07-23-2004, 06:49 PM   #7 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

Quote:
Originally Posted by DontdroptheSOAD
Ya it would be VERY dangerous having players basically using the [bank command
what about an ATM card that acts like a preset card, where the owner (player A)types in the amount and player B takes it to the stone, where it takes that amount from player A's bank?

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.
KillerBeeZ is offline   Reply With Quote
Old 07-23-2004, 08:01 PM   #8 (permalink)
Forum Expert
 
Join Date: Nov 2003
Location: Buckhannon, WV
Age: 34
Posts: 409
Send a message via ICQ to iZJokersWild Send a message via Yahoo to iZJokersWild
Default

Well, if you trust them enough to give them access to your bank, then there really should not be an issue with it. Theft is part of the game. Their bank gets cleaned out because they gave them your card, who's fault is it?
iZJokersWild is offline   Reply With Quote
Old 07-23-2004, 09:07 PM   #9 (permalink)
 
Join Date: Aug 2003
Posts: 271
Send a message via AIM to Zidane4056
Default

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)
Zidane4056 is offline   Reply With Quote
Old 07-24-2004, 07:56 AM   #10 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

Quote:
Originally Posted by Zidane4056
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)
yes that route is quite easy... I believe thats how the script works by default
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
KillerBeeZ is offline   Reply With Quote
Old 09-24-2004, 09:46 PM   #11 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Send a message via MSN to septor
Default

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 ;]
septor is offline   Reply With Quote
Old 09-24-2004, 10:28 PM   #12 (permalink)
Soul of Darkness
 
Draxus's Avatar
 
Join Date: Feb 2004
Location: In The Shadow of your mind!
Age: 22
Posts: 201
Send a message via AIM to Draxus Send a message via MSN to Draxus
Default

Quote:
Originally Posted by septor
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 ;]
I think alot of these ideas are really sweet.... Each person should get his or her own ATM card with its set PIN number... if someone steals it... they cant use it unless they know the PIN number... how it is in RL
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.
Draxus is offline   Reply With Quote
Old 09-24-2004, 10:47 PM   #13 (permalink)
Forum Expert
 
Join Date: Aug 2003
Posts: 737
Send a message via ICQ to georox Send a message via AIM to georox
Default

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.
__________________
georox is offline   Reply With Quote
Old 09-24-2004, 11:26 PM   #14 (permalink)
Soul of Darkness
 
Draxus's Avatar
 
Join Date: Feb 2004
Location: In The Shadow of your mind!
Age: 22
Posts: 201
Send a message via AIM to Draxus Send a message via MSN to Draxus
Default

Quote:
Originally Posted by georox
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.
Awsome idea.. only one problem though.. what if the actual owner of the card has a mistype... and his card is shredded cause he messed up 1234 as 1244.... Iono... Other than that... I like the sound of that
__________________
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.
Draxus is offline   Reply With Quote
Old 09-25-2004, 12:36 AM   #15 (permalink)
Forum Expert
 
Join Date: Aug 2003
Posts: 737
Send a message via ICQ to georox Send a message via AIM to georox
Default

Have an NPC selling em for a semi-decent price. Maybe a bit high =P as replacements lol
or have it check once a week irl to ese who needs new ones and re-distribute. just go a week w/oi one or something.
__________________
georox is offline   Reply With Quote
Old 09-25-2004, 01:13 AM   #16 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

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.
KillerBeeZ is offline   Reply With Quote
Old 09-25-2004, 09:17 AM   #17 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Send a message via MSN to septor
Default

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.
septor is offline   Reply With Quote
Old 09-25-2004, 09:33 AM   #18 (permalink)
Hax Your Face.
 
Join Date: Jun 2004
Age: 21
Posts: 820
Default

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();
Whereas Owner is a property storing the playermobile who owns the card. That never opened the bank for the non-owner using the card, so I assume that it opened the bank to the actual mobile who owns it.

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 )
But I can't seem to find the BankBox class, so I assume it's Core.


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.
Waverian is offline   Reply With Quote
Old 09-25-2004, 11:01 AM   #19 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

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.
KillerBeeZ is offline   Reply With Quote
Old 09-25-2004, 12:12 PM   #20 (permalink)
 
Join Date: Aug 2004
Age: 18
Posts: 58
Default

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.
Himura! is offline   Reply With Quote
Old 09-25-2004, 12:22 PM   #21 (permalink)
Soul of Darkness
 
Draxus's Avatar
 
Join Date: Feb 2004
Location: In The Shadow of your mind!
Age: 22
Posts: 201
Send a message via AIM to Draxus Send a message via MSN to Draxus
Thumbs up

Quote:
Originally Posted by KillerBeeZ
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?

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.
Draxus is offline   Reply With Quote
Old 09-25-2004, 05:10 PM   #22 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

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.
KillerBeeZ is offline   Reply With Quote
Old 09-25-2004, 11:12 PM   #23 (permalink)
Soul of Darkness
 
Draxus's Avatar
 
Join Date: Feb 2004
Location: In The Shadow of your mind!
Age: 22
Posts: 201
Send a message via AIM to Draxus Send a message via MSN to Draxus
Default

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.
Draxus is offline   Reply With Quote
Old 09-26-2004, 01:18 AM   #24 (permalink)
God of Pandora
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Gainesville GA
Age: 31
Posts: 2,000
Default

Quote:
Originally Posted by Draxus
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
Yup, thats about it
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
KillerBeeZ is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off