- price = (int) (basePrice *
- (40+thisitem.refine) *
- (200+ thisitem.durability) *
- (150) *
- (1 + skillValue * 0.01f) / 1000000.f *
- ( (4000+thisitem.lifespan) / 14000.f ) +
- (thisitem.appraised * gemValue * 0.2f)
- );
I tried on multiple lines (like in the code of PurpleYouko) --> No success.
I tried to make it in a single line (same has the client code) --> No sucess.
The price is still not correct... I have to put the 102 on 150 to get something pretty close. But then when I test with a total other item, bam it is all broken again... I must miss something.
skillValue = thisclient->cskills[i].thisskill->value2[0]
gemValue = (EquipList[7].Index[thisitem.gem]->price
basePrice = EquipList[thisitem.itemtype].Index[thisitem.itemnum]->price