RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

How do I add things to Bankbox without Test Center on

sirbum69

Wanderer
Ajants.............

Post exactly what you have done....Post in the area of code that you have edited....dont just post that little code you are doing...

we need to see where in the script you have tried to make it work and broke it that way we can see what you are doing wrong to break it....

So in the [.code][./code] brackets paste the entire area of code that you have edited....

and i dont mean the entire CharCreation.cs...LoL.....
 

Ajantis

Wanderer
I posted what someone else posted.......I haven't tried yet, since I want it to work the FIRST time rather then do it a million times.

So someone in this entire forum should know how to add things to a new players bank without TestCenter enabled..........simply tell me what you did, quoting the script you used. Thanks.
 
zachseitz said:
He does not want Test Center Enabled. Read the post again.
Its in the CharacterCreation.cs file. Like Packer898 said, This is a learning forum. You give us the problem, we help you fix it. We don't fix it for you.

even with the test center diabled he can still add things from the lines i posted if you dont beleave me get on my shard and look how i have it, if you add stuff in that line it will still add to the bank even with the test center diabled does not matter from what i see and if he want he can always go a few lines up to this if his aos is disabled as well!

Code:
private static void FillBankbox( Mobile m )
		{
			if ( Core.AOS )
			{
				FillBankAOS( m );
				return;
			}
			
			BankBox bank = m.BankBox;
			
			if ( bank != null )
			{
				[COLOR="Red"]bank.DropItem( new BankCheck( 5000 ) );[/COLOR]

or he can add stuff here if aos is enabled!

Code:
private static void FillBankAOS( Mobile m )
		{
			BankBox bank = m.BankBox;
			
			if ( bank == null )
				return;
			
			// The new AOS bankboxes don't have powerscrolls, they are automatically 'applied':
			
			for ( int i = 0; i < PowerScroll.Skills.Length; ++i )
				m.Skills[PowerScroll.Skills[ i ]].Cap = 120.0;
			
			m.StatCap = 250;
			
			
			Container cont;
			
			
			// Begin box of money
			cont = new WoodenBox();
			cont.ItemID = 0xE7D;
			cont.Hue = 0x489;
			
			PlaceItemIn( cont, 16, 51, new BankCheck( 500000 ) );
			PlaceItemIn( cont, 28, 51, new BankCheck( 250000 ) );
			PlaceItemIn( cont, 40, 51, new BankCheck( 100000 ) );
			PlaceItemIn( cont, 52, 51, new BankCheck( 100000 ) );
			PlaceItemIn( cont, 64, 51, new BankCheck(  50000 ) );
			
			PlaceItemIn( cont, 16, 115, new Factions.Silver( 9000 ) );
			PlaceItemIn( cont, 34, 115, new Gold( 60000 ) );
			
			PlaceItemIn( bank, 18, 169, cont );
			// End box of money
			
			
			// Begin bag of potion kegs
			cont = new Backpack();
			cont.Name = "Various Potion Kegs";
			
			PlaceItemIn( cont,  45, 149, MakePotionKeg( PotionEffect.CureGreater, 0x2D ) );
			PlaceItemIn( cont,  69, 149, MakePotionKeg( PotionEffect.HealGreater, 0x499 ) );
			PlaceItemIn( cont,  93, 149, MakePotionKeg( PotionEffect.PoisonDeadly, 0x46 ) );
			PlaceItemIn( cont, 117, 149, MakePotionKeg( PotionEffect.RefreshTotal, 0x21 ) );
			PlaceItemIn( cont, 141, 149, MakePotionKeg( PotionEffect.ExplosionGreater, 0x74 ) );
			
			PlaceItemIn( cont, 93, 82, new Bottle( 1000 ) );
			
			PlaceItemIn( bank, 53, 169, cont );
			// End bag of potion kegs
			
			
			// Begin bag of tools
			cont = new Bag();
			cont.Name = "Tool Bag";
			
			PlaceItemIn( cont, 30,  35, new TinkerTools( 1000 ) );
			PlaceItemIn( cont, 60,  35, new HousePlacementTool() );
			PlaceItemIn( cont, 90,  35, new DovetailSaw( 1000 ) );
			PlaceItemIn( cont, 30,  68, new Scissors() );
			PlaceItemIn( cont, 45,  68, new MortarPestle( 1000 ) );
			PlaceItemIn( cont, 75,  68, new ScribesPen( 1000 ) );
			PlaceItemIn( cont, 90,  68, new SmithHammer( 1000 ) );
			PlaceItemIn( cont, 30, 118, new TwoHandedAxe() );
			PlaceItemIn( cont, 60, 118, new FletcherTools( 1000 ) );
			PlaceItemIn( cont, 90, 118, new SewingKit( 1000 ) );
			
			PlaceItemIn( cont, 36, 51, new RunicHammer( CraftResource.DullCopper, 50 ) );
			PlaceItemIn( cont, 42, 51, new RunicHammer( CraftResource.ShadowIron, 45 ) );
			PlaceItemIn( cont, 48, 51, new RunicHammer( CraftResource.Copper, 40 ) );
			PlaceItemIn( cont, 54, 51, new RunicHammer( CraftResource.Bronze, 35 ) );
			PlaceItemIn( cont, 61, 51, new RunicHammer( CraftResource.Gold, 30 ) );
			PlaceItemIn( cont, 67, 51, new RunicHammer( CraftResource.Agapite, 25 ) );
			PlaceItemIn( cont, 73, 51, new RunicHammer( CraftResource.Verite, 20 ) );
			PlaceItemIn( cont, 79, 51, new RunicHammer( CraftResource.Valorite, 15 ) );
			
			PlaceItemIn( cont, 36, 55, new RunicSewingKit( CraftResource.SpinedLeather, 45 ) );
			PlaceItemIn( cont, 42, 55, new RunicSewingKit( CraftResource.HornedLeather, 30 ) );
			PlaceItemIn( cont, 48, 55, new RunicSewingKit( CraftResource.BarbedLeather, 15 ) );
			
			PlaceItemIn( bank, 118, 169, cont );
			// End bag of tools
			
			
			// Begin bag of archery ammo
			cont = new Bag();
			cont.Name = "Bag Of Archery Ammo";
			
			PlaceItemIn( cont, 48, 76, new Arrow( 5000 ) );
			PlaceItemIn( cont, 72, 76, new Bolt( 5000 ) );
			
			PlaceItemIn( bank, 118, 124, cont );
			// End bag of archery ammo
			
			
			// Begin bag of treasure maps
			cont = new Bag();
			cont.Name = "Bag Of Treasure Maps";
			
			PlaceItemIn( cont, 30, 35, new TreasureMap( 1, Map.Trammel ) );
			PlaceItemIn( cont, 45, 35, new TreasureMap( 2, Map.Trammel ) );
			PlaceItemIn( cont, 60, 35, new TreasureMap( 3, Map.Trammel ) );
			PlaceItemIn( cont, 75, 35, new TreasureMap( 4, Map.Trammel ) );
			PlaceItemIn( cont, 90, 35, new TreasureMap( 5, Map.Trammel ) );
			PlaceItemIn( cont, 90, 35, new TreasureMap( 6, Map.Trammel ) );
			
			PlaceItemIn( cont, 30, 50, new TreasureMap( 1, Map.Trammel ) );
			PlaceItemIn( cont, 45, 50, new TreasureMap( 2, Map.Trammel ) );
			PlaceItemIn( cont, 60, 50, new TreasureMap( 3, Map.Trammel ) );
			PlaceItemIn( cont, 75, 50, new TreasureMap( 4, Map.Trammel ) );
			PlaceItemIn( cont, 90, 50, new TreasureMap( 5, Map.Trammel ) );
			PlaceItemIn( cont, 90, 50, new TreasureMap( 6, Map.Trammel ) );
			
			PlaceItemIn( cont, 55, 100, new Lockpick( 30 ) );
			PlaceItemIn( cont, 60, 100, new Pickaxe() );
			
			PlaceItemIn( bank, 98, 124, cont );
			// End bag of treasure maps
			
			
			// Begin bag of raw materials
			cont = new Bag();
			cont.Hue = 0x835;
			cont.Name = "Raw Materials Bag";
			
			PlaceItemIn( cont, 92, 60, new BarbedLeather( 5000 ) );
			PlaceItemIn( cont, 92, 68, new HornedLeather( 5000 ) );
			PlaceItemIn( cont, 92, 76, new SpinedLeather( 5000 ) );
			PlaceItemIn( cont, 92, 84, new Leather( 5000 ) );
			
			PlaceItemIn( cont, 30, 118, new Cloth( 5000 ) );
			PlaceItemIn( cont, 30,  84, new Board( 5000 ) );
			PlaceItemIn( cont, 57,  80, new BlankScroll( 500 ) );
			
			PlaceItemIn( cont, 30,  35, new DullCopperIngot( 5000 ) );
			PlaceItemIn( cont, 37,  35, new ShadowIronIngot( 5000 ) );
			PlaceItemIn( cont, 44,  35, new CopperIngot( 5000 ) );
			PlaceItemIn( cont, 51,  35, new BronzeIngot( 5000 ) );
			PlaceItemIn( cont, 58,  35, new GoldIngot( 5000 ) );
			PlaceItemIn( cont, 65,  35, new AgapiteIngot( 5000 ) );
			PlaceItemIn( cont, 72,  35, new VeriteIngot( 5000 ) );
			PlaceItemIn( cont, 79,  35, new ValoriteIngot( 5000 ) );
			PlaceItemIn( cont, 86,  35, new IronIngot( 5000 ) );
			
			PlaceItemIn( cont, 30,  59, new RedScales( 5000 ) );
			PlaceItemIn( cont, 36,  59, new YellowScales( 5000 ) );
			PlaceItemIn( cont, 42,  59, new BlackScales( 5000 ) );
			PlaceItemIn( cont, 48,  59, new GreenScales( 5000 ) );
			PlaceItemIn( cont, 54,  59, new WhiteScales( 5000 ) );
			PlaceItemIn( cont, 60,  59, new BlueScales( 5000 ) );
			
			PlaceItemIn( bank, 98, 169, cont );
			// End bag of raw materials
			
			
			// Begin bag of spell casting stuff
			cont = new Backpack();
			cont.Hue = 0x480;
			cont.Name = "Spell Casting Stuff";
			
			PlaceItemIn( cont, 45, 105, new Spellbook( UInt64.MaxValue ) );
			PlaceItemIn( cont, 65, 105, new NecromancerSpellbook( (UInt64)0xFFFF ) );
			PlaceItemIn( cont, 85, 105, new BookOfChivalry( (UInt64)0x3FF ) );
			PlaceItemIn( cont, 105, 105, new BookOfBushido() );	//Default ctor = full
			PlaceItemIn( cont, 125, 105, new BookOfNinjitsu() ); //Default ctor = full
			
			Runebook runebook = new Runebook( 10 );
			runebook.CurCharges = runebook.MaxCharges;
			PlaceItemIn( cont, 105, 105, runebook );
			
			Item toHue = new BagOfReagents( 150 );
			toHue.Hue = 0x2D;
			PlaceItemIn( cont, 45, 150, toHue );
			
			toHue = new BagOfNecroReagents( 150 );
			toHue.Hue = 0x488;
			PlaceItemIn( cont, 65, 150, toHue );
			
			PlaceItemIn( cont, 140, 150, new BagOfAllReagents( 500 ) );
			
			for ( int i = 0; i < 9; ++i )
				PlaceItemIn( cont, 45 + (i * 10), 75, new RecallRune() );
			
			PlaceItemIn( cont, 141, 74, new FireHorn() );
			
			PlaceItemIn( bank, 78, 169, cont );
			// End bag of spell casting stuff
			
			
			// Begin bag of ethereals
			cont = new Backpack();
			cont.Hue = 0x490;
			cont.Name = "Bag Of Ethy's!";
			
			PlaceItemIn( cont, 45, 66, new EtherealHorse() );
			PlaceItemIn( cont, 69, 82, new EtherealOstard() );
			PlaceItemIn( cont, 93, 99, new EtherealLlama() );
			PlaceItemIn( cont, 117, 115, new EtherealKirin() );
			PlaceItemIn( cont, 45, 132, new EtherealUnicorn() );
			PlaceItemIn( cont, 69, 66, new EtherealRidgeback() );
			PlaceItemIn( cont, 93, 82, new EtherealSwampDragon() );
			PlaceItemIn( cont, 117, 99, new EtherealBeetle() );
			
			PlaceItemIn( bank, 38, 124, cont );
			// End bag of ethereals
			
			
			// Begin first bag of artifacts
			cont = new Backpack();
			cont.Hue = 0x48F;
			cont.Name = "Bag of Artifacts";
			
			PlaceItemIn( cont, 45, 66, new TitansHammer() );
			PlaceItemIn( cont, 69, 82, new InquisitorsResolution() );
			PlaceItemIn( cont, 93, 99, new BladeOfTheRighteous() );
			PlaceItemIn( cont, 117, 115, new ZyronicClaw() );
			
			PlaceItemIn( bank, 58, 124, cont );
			// End first bag of artifacts
			
			
			// Begin second bag of artifacts
			cont = new Backpack();
			cont.Hue = 0x48F;
			cont.Name = "Bag of Artifacts";
			
			PlaceItemIn( cont, 45, 66, new GauntletsOfNobility() );
			PlaceItemIn( cont, 69, 82, new MidnightBracers() );
			PlaceItemIn( cont, 93, 99, new VoiceOfTheFallenKing() );
			PlaceItemIn( cont, 117, 115, new OrnateCrownOfTheHarrower() );
			PlaceItemIn( cont, 45, 132, new HelmOfInsight() );
			PlaceItemIn( cont, 69, 66, new HolyKnightsBreastplate() );
			PlaceItemIn( cont, 93, 82, new ArmorOfFortune() );
			PlaceItemIn( cont, 117, 99, new TunicOfFire() );
			PlaceItemIn( cont, 45, 115, new LeggingsOfBane() );
			PlaceItemIn( cont, 69, 132, new ArcaneShield() );
			PlaceItemIn( cont, 93, 66, new Aegis() );
			PlaceItemIn( cont, 117, 82, new RingOfTheVile() );
			PlaceItemIn( cont, 45, 99, new BraceletOfHealth() );
			PlaceItemIn( cont, 69, 115, new RingOfTheElements() );
			PlaceItemIn( cont, 93, 132, new OrnamentOfTheMagician() );
			PlaceItemIn( cont, 117, 66, new DivineCountenance() );
			PlaceItemIn( cont, 45, 82, new JackalsCollar() );
			PlaceItemIn( cont, 69, 99, new HuntersHeaddress() );
			PlaceItemIn( cont, 93, 115, new HatOfTheMagi() );
			PlaceItemIn( cont, 117, 132, new ShadowDancerLeggings() );
			PlaceItemIn( cont, 45, 66, new SpiritOfTheTotem() );
			PlaceItemIn( cont, 69, 82, new BladeOfInsanity() );
			PlaceItemIn( cont, 93, 99, new AxeOfTheHeavens() );
			PlaceItemIn( cont, 117, 115, new TheBeserkersMaul() );
			PlaceItemIn( cont, 45, 132, new Frostbringer() );
			PlaceItemIn( cont, 69, 66, new BreathOfTheDead() );
			PlaceItemIn( cont, 93, 82, new TheDragonSlayer() );
			PlaceItemIn( cont, 117, 99, new BoneCrusher() );
			PlaceItemIn( cont, 45, 115, new StaffOfTheMagi() );
			PlaceItemIn( cont, 69, 132, new SerpentsFang() );
			PlaceItemIn( cont, 93, 66, new LegacyOfTheDreadLord() );
			PlaceItemIn( cont, 117, 82, new TheTaskmaster() );
			PlaceItemIn( cont, 45, 99, new TheDryadBow() );
			
			PlaceItemIn( bank, 78, 124, cont );
			// End second bag of artifacts
			
			// Begin bag of minor artifacts
			cont = new Backpack();
			cont.Hue = 0x48F;
			cont.Name = "Bag of Minor Artifacts";
			
			
			PlaceItemIn( cont, 45, 66, new LunaLance() );
			PlaceItemIn( cont, 69, 82, new VioletCourage() );
			PlaceItemIn( cont, 93, 99, new CavortingClub() );
			PlaceItemIn( cont, 117, 115, new CaptainQuacklebushsCutlass() );
			PlaceItemIn( cont, 45, 132, new NightsKiss() );
			PlaceItemIn( cont, 69, 66, new ShipModelOfTheHMSCape() );
			PlaceItemIn( cont, 93, 82, new AdmiralsHeartyRum() );
			PlaceItemIn( cont, 117, 99, new CandelabraOfSouls() );
			PlaceItemIn( cont, 45, 115, new IolosLute() );
			PlaceItemIn( cont, 69, 132, new GwennosHarp() );
			PlaceItemIn( cont, 93, 66, new ArcticDeathDealer() );
			PlaceItemIn( cont, 117, 82, new EnchantedTitanLegBone() );
			PlaceItemIn( cont, 45, 99, new NoxRangersHeavyCrossbow() );
			PlaceItemIn( cont, 69, 115, new BlazeOfDeath() );
			PlaceItemIn( cont, 93, 132, new DreadPirateHat() );
			PlaceItemIn( cont, 117, 66, new BurglarsBandana() );
			PlaceItemIn( cont, 45, 82, new GoldBricks() );
			PlaceItemIn( cont, 69, 99, new AlchemistsBauble() );
			PlaceItemIn( cont, 93, 115, new PhillipsWoodenSteed() );
			PlaceItemIn( cont, 117, 132, new PolarBearMask() );
			PlaceItemIn( cont, 45, 66, new BowOfTheJukaKing() );
			PlaceItemIn( cont, 69, 82, new GlovesOfThePugilist() );
			PlaceItemIn( cont, 93, 99, new OrcishVisage() );
			PlaceItemIn( cont, 117, 115, new StaffOfPower() );
			PlaceItemIn( cont, 45, 132, new ShieldOfInvulnerability() );
			
			PlaceItemIn( cont, 69, 66, new HeartOfTheLion() );
			PlaceItemIn( cont, 93, 82, new ColdBlood() );
			PlaceItemIn( cont, 117, 99, new GhostShipAnchor() );
			PlaceItemIn( cont, 45, 115, new SeahorseStatuette() );
			PlaceItemIn( cont, 69, 132, new WrathOfTheDryad() );
			PlaceItemIn( cont, 93, 66, new PixieSwatter() );
			
			/*	TODO: Make MiBs that have 100% chance of a Ancient SoS
			for( int i = 0; i < 10; i++ )
                PlaceItemIn( cont, 117, 128, new MessageInABottle() );
			 */
			
			PlaceItemIn( bank, 18, 124, cont );
		}
one way or another i will be right! packer caught my last mistake so i fixed it and the only reason i put the test center section on here is cause packer stated this

PACKER898 He asked how to add things to the bank like when testcenter is enabled

so zachseitz sorry if i upset you by posting what packer had said!
 

sirbum69

Wanderer
Except Master that the code you are talking about falls under the FillBankBox()

and farther down in the code you will see that it says
FillBankBox() // if test center is enabled....

that is why they are saying that it wont work there...other wise if it did then everyone would have all the stuff that is added in that section to the bank boxes...

and i dont have any of that on my shard...as i dont have test center enabled...
 
so you are saying with your test center set at this

Code:
private const bool m_Enabled = false;

you dont have newplayertickets on the new chars that start shard? cause in default that is all that is added to the bankbox from the testcenter section! and seems to me that on everyshard with testcenter off you still get the new player tickets.

Im i wrong still???
 

Ajantis

Wanderer
even with the test center diabled he can still add things from the lines i posted if you dont beleave me get on my shard and look how i have it, if you add stuff in that line it will still add to the bank even with the test center diabled does not matter from what i see and if he want he can always go a few lines up to this if his aos is disabled as well!


Code:
private static void FillBankbox( Mobile m )
{
if ( Core.AOS )
{
FillBankAOS( m );
return;
}

BankBox bank = m.BankBox;

if ( bank != null )
{
bank.DropItem( new BankCheck( 5000 ) );

Dude, its already there lol....................yet when I had TestCenter deactivated........I dont remember seeing that check in any new players bank.

I dont know how simplier I can ask..........how do I add items to new player banks without TestCenter being active? Thanks.
 
ok well for the correct answer to what you are asking no one can give you unless you state if aos is enabled or disabled cause there is 2 diffrent places you can add stuff. if you look at the post above of mine you will see exactly where to add stuff with both aos on and off!!

all over this thread i have posted 3 diffent places you can add items to the bank box!

if you look at my above post you will have a great idea!!

and that is all i am adding to this thread sorry but i believe everyone including myself already thinks i gave you to much and to tell you the truth trail and error is the only way you will learn so try adding a few things and post any errors you get!
 

sirbum69

Wanderer
masternightmage said:
so you are saying with your test center set at this

Code:
private const bool m_Enabled = false;

you dont have newplayertickets on the new chars that start shard? cause in default that is all that is added to the bankbox from the testcenter section! and seems to me that on everyshard with testcenter off you still get the new player tickets.

Im i wrong still???

No i get the newplayer tickets....Because the code for newplayer tickets is not under the FillBankBox() code...

but either way, your last post was correct in that he just needs to place in some code somewhere, Jesus anywhere so that we know he is trying at least then we will fix what he has broken...LoL...

That is the whole key to it AJ...you say you want it to work the first time so you dont have to do it again....Well problem is ppl here wont do it for you...
They have told you exactly where to put the code that you yourself wrote and that it would work...Thats why i said try it, then if it dont come back...But believe me not very many ppl here will just layout a script for you to copy and paste right in....

Other wise it would not be your shard persay if thats all anyone did...it would be everyone else doing your scripts for you....

Like me im trying to figure out right now how to make the house deed only show up on one char lol...and its killing me...but im gonna break some more chit then i will post what i have done and where...then someone will tell me where im missing something....

So for yours to work....Look for this code
Code:
private static void EventSink_CharacterCreated( CharacterCreatedEventArgs args )
		{

and place in what it is you are trying to do...like place something in the bank box....
Just go find that code in CharectorCreations.cs and place in the code you have somewhere after it...if it breaks post here what you did and where...then we will be more then willing to show you what is wrong...Hence you learn for the next time....
 
lol i think this thread my be getting out of hand lol

anyway just look at the post that i place about the aos enabled and disabled and you should be able to figure it out if not post your errors!
 

Packer898

Knight
sirbum69 said:
Ahh packer you know what no i didnt add that at the top...
I didnt think i had too...Thought i could just add it in using the new BLAA bLLAA....thanks man off to try it now..

and for the other post add it where your char is created...
just before where there starting location is created


EDITED: Ahh worked out perfectly....Thanks packer...Now im going to break some more stuff and get mass of errors while i try to make it so only one char from the account gets it LOL....

Not sure that is even possible

Thats easy...

Code:
			bool ItemName = Convert.ToBoolean( acct.GetTag("ItemName") );
			
			if ( ItemName ) //account tag check to see if item has been received yet
			{
			}
			else//if it doesnt exist
			{
				//Do stuff here
				acct.SetTag( "ItemName", "true" );
			}

The rest you can figure out on your own...
 

sirbum69

Wanderer
Hmm would that look into there bankbox....
Thats actully preatty nifty little code...
HEHE im off to plug away and see if my computer spits on me
 

TMSTKSBK

Lord
sirbum69 said:
Hmm would that look into there bankbox....
Thats actully preatty nifty little code...
HEHE im off to plug away and see if my computer spits on me

Your computer spits? :confused:...
 

Packer898

Knight
Ajantis said:
LOL okay.........all I really want to know is where to put
Exactly in CharacterCreation.cs, without needing TestCenter enabled.
Thanks.

Well lets think about this logically. You were already told to use the method below.
Code:
		private static void EventSink_CharacterCreated( CharacterCreatedEventArgs args )
		{

Now in looking thru that method, I see very very similiar lines to what you are wanting to add that look like...
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;

So one would assume since what you are wanting to add is formatted exactly the same way as above it could probably go right underneath it like so...

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.AddItem( item );

Ajantis please from now on atleast attempt to do what we ask. We are not trying to be dicks here. The problem is that when we give out copy and paste code people do not attempt to even understand what they are doing and inevitably ask for the same stinking code over and over without ever learning anything. That is NOT what this forum is for. This forum is to help people learn to use C# and RunUO, not to give them code so they can make the shard the way they want without ever knowing what they are doing.

I know you will probably laugh and not do it but the best advise I can give you is to start reading basic tutorials. RunUO is written in C# so once you get the basics of C# down you will understand the basics to modifying properties, classes etc... If you truly want to run a good shard then you will have to regardless. Otherwise it will just be another run-of-the-mill noob shard. Goodluck on your future projects though.
 

sirbum69

Wanderer
TMSTKSBK said:
Your computer spits? :confused:...

LOL yes and it just spit a huge one on me when i tried to plug in that code lol....

Teaches me for trying to add things where they dont belong....
Tried telling me there was no such thing as acct.

Hrmph im gonna kick back soon....

i changed the "ItemName" to mydeed as that is what im calling it...yeh well no supper for me tonight...LOL
 

Packer898

Knight
sirbum69 said:
LOL yes and it just spit a huge one on me when i tried to plug in that code lol....

Teaches me for trying to add things where they dont belong....
Tried telling me there was no such thing as acct.

Hrmph im gonna kick back soon....

i changed the "ItemName" to mydeed as that is what im calling it...yeh well no supper for me tonight...LOL

Maybe you want to declare an account referance to the addbackpack method? Just guessing here... =)-
 

sirbum69

Wanderer
ROFL oh sure move me even farther off into space lol.....
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (2 errors, 2 warnings)
 - Warning: Scripts\Engines\watchuo\Core.cs: CS0168: (line 56, column 7) The var
iable 'ode' is declared but never used
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 695, column 39) The t
ype or namespace name 'acct' could not be found (are you missing a using directi
ve or an assembly reference?)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 705, column 5) The ty
pe or namespace name 'acct' could not be found (are you missing a using directiv
e or an assembly reference?)
 - Warning: Scripts\My_Custom_Scripts\MOTD\XmlMotd.cs: CS0183: (line 57, column
11) The given expression is always of the provided ('Server.Mobiles.PlayerMobile
') type
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
thats the error im getting when i do this
Code:
bool ItemName = Convert.ToBoolean( acct.GetTag("ItemName") );
			
			if ( ItemName ) //account tag check to see if item has been received yet
			{
			}
			else//if it doesnt exist
			{
				//Do stuff here
				SmallBrickHouseDeed mydeed = new SmallBrickHouseDeed();
				newChar.BankBox.DropItem( mydeed );
				acct.SetTag( "ItemName", "true" );
			}

Im thinking that it doesnt recognize acct.GetTag....so i thought maybe i need the namespace for accounting...But its there at the top...
now you say make a reference in the addbackpack lol and i really have no idea what or how to do that....Point me to where i can read on that and i will learn so i can...
 

Packer898

Knight
Im thinking that it doesnt recognize acct.GetTag
That is exactly write you need to tell it what acct is...

hrmm im thinking maybe here...
Code:
		private static void AddBackpack( [COLOR="Red"]Mobile m[/COLOR] )

Look at another file that adds a referance to Acct and try adding in the same thing. You are getting close... Also make sure to change ItemName to whatever you want the tag to be called. These are simple tags so once it compiles and the character is created it is permanently named whatever you choose. You will also see the in the admin gump under comments as well as in [props on players. Make sure it makes sense.
 
Top