Custom ItemGrade System

07/20/2015 03:46 Avalion#1
it was bad anyway. kys #closed
07/20/2015 09:29 Spraystar#2
Was bringt das System ?
07/20/2015 18:27 KetchupSamurai#3
Quote:
Originally Posted by Spraystar View Post
Was bringt das System ?
It's based on Diablo 3's random drop item generator. Gear drops, it has a random bonus, if its a better tier drop the bonuses are better. However everything is lotto randy "RNG" on drop.
07/20/2015 21:48 Snow.D#4
Why use std rand function since Flyff has it own function ? Also, #include <random> is useless here. However it's still an excellent release with great programming skills
07/20/2015 22:07 zcoolmax#5
how to fix it

Cannot open include file: 'random': No such file or directory
07/21/2015 06:11 zcoolmax#6
Quote:
Originally Posted by Avalion View Post
I wanted to use the stl. I am not too sure if I actually tested using xRandom or not but for those using compilers that are not C++11 can try using xRandom as a replacement.



^
It work for me.
thankyou
07/21/2015 13:07 julioclitwin#7
@Avalion
Thanks about release. Can show a print/video? If as I am thinking, I will use your code as a basis to implement in another game.

About stl, I prefer use STLPort:
[Only registered and activated users can see links. Click Here To Register...]
07/21/2015 18:24 ディオニュソス#8
Quote:
Originally Posted by Avalion View Post
I wanted to use the stl. I am not too sure if I actually tested using xRandom or not but for those using compilers that are not C++11 can try using xRandom as a replacement.
rand() is neither STL nor C++11, it's from the old & good C times...

And you presumably don't mean STL but the C++ standard library, there is a major difference between the two of them.

The code looks like what I'd expect from a casual flyff programmer, no const correctness and a singleton definition. I don't like the way you return a pointer to data of a vector, the whole address space of the content of a vector can change by adding new items to it, other than that it's even more efficient storing pointers in it, but the C++ and pointers thing is a whole new story anyway, since no real C++ programmer would recommend using pointers and manual memory management at all, they would do some reference sorcery, like checking first of all whether the item exists and afterwards they'd get a const reference to it.

From the flyff point of view though the code looks ok, one can really see it's much influenced by the shit created by the original authors. From time to time you differ from the actual naming convention, though, like prefixing a non-pointer object with p, which really is confusing for others working with the code.
07/26/2015 00:45 raventh1984#9
Thank you for this nice release. I have 1 question though

If you look at the picture you see the stats.

However some of the stats are just the number and not the DST param.

So how is it defined?

If you can give some pointer then i can figure out the rest.

[Only registered and activated users can see links. Click Here To Register...]
07/26/2015 00:49 KetchupSamurai#10
Quote:
Originally Posted by raventh1984 View Post
Thank you for this nice release. I have 1 question though

If you look at the picture you see the stats.

However some of the stats are just the number and not the DST param.

So how is it defined?

If you can give some pointer then i can figure out the rest.

[Only registered and activated users can see links. Click Here To Register...]
Be sure to have V19 defineAttribute, also fix the text in the source for those directly. Avalion built this on V19.
07/26/2015 01:23 raventh1984#11
Thnx i know now what i need to do.

hmm i removed the v19 params from here.
Code:
void ItemGrade::SpawnPercent(BYTE nRank, short* nDst, short* nAdj)
std::vector<BYTE> m_vParamList = { 8, 14, 24, 72, 66, 52, 53, 76, 9, 77,
		57, 75, 41, 42, 11, 29 };
So it only loads the correct params. But still i see +0%
So that means the correct Param and Value are not correct. Any tips?

With kind regards.
08/13/2015 00:09 luucass310#12
i think it's in ItemGrade.cpp, but for me don't work :(
06/09/2016 18:24 Dark®©#13
hi How to fix this,where I declare pWeapon?

07/01/2016 17:27 .HeyEyay.#14
How to fix This Error

Code:
fatal error C1083: Cannot open include file 'xRandom': No such file or directory
07/05/2016 08:53 .HeyEyay.#15
How do I Changed the Effects and Drop Chance?

[Only registered and activated users can see links. Click Here To Register...]

EDIT: When I Log Out and then try to login again The Weapon will be back to normal


(Scrub Smiter Sword ~~> Smiter Sword)