Milva

Moderator
I have updated the system for the Tile error and also added a name in the yarddecorator as when added in game- it has interior decorator .You can place all the items for your yard.
This will use gold in your backpack but
With the new banking system I"m not sure how to fix BankBox in this line
else if (m_From.BankBox.ConsumeTotal(typeof(Gold), m_Price))
States you don't have gold
I know BankBox needs to be changed to Banker but I have tried many different ways and still get an error :)

else if Banker.Withdraw(player, 100000)
bank.ConsumeTotal(typeofgold)
-----------------------------------
Banker.Withdraw(from, amount)
------------------------------------------------
Banker.Withdraw.(player, 100000)bank. ConsumeTotal(typeof(Gold), m_Price))
------------------------------------------------
Errors:
+ CustomFolder/ACCYardSystem/ACC Yard System/Core/YardTarget.cs:
CS1001: Line 100: Identifier expected
CS1002: Line 100: ; expected
CS1002: Line 100: ; expected
CS1525: Line 100: Invalid expression term ')'
CS1002: Line 100: ; expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Attachments

  • YardTarget.cs
    8.5 KB · Views: 6
Last edited:
Thanks Quasar

Lokai I have this error- which I had also before for from

CustomFolder/ACCYardSystem/ACC Yard System/Core/YardTarget.cs:
CS0103: Line 100: The name 'from' does not exist in the current context
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Thanks so much for the help :)
----------------------------------------------------------------------------------------------------------------------
Fixed Dexter gave me this code to test and it works perfect so I will release this
else if (Banker.Withdraw(m_From, m_Price, true))
 
Last edited:
Back