Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stuff for Shops
#6
Code:
If Item(player(myindex).inv(item).num).Dur < item(itemnum).dur then
    percent = item(itemnum).dur / item(player(myindex).inv(item).num).dur
    diff = 100 - percent
    Cost to shop = item(itemnum).cost - diff
else
    cost to shop = item(itemnum).cost
end if
her is a sample idea (not gonna work as is jsut an idea)
i am sure you can extrapolate teh rest of yoru work form this if not
let me know I should be able to help you when I have time
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)