Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 13:47

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

Advertisement



Extra % Gold Drop with Parameter

Discussion on Extra % Gold Drop with Parameter within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Extra % Gold Drop with Parameter

Hi elitepvpers,

I am currently testing some new things and one of them is to have an
DST_GOLD i know its already in the source. But its for something else. At least i think it is.

So what i did was creating my own DST named DST_GOLD1

So i have taken an look into mover.cpp where the nNumGold is located

nNumGold = (int)( nNumGold * prj.m_EventLua.GetGoldDropFactor());

So what i did next was something like this

Code:
//nNumGold	= (int)( nNumGold * prj.m_EventLua.GetGoldDropFactor());
							float fFactor = prj.m_EventLua.GetGoldDropFactor();
							int nDstGold = GetParam( DST_GOLD1, 0 );
							if( nDstGold < 0 )
								fFactor *= ( 1.0f + ( nDstGold / 100.0f ) );
							nNumGold = ( int ) (nNumGold * fFactor);
Original code goes to Wurst

However it aint working.
If i change this

int nDstGold = GetParam( DST_GOLD1, 0 );

to

int nDstGold = 1000;

Then its working like it should be.
So as far as i can see its not picking up the DST_GOLD1 value
Its defined and its located in Spec_Item.txt.

Any help would be appriciated.
raventh1984 is offline  
Old 11/06/2014, 16:18   #2
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
You mean this?
.SnoX is offline  
Old 11/06/2014, 18:40   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
I have taken an look into it. But is it player related? or is it overall?

I want it to be something like this

Ex. Player 1 has 20% increase gold drop.
Player 2 has 45% increase in gold drop.

So for both players the Gold drop is different.

Edit:

Tested the code that Snox has provided.
Didnt worked.
Now i am thinking its because of my Spec_Item
Ex Guardian Sword
Code:
DST_ATTACKSPEED	DST_CHR_CHANCECRITICAL	DST_CRITICAL_BONUS	DST_REFLECT_DAMAGE	DST_ADJ_HITRATE	DST_GOLD1	240	6	10	3	10	100
I changed this code in mover.cpp
Code:
if( pAttacker->GetAdjParam( DST_GOLD1) > 0 )
            {
                npenyafaktor *= pAttacker->GetAdjParam( DST_GOLD1);
            }
To

Code:
if( pAttacker->GetAdjParam( DST_ATTACKSPEED ) > 0 )
            {
                npenyafaktor *= pAttacker->GetAdjParam( DST_ATTACKSPEED );
            }
And now its working.
So i need to check if my problem is not somewhere else.
raventh1984 is offline  
Reply


Similar Threads Similar Threads
Elo Boosting - Extra Safe MoneyBack Guarantee. 100% + An Extra 10% Paid Back To You
06/28/2013 - League of Legends Trading - 0 Replies
Blank Thread - Thread Design Test
[Selling] EUNE ACC SILVER 3 *extra extra cheap
05/26/2013 - League of Legends Trading - 0 Replies
Hello guys. I want to sell 1 EuNe Account that is silver 3 and runes u can see i will give you lolking link of account. I will go first for trusted members or good standing TBM members. If you aren't trusted we will make a deal how will we trade I am looking for 5e rp code, or 5e psc, even RP gift of 5e at eune. If you offer something else we can make a deal. Add me on SKYPE : VLASKEX or just pm me here, or comment Heres the ACC LOLKING ednaa - Europe Nordic & East - Summoners - League of...
RappelzSro[Exp/350 SP/350 PT Exp/400 Gold Drop/100% Sox Item Drop/50% /100K Silk]
05/24/2012 - SRO PServer Advertising - 12 Replies
# Just Fixing Everything
[Action 50% Off]S>DBS/Extra Items/Extra Characters on Crystal
12/07/2011 - Conquer Online 2 Trading - 14 Replies
Selling amazing characters and Items on Crystal, also selling a lot of dbs there. S> Super +5 2sct(2xRGG) Tower S> Super +4 1sct(SRG) Veil S> Super +5 1sct(SDG) P3(Pernamented) Ring Action 2 : Buy 40 dbs and get 130-130-128 pure ninja + Super 1sct fan + Super riding crop! SOLD Contact me via Private Message



All times are GMT +2. The time now is 13:47.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.