Register for your free account! | Forgot your password?

You last visited: Today at 03:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Custom ItemGrade System

Discussion on Custom ItemGrade System within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
Custom ItemGrade System

it was bad anyway. kys #closed
Avalion is offline  
Thanks
6 Users
Old 07/20/2015, 09:29   #2
 
elite*gold: 2
Join Date: Mar 2009
Posts: 338
Received Thanks: 63
Was bringt das System ?
Spraystar is offline  
Old 07/20/2015, 18:27   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 181
Received Thanks: 199
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.
KetchupSamurai is offline  
Thanks
1 User
Old 07/20/2015, 21:48   #4
 
elite*gold: 0
Join Date: Apr 2015
Posts: 7
Received Thanks: 1
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
Snow.D is offline  
Old 07/20/2015, 22:07   #5
 
elite*gold: 0
Join Date: Jul 2008
Posts: 18
Received Thanks: 0
how to fix it

Cannot open include file: 'random': No such file or directory
zcoolmax is offline  
Old 07/21/2015, 06:11   #6
 
elite*gold: 0
Join Date: Jul 2008
Posts: 18
Received Thanks: 0
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
zcoolmax is offline  
Old 07/21/2015, 13:07   #7
 
elite*gold: 0
Join Date: Aug 2009
Posts: 228
Received Thanks: 26
@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:
julioclitwin is offline  
Old 07/21/2015, 18:24   #8
 
elite*gold: 50
Join Date: Jun 2015
Posts: 100
Received Thanks: 210
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 **** 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.
ディオニュソス is offline  
Old 07/26/2015, 00:45   #9
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
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.

raventh1984 is offline  
Old 07/26/2015, 00:49   #10
 
elite*gold: 0
Join Date: Jul 2015
Posts: 181
Received Thanks: 199
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.

Be sure to have V19 defineAttribute, also fix the text in the source for those directly. Avalion built this on V19.
KetchupSamurai is offline  
Thanks
2 Users
Old 07/26/2015, 01:23   #11
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
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.
raventh1984 is offline  
Old 08/13/2015, 00:09   #12
 
elite*gold: 0
Join Date: Feb 2014
Posts: 7
Received Thanks: 0
i think it's in ItemGrade.cpp, but for me don't work
luucass310 is offline  
Old 06/09/2016, 18:24   #13
 
Dark®©'s Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 80
Received Thanks: 4
hi How to fix this,where I declare pWeapon?

Dark®© is offline  
Old 07/01/2016, 17:27   #14
 
elite*gold: 0
Join Date: Jul 2015
Posts: 167
Received Thanks: 41
How to fix This Error

Code:
fatal error C1083: Cannot open include file 'xRandom': No such file or directory
.HeyEyay. is offline  
Old 07/05/2016, 08:53   #15
 
elite*gold: 0
Join Date: Jul 2015
Posts: 167
Received Thanks: 41
How do I Changed the Effects and Drop Chance?



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


(Scrub Smiter Sword ~~> Smiter Sword)
.HeyEyay. is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
LiquidZ | AntiCheat | Custom GUI | Custom Items | Skills System
08/15/2013 - Infestation - 30 Replies
UPDATE We are online again!!!! WOOOT! Welcome Back guys! http://i.epvpimg.com/7EJlb.png
GAME INC. 120CAP! (PVE/PVP) NEW Coin System & FGW,Custom Quest,Custom Items
03/26/2013 - SRO PServer Advertising - 54 Replies
#closed



All times are GMT +1. The time now is 03:34.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.