Error with Script, Any Ideas?
Hiya, im having a slight error with the script, any ideas on what i'm doing wrong?
Error i am recieving:
RunUO - [
www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 1 warnings)
Errors:
+ Misc/CharacterCreation.cs:
CS0200: Line 736: Property or indexer 'Server.Mobile.BankBox' cannot be assi
gned to -- it is read only
CS0029: Line 736: Cannot implicitly convert type 'Server.Items.BankBox' to '
bool'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
section in Charactercreation.cs file below:
if ( young && newChar.BankBox != null )
{
NewPlayerTicket ticket = new NewPlayerTicket();
ticket.Owner = newChar;
newChar.BankBox.DropItem( ticket );
}
// Start Xanth Auction System
if (newChar.BankBox = null)
newChar.BankBox.DropItem(new Arya.Savings.SavingsAccount());
// End Xanth Auction System
Thank you in advance for looking at this for me.!!