[ create a new paste ] login | about

Link: http://codepad.org/09q1J7oY    [ raw code | output | fork ]

Lua, pasted on Jan 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- I make this to literally show people that this was an exploit.
-- prices are in copper
rare_armor = 1780
cost_salvage = 60
sell_ecto = 2400
gold = 0
flakes = 0
ectos = 0

salvages = 1000  -- amount of salvages you wanna do
math.randomseed(os.time())
for x = 1, salvages do
gold = gold - cost_salvage -- costs money to buy kits
gold = gold - rare_armor
if math.random(1,10) ~= 1 then ectos = ectos + 1 end -- you have a 90% chance to get an ecto (as in the large scale master kits will yield .9 ectos per rare)
end
print (ectos .. " ectos salvaged.")
gold = gold + (ectos * sell_ecto) -- sell your ectos for 12s each
print (gold / 10000 .. "g profit.")


Output:
1
2
893 ectos salvaged.
30.32g profit.


Create a new paste based on this one


Comments: