|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Slacker
|
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
__________________
I PAID did you ? |
|
|
|
|
#5 (permalink) |
|
Forum Novice
Join Date: Jul 2004
Location: Vermont
Age: 49
Posts: 225
|
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
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
|
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. |
|
|
|
|
#8 (permalink) | |
|
Join Date: Mar 2005
Age: 30
Posts: 53
|
Quote:
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() );
|
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
|
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. 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. thanks ![]() |
|
|
|
|
#10 (permalink) |
|
Newbie
|
nice script
![]()
__________________
- Deegs aka Citriz - Project Citriz |
|
|
|
|
#11 (permalink) | |
|
Forum Expert
|
Quote:
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() ); |
|
|
|
|
|
#12 (permalink) |
|
Forum Expert
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
|
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.
![]() |
|
|
|
|
#13 (permalink) | |
|
Forum Expert
|
Quote:
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 ![]() |
|
|
|
|
|
#15 (permalink) |
|
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!!! |
|
|
|
|
|
#17 (permalink) | |
|
Quote:
![]()
__________________
:rolleyes: :D Perilous Dragon :D :cool: |
||
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|