Ejemplo n.º 1
0
def RubyBolts():

	#Buy
	rb = utilities.getPrice('Ruby bolts', df)
	obt = utilities.getPrice('Ruby bolt tips', df)

	#Sell
	ob = utilities.getPrice('Ruby bolts', df)

	#Profit
	profit, BUY, SELL = utilities.calculateProfit([rb,obt],[ob])
	print("Profit: {}\n".format(profit))
Ejemplo n.º 2
0
def Guthan():

	#Buy
	wep = utilities.getPrice('Guthan\'s warspear', df)
	body = utilities.getPrice('Guthan\'s platebody', df)
	leg = utilities.getPrice('Guthan\'s chainskirt', df)
	helm = utilities.getPrice('Guthan\'s helm', df)

	#Sell
	fullset = utilities.getPrice('Guthan\'s armour set', df)

	#Profit
	profit, BUY, SELL = utilities.calculateProfit([wep,body,leg,helm],[fullset])
	print("Profit: {}\n".format(profit))
Ejemplo n.º 3
0
def Ahrim():

	#Buy
	wep = utilities.getPrice('Ahrim\'s staff', df)
	body = utilities.getPrice('Ahrim\'s robetop', df)
	leg = utilities.getPrice('Ahrim\'s robeskirt', df)
	helm = utilities.getPrice('Ahrim\'s hood', df)

	#Sell
	fullset = utilities.getPrice('Ahrim\'s armour set', df)

	#Profit
	profit, BUY, SELL = utilities.calculateProfit([wep,body,leg,helm],[fullset])
	print("Profit: {}\n".format(profit))
Ejemplo n.º 4
0
def Karil():

	#Buy
	wep = utilities.getPrice('Karil\'s crossbow', df)
	body = utilities.getPrice('Karil\'s leathertop', df)
	leg = utilities.getPrice('Karil\'s leatherskirt', df)
	helm = utilities.getPrice('Karil\'s coif', df)

	#Sell
	fullset = utilities.getPrice('Karil\'s armour set', df)

	#Profit
	profit, BUY, SELL = utilities.calculateProfit([wep,body,leg,helm],[fullset])
	print("Profit: {}\n".format(profit))
Ejemplo n.º 5
0
def Dharok():

	#Buy
	wep = utilities.getPrice('Dharok\'s greataxe', df)
	body = utilities.getPrice('Dharok\'s platebody', df)
	leg = utilities.getPrice('Dharok\'s platelegs', df)
	helm = utilities.getPrice('Dharok\'s helm', df)

	#Sell
	fullset = utilities.getPrice('Dharok\'s armour set', df)

	#Profit
	profit, BUY, SELL = utilities.calculateProfit([wep,body,leg,helm],[fullset])
	print("Profit: {}\n".format(profit))
Ejemplo n.º 6
0
def Verac():

	#Buy
	wep = utilities.getPrice('Verac\'s flail', df)
	body = utilities.getPrice('Verac\'s brassard', df)
	leg = utilities.getPrice('Verac\'s plateskirt', df)
	helm = utilities.getPrice('Verac\'s helm', df)

	#Sell
	fullset = utilities.getPrice('Verac\'s armour set', df)

	#Profit
	profit, BUY, SELL = utilities.calculateProfit([wep,body,leg,helm],[fullset])
	print("Profit: {}\n".format(profit))
Ejemplo n.º 7
0
def calculateProfit(potion):

    profit = 0
    BUY, SELL = [], []

    _potionIN = utilities.getPrice(potion, df)
    _potionOUT3 = utilities.getPrice(potion, df)
    _potionOUT4 = utilities.getPrice(re.sub('3', '4', potion), df)

    BUY.append(_potionIN)

    p_potionIN = _potionIN.buy_average.item()

    #Want to scale output and find maximum
    p_potionOUT3 = _potionOUT3.sell_average.item()
    p_potionOUT4 = _potionOUT4.sell_average.item() * 0.75

    #print(p_potionIN, p_potionOUT3 , p_potionOUT4)

    if p_potionOUT3 > p_potionOUT4:
        #If 3 dose sells more than 4 dose, return 3 dose
        profit = p_potionOUT3 - p_potionIN
        SELL.append(_potionOUT3)
    else:
        profit = p_potionOUT4 - p_potionIN
        SELL.append(_potionOUT4)

    for data in BUY:
        print("BUY  - {} : {}".format(data.name.item(),
                                      data.buy_average.item()))

    for data in SELL:
        print("SELL - {} : {}".format(data.name.item(),
                                      data.sell_average.item()))

    print('PROFIT: {}'.format(profit))

    return profit, BUY, SELL