Ajantis said:I have AOS enabled.............where do I add it? Thanks.
if ( young && newChar.BankBox != null )
{
BankCheck check = new BankCheck( 10000 );
newChar.BankBox.DropItem( check );
//SmallBrickHouseDeed mydeed = new SmallBrickHouseDeed();
//newChar.BankBox.DropItem( mydeed );
}
SmallBrickHouseDeed mydeed = new SmallBrickHouseDeed();
Mobile m = args.Mobile;
Account acct=(Account)m.Account;
bool ItemName = Convert.ToBoolean( acct.GetTag(mydeed) );
if ( mydeed ) //account tag check to see if item has been received yet
{
}
else//if it doesnt exist
{
//Do stuff here
newChar.BankBox.DropItem( mydeed );
acct.SetTag( mydeed, true );
}
sirbum69 said:this is what i have for the total script.....Oh and im adding this to the bankbox not the backpack....
TMSTKSBK said:you.
are evil. >_<
Packer898 said:Well I dont know for a fact you can simply add the Account acct to the other methods. I know for a fact you CAN add it to the AddBackpack one... You will need to check the docs and see if it is possible to add it there. But for the record why not add it where i showed you? We know it will work there and if your doing it on character creation then it doesnt really matter...
private static void AddBackpack( Mobile m, [COLOR="Red"]Account acct[/COLOR] )
private static void EventSink_CharacterCreated( CharacterCreatedEventArgs args )
{
misc...
SetName( newChar, args.Name );
[COLOR="Red"]AddBackpack( newChar, (Account)newChar.Account );[/COLOR]
SetStats( newChar, args.Str, args.Dex, args.Int );
SetSkills( newChar, args.Skills, args.Profession );
Ajantis said:Is this stuff somehow related to what I asked before about adding to the Bankbox?
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
- Error: Scripts\Misc\CharacterCreation.cs: CS1519: (line 613, column 46) Inval
id token '(' in class, struct, or interface member declaration
- Error: Scripts\Misc\CharacterCreation.cs: CS1519: (line 613, column 53) Inval
id token ')' in class, struct, or interface member declaration
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.