well this work?
Code:
local n = 0
local function Go()
turtle.foward()
n = n + 1
end
local function Back()
turtle.back()
n = n - 1
end
local function Retern()
local r = n
turtle.turnLeft()
turtle.turnLeft()
for i = 1,n do
turtle.foward()
end
end
local function Retern_B()
turtle.turnLeft()
turtle.turnLeft()
for i = 1,r do
Go()
end
end
for i = 1,10 do
Go()
end
for i = 1,2 do
Back()
end
Retern()
Retern_B()
Putting your code between code tags will make it easier to read as it should keep the spaces. Another thing I need to ask is what your code has to do with the question as I don't see even the slightest need for a turtle depending on what peripherals he has access too (even if there are none he probably doesn't need a turtle anyway)
As for what the op wants, it will indeed be a lot of work. You would first need to implement a way that randomly creates unique strings so the different floppy drives can be identified. These strings need to be large and "random" enough that players won't be able to fake others. Then there is also the problem that unless something got changed even the cables of CC are NOT secure AT ALL! Thus you will need to implement a way to handle the data between the central server and all the shops securely.
You will also need to think of a way to store all the data as computers can only store a limited amount of stuff (you can increase this in the config file I believe). This probably means you want to store all the actual data on a real database but unless I am forgetting something CC can't talk directly to a database thus you need to setup a http server that can communicate with both of them.
After you have made all this you will soon realize that certain parts of town probably won't work, this is because even the cables have a limit on how many blocks a message can be transfered. To solve this you will need to setup computers that can receive messages and send them further again. There might (and probably is already) code for this.
As you can see your request has become pretty big, this is the problem with it. There are probably many people that like this kind of stuff, myself included but I won't have the time for it and I suspect that most people that can do and like this kind of projects have the same problem. I would suggest to look for more help at the computercraft forum, or try to reuse the code that was made on the tekkit server. (Assuming you still have access to that)