I have a NPC who sells items to players as a 'Gold Sink'.
I have no problem when he sells items for gold coins but keep getting errors when I try to have him sell for Bank Checks.
I would like to solve this so players do not need piles of Gold coins in their bank for transactions.
Here are the errors I am getting on the Bank Check portion of the script:
and . . . here is the offending code snip (with the offending line Commented):
If any one knows a work around or can spot the problem . . the help would be greatly appreciated.
Thanks
I have no problem when he sells items for gold coins but keep getting errors when I try to have him sell for Bank Checks.
I would like to solve this so players do not need piles of Gold coins in their bank for transactions.
Here are the errors I am getting on the Bank Check portion of the script:
Code:
Errors:
+ Customs/ Special/Gumps/ExchangeGump.cs:
CS1026: Line 948: ) expected
CS1513: Line 948: } expected
CS1002: Line 948: ; expected
CS1525: Line 949: Invalid expression term ','
CS1002: Line 949: ; expected
CS1002: Line 953: ; expected
CS1525: Line 953: Invalid expression term ')'
CS1514: Line 969: { expected
and . . . here is the offending code snip (with the offending line Commented):
Code:
if (info.ButtonID == 1)
{
if ( bank == null )
return;
int res = bank.ConsumeTotal(
new Type[]
{
//** Line #948 Follows **
typeof( BankCheck(2000000) )
},
new int[]
{
1
} );
switch ( res )
{
case 0:
{
from.SendMessage( 0x22, "You a 2,000,000 Bank Check in your Bank for that." );
break;
}
case 3:
{
break;
}
default:
from.SendMessage( 0x22, "Thank you. Your purchase is in your pack." );
from.AddToBackpack(new QuiverOfInfinity());
break;
}
}
If any one knows a work around or can spot the problem . . the help would be greatly appreciated.
Thanks