This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
mrcrocodile123's profile picture

can someone make me a program? i am really bad

Started by mrcrocodile123, 26 January 2013 - 07:14 AM
mrcrocodile123 #1
Posted 26 January 2013 - 08:14 AM
basically, i run a little organisation on a tekkit server in which people give me ores and i pay them, they do this when i am offline however a piece of paper doesnt seem to be the best way of recording who gave what.

whant i am asking is, can someone make a program that remembers for example how much iron ore has been handed in in total ?

basically an on going counting system

haha i have tried many times

edvise is also really appreciated
thanks!
Mailmanq! #2
Posted 26 January 2013 - 01:11 PM
It is simple, but what exactly do you need? What do the trade to you? just tell me and I can do it.
Edited on 26 January 2013 - 12:12 PM
mrcrocodile123 #3
Posted 27 January 2013 - 02:37 AM
i need something where i enter say "24 copper" and it ads 24 to the total amount of copper. haha
Mailmanq! #4
Posted 27 January 2013 - 05:13 AM
i need something where i enter say "24 copper" and it ads 24 to the total amount of copper. haha

You said you are buying ores, surely you want to keep track of who put it in. I could do it like this : they put the items in a chest, and then they enter their name, it takes the items from the chest and says you owe them x amount.
1lann #5
Posted 27 January 2013 - 02:45 PM
i need something where i enter say "24 copper" and it ads 24 to the total amount of copper. haha
Alright I did that, you can find it on pastebin here: http://pastebin.com/ghWzuBjV
I tried to find and fix as many bugs I could think of/find.
Tips:
You can actually do math calculations with the number of objects, ex: If I have 3 stacks of copper I would do 3*64 copper.
You can also remove objects by using negative numbers
Entering a non integer will round the number
Entering a number followed by an object that doesn't exist in the database will create it
mrcrocodile123 #6
Posted 29 January 2013 - 07:37 AM
thank you so much i really appreciate it
mrcrocodile123 #7
Posted 29 January 2013 - 07:39 AM
that is one huge program

is it possible to have more than one account? like one for each worker
mrcrocodile123 #8
Posted 29 January 2013 - 07:41 AM
i need something where i enter say "24 copper" and it ads 24 to the total amount of copper. haha
Alright I did that, you can find it on pastebin here: http://pastebin.com/ghWzuBjV
I tried to find and fix as many bugs I could think of/find.
Tips:
You can actually do math calculations with the number of objects, ex: If I have 3 stacks of copper I would do 3*64 copper.
You can also remove objects by using negative numbers
Entering a non integer will round the number
Entering a number followed by an object that doesn't exist in the database will create it

does this have a memory then? so if say the computer shut down it will still remember
mrcrocodile123 #9
Posted 29 January 2013 - 08:03 AM
sorry to drag on but is there a fast way to transfer this onto a multiplayer server? lol
NeverCast #10
Posted 29 January 2013 - 10:20 AM
run

pastebin get ghWzuBjV transfer

On the computer, then type

transfer
mrcrocodile123 #11
Posted 29 January 2013 - 10:28 AM
omg haha i just spent around an hour and a half trying to type it.. and got it wrong
thank you so much
:D/>
now nobody will be claiming too many rewards :P/>
mrcrocodile123 #12
Posted 29 January 2013 - 10:34 AM
thannks
mrcrocodile123 #13
Posted 29 January 2013 - 10:36 AM
run

pastebin get ghWzuBjV transfer

On the computer, then type

transfer
it didnt work lol "no such program"
LBPHacker #14
Posted 29 January 2013 - 10:44 AM
then http API is disabled - that's not gonna work unless you can convince the owner to enable it
mrcrocodile123 #15
Posted 29 January 2013 - 10:45 AM
dang
Cranium #16
Posted 29 January 2013 - 11:27 AM
There are some utilities available in the apis/utilities section that you can use to copy. I think the best one there is here: http://www.computercraft.info/forums2/index.php?/topic/4864-cc-copy-your-solution-to-servers-without-http-api/
1lann #17
Posted 29 January 2013 - 02:25 PM
And yes, it does save the items data onto the computer into a file called oreData, so if you reboot your computer the items will still be there
mrcrocodile123 #18
Posted 29 January 2013 - 08:14 PM
thank you 1lann it is a really good programme :D/>