Imnput [Sell] Imput should be Input
If
HasInventory [Player] [retro] [>=] [Sell] There needs to be a comparative sign between [retro] and [Sell]
Then
Inventory [Player] [take] [retro] [Sell]
Inventory [Player] [add] [goldpieces] [10000]
Else
Notify [You need more retro!]
EndIf
This script also does not take into consideration how many items are being sold, meaning that not how many the player inputs, they will always receive 10000 GoldPieces. Use this edit to have it not do as such.
Input [Sell]
Var [Recieve] = [10000] [*] [Sell]
If
HasInventory [Player] [retro] [>=] [Sell]
Then
Inventory [Player] [take] [retro] [Sell]
Inventory [Player] [add] [goldpieces] [10000][Recieve]
Else
Notify [You need more retro!]
EndIf