Had a lot of kinks prior to this one but I feel like I'm getting close to a successful compile. I was talking to a friend of mine about it and he said the "item" definition has already been used in a higher function. Idk how to go about fixing it tho.

Here's a image of the error along with my basevendor.cs file. Any help would be much appreciated. :)
 

Attachments

  • gold ledgar error.png
    gold ledgar error.png
    16.9 KB · Views: 13
  • BaseVendor.cs
    36.6 KB · Views: 5
looks like line 1016 is the issue
change Item item to like

Item findledger
line 1017, item as GoldLedger youd change to the same new thing, like

findledger as GoldLedger

the issue is line 1085 is original code thats trying to assign "Item item" to something but "item" has already been used.
 
normally id do "Item ledger" for 1016,
but since 1017 then assigns GoldLedger ledger, that would just throw another hey ledger is already being used on 1016.

since 1016 is literally doing FindByType, Item findledger makes the most sense and easier to follow than the leading uses of item2 and item3
 
I tried implementing what u said but for some reason got another error on line 922? I have no idea how to fix this broken script :/
 

Attachments

  • error.png
    error.png
    48 KB · Views: 14
  • BaseVendor.cs
    36.6 KB · Views: 3

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back