Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 08-09-2005, 03:18 AM   #1 (permalink)
Slacker
 
Join Date: Apr 2004
Age: 40
Posts: 58
Send a message via AIM to phoo
Default Savings Accounts

Savings Accounts convert piles of gold and tokens and bank checks and token checks into a single item that can be customized to be a powerful banking alternative



choose with or without tokens

unrar the appropriate file

place the savingsaccount.cs file in your scripts folder (anywhere is fine)


now choose a path : correct way or lazy way...


Correct way:

edit the charcreation.cs to add savings accounts to the bank box of new players
add to bank of existing players to give them savings accounts


LAZY WAY:

[add savingsaccount

[set itemid 3796 //this is the itemid of a stone

[set name "Double Click if you see a gump that means you have one in bank use it instead."

[bc go use the new stone
Attached Files
File Type: rar NoTokens.rar (3.1 KB, 216 views)
File Type: rar WithTokens.rar (3.6 KB, 195 views)
__________________
I PAID did you ?
phoo is offline  
Old 08-09-2005, 06:19 PM   #2 (permalink)
Forum Expert
 
Join Date: Aug 2003
Location: Australia
Age: 30
Posts: 270
Send a message via ICQ to big_cat Send a message via MSN to big_cat Send a message via Yahoo to big_cat
Default

Ok this looks interesting, what exactly do I need in the charcreation.cs file?
big_cat is offline  
Old 08-14-2005, 04:20 PM   #3 (permalink)
Slacker
 
Join Date: Apr 2004
Age: 40
Posts: 58
Send a message via AIM to phoo
Default add to char creation

Code:
   BankBox bank = m.BankBox;
   if ( bank != null )
   {
    bank.DropItem( new SavingsAccount() );
    }
__________________
I PAID did you ?
phoo is offline  
Old 08-21-2005, 03:39 PM   #4 (permalink)
 
Join Date: Aug 2005
Age: 41
Posts: 16
Default Question

I did exactly as you said..but when a new player comes in..he/she still does not have a savingsaccount in there bank box.....help?
vidicus is offline  
Old 09-02-2005, 08:05 PM   #5 (permalink)
Forum Novice
 
Join Date: Jul 2004
Location: Vermont
Age: 49
Posts: 225
Default Savings Account

I was wondering.... I have Daats99 OWLTR and currently the tokens go directly into a token book when you kill, mine, craft, etc. AND I have a cleanup command that puts gold into backpack...

Is there a way to make the tokens & gold go directly in to the savings account?
__________________
:p Back up and save a world! :p
Roseanne is offline  
Old 09-09-2005, 06:12 PM   #6 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default Daat99 Tokens and savings account

Yes, this is possible, but you will need to change the daat99token system script, the savingsaccount script, and the claim script.

You will need to modify the daat99token script in how it handles the rewarding of tokens to the tokenledger (give you a hint... it is at bottom of script). Best bet is to use how it is done in the savingsaccount script.

You need to change your claim script where it adds the gold (and/or tokenchecks) to backpack. Modify this in a similar way to the above.

Finally, you will need to modify savingsaccount script where it handles the drag/drop event. Find any references to tokens and TokensBankCheck and change them to daat99tokens and tokencheck. you may also want to add a section for LootTokenCheck. (another hint... daat99 tokenchecks and loottokenchecks do not have a Worth property!)


Hope this gives you a start to make the changes yourself.
dracana is offline  
Old 09-14-2005, 05:54 AM   #7 (permalink)
Slacker
 
Join Date: Apr 2004
Age: 40
Posts: 58
Send a message via AIM to phoo
Default moving to AZ

with the huge cost of gas @ 2.99 a gal i will be offline a few months after the move.. i will work to update this system soon as i get back online
__________________
I PAID did you ?
phoo is offline  
Old 09-29-2005, 02:07 AM   #8 (permalink)
 
Join Date: Mar 2005
Age: 30
Posts: 53
Default

Quote:
Originally Posted by phoo
Code:
   BankBox bank = m.BankBox;
   if ( bank != null )
   {
    bank.DropItem( new SavingsAccount() );
    }
Sorry, in most cases, this is wrong. Here is the correct place to put this, should look as I have it now:

Code:
newChar.Player = true;
			newChar.AccessLevel = ((Account)args.Account).AccessLevel;
			newChar.Female = args.Female;
			newChar.Body = newChar.Female ? 0x191 : 0x190;
			newChar.Hue = Utility.ClipSkinHue( args.Hue & 0x3FFF ) | 0x8000;
			newChar.Hunger = 20;
                        newChar.BankBox.DropItem( new MailBox() );
                        newChar.BankBox.DropItem( new SavingsAccount() );
Just search around line 611 or so and you'll find it.
LNM_TNB is offline  
Old 09-29-2005, 02:42 PM   #9 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

Hi there i tryed putting it in both ways and all i got was.

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 616, column 40) The t
ype or namespace name 'm' could not be found (are you missing a using directive
or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
and

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 616, column 55) The t
ype or namespace name 'MailBox' could not be found (are you missing a using dire
ctive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
i hope it can be sorted out. as i think this is a cool script
thanks
WonderlandADnc is offline  
Old 09-29-2005, 03:13 PM   #10 (permalink)
Newbie
 
Join Date: Oct 2004
Age: 25
Posts: 49
Send a message via MSN to Deegs Send a message via Yahoo to Deegs
Default

nice script
__________________
- Deegs aka Citriz - Project Citriz
Deegs is offline  
Old 09-29-2005, 05:16 PM   #11 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by WonderlandADnc
Hi there i tryed putting it in both ways and all i got was.

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 616, column 40) The t
ype or namespace name 'm' could not be found (are you missing a using directive
or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
and

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 616, column 55) The t
ype or namespace name 'MailBox' could not be found (are you missing a using dire
ctive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
i hope it can be sorted out. as i think this is a cool script
thanks
The second method is the way to do it (like LNM_TNB say to do it), but it looks like you included the line...
newChar.BankBox.DropItem( new MailBox() );

This is for a separate script and does not need to be added to add a savingsaccount. Just remove that line and leave the line
newChar.BankBox.DropItem( new SavingsAccount() );
dracana is offline  
Old 09-30-2005, 06:15 PM   #12 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

Thanks that worked a treat. lol. is there a way i can put the shards name in the menu, that would be good. what i think is great about this script is that newbes not good at making a bank checks, they can play with that. all the best.
WonderlandADnc is offline  
Old 09-30-2005, 07:27 PM   #13 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by WonderlandADnc
Thanks that worked a treat. lol. is there a way i can put the shards name in the menu, that would be good. what i think is great about this script is that newbes not good at making a bank checks, they can play with that. all the best.
When you say menu, I assume you mean the Savings Account gump? If so, it is possible to add the shard name to the gump.

You can use Server.Misc.ServerList.ServerName to show the shard(server) name.

Not sure how much you know about modifying gumps, but to make it easy, you could replace the line that reads...
AddLabel(50, 35, 4, @"~~~~~~~~~~~~~~~~~~~~~~~");

with something like...
AddLabel(50, 35, 4, @"~~ " + Server.Misc.ServerList.ServerName + " ~~");
you can play around with the 50 to center it based on your shard name length.

Otherwise, if you want to add a new line in the gump, etc. You will obviously need to change alot more to resize and reposition. I will leave that up to you to figure out
dracana is offline  
Old 09-30-2005, 07:50 PM   #14 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

ok thanks all give it ago.
WonderlandADnc is offline  
Old 04-28-2006, 12:53 AM   #15 (permalink)
 
Join Date: Dec 2004
Location: Louisiana
Age: 33
Posts: 241
Send a message via ICQ to xX_Devious_Xx Send a message via AIM to xX_Devious_Xx Send a message via MSN to xX_Devious_Xx Send a message via Yahoo to xX_Devious_Xx
Default

I dont know exactly how they players are doing but one player found an exploit for this. She was withdrawing 5000 gold over and over until it got to 60k then set aside in her pack then used the add button to put it in the savings box and it doubled. Just passing on info for other admins. Thank You
__________________
*farts* oops!! My brain farted...hehehe....:D
I have a book called C# For Dummies!! ;)
!!! SMACK !!! BAD BRAIN!!!
xX_Devious_Xx is offline  
Old 05-22-2006, 02:02 AM   #16 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

Hi there. when this is used do you get given intrest. as i keep getting intrest. and i dont have the intrest system in my server. thanks.
__________________
*+ MW Admin Naturescorpse +*
WonderlandADnc is offline  
Old 05-23-2006, 01:03 AM   #17 (permalink)
 
Join Date: Jan 2006
Location: Durham NC
Posts: 8
Send a message via ICQ to admnmer Send a message via AIM to admnmer Send a message via MSN to admnmer Send a message via Yahoo to admnmer
Default

Quote:
Originally Posted by WonderlandADnc
Hi there. when this is used do you get given intrest. as i keep getting intrest. and i dont have the intrest system in my server. thanks.
well it looks like you answered your self if you are geting intrest then yes this script does that
admnmer is offline  
Old 05-23-2006, 01:43 AM   #18 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

ok. i just also wanted to know how i ajust the amount. it gives and when. thanks
__________________
*+ MW Admin Naturescorpse +*
WonderlandADnc is offline  
 

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



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5