[ModAPI] MyBankingSystem is prohibited
Reported
I was trying to make power trading system mod, and I stucked on this:
Error: The type or member 'long MyBankingSystem.GetBalance(long identifierId)' is prohibited Error: The type or member 'MyBankingSystem' is prohibited Error: The type or member 'bool MyBankingSystem.ChangeBalance(long identifierId, long amount)' is prohibitedBy the way could you tell me how ChangeBalance method actually work? I should pass desired value of credits AFTER operation, or just amout to change by? like
ChangeBalance(block.OwnerId,-100)or
ChangeBalance(block.OwnerId,GetBalance(block.OwnerId)-100)
?
And what the purpose of ChangeBalanceBroadcastToClients?
After whitelisting MyBankingSystem please remove log lines
2020-10-09 18:02:12.472 - Thread: 1 -> Transfer of 1 from 999 with new balance of 10000 to 999 with new balance of 10000
or make method with NeedLogging parameter or suppress it somehow else because it will flood log in automatic mode (each tick change money amount so I got few lines each tick)
Also please whitelist these:
Error: The type or member 'MyFaction' is prohibited
Error: The type or member 'MySession' is prohibited
Error: The type or member 'MySession MySession.Static' is prohibited
Error: The type or member 'MyFactionCollection MySession.Factions' is prohibited
Error: The type or member 'MyFaction MyFactionCollection.GetPlayerFaction(long playerId)' is prohibited
Error: The type or member 'long MyFaction.FactionId' is prohibited
Error: The type or member 'MyFaction' is prohibited
Error: The type or member 'MyContractHunt' is prohibited
MyContract* too
Also please whitelist these:
Error: The type or member 'MyFaction' is prohibited
Error: The type or member 'MySession' is prohibited
Error: The type or member 'MySession MySession.Static' is prohibited
Error: The type or member 'MyFactionCollection MySession.Factions' is prohibited
Error: The type or member 'MyFaction MyFactionCollection.GetPlayerFaction(long playerId)' is prohibited
Error: The type or member 'long MyFaction.FactionId' is prohibited
Error: The type or member 'MyFaction' is prohibited
Error: The type or member 'MyContractHunt' is prohibited
MyContract* too
And please make it possible to transfer money when player offline (offline trading? What is it?)
Or may be there is appropriate way to transfer money to offline accounts (not factions)?
Make a temp cache to track if player is online is not good idea I guess.
And please make it possible to transfer money when player offline (offline trading? What is it?)
Or may be there is appropriate way to transfer money to offline accounts (not factions)?
Make a temp cache to track if player is online is not good idea I guess.
Hello, LordXaosa!
Thank you for letting us know about this issue. This has been reported internally
Kind Regards
Laura, QA Department
Hello, LordXaosa!
Thank you for letting us know about this issue. This has been reported internally
Kind Regards
Laura, QA Department
Replies have been locked on this page!