Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 15:30

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

Advertisement



Fashion Combination Success rate

Discussion on Fashion Combination Success rate within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Fashion Combination Success rate

Hi elitepvpers,

I am currently working an the Fashion Combination system and i want the success rate to be low. How ever if i change the

nFashionCombineChance = 10000 //100%
to
nFashionCombineChange = 100 //1%

It doesnt work every combination i do is an success.
Is there something inside the source that i have to change?

Cause i have also seen this

PHP Code:
if( xRandom10000 ) < 10000 )
        {        
            
int nResult 0;
            
nResult g_xRandomOptionProperty->MergeRandomOptionpItemElem[0], pItemElem[1] );
            
nResult += g_xRandomOptionProperty->MergeRandomOptionpItemElem[2], pItemElem[3] );
            
nResult += g_xRandomOptionProperty->MergeRandomOptionpItemElem[4], pItemElem[5] );
            
nResult += g_xRandomOptionProperty->MergeRandomOptionpItemElem[6], pItemElem[7] );
            if( 
nResult )
            {
                
Error"packet editor detected. tried to combine more then 3 awakening on one item. User: %s"pUser->GetName() );
            }
            for( 
int i 18+= )
            {
                
pUser->UpdateItem( (BYTE)pItemElem[i]->m_dwObjIdUI_NUM);
            }
            for( 
int i 08+= )
            {
                
pUser->UpdateItemEx( (BYTE)( pItemElem[i]->m_dwObjId ), UI_RANDOMOPTITEMIDpItemElem[i]->GetRandomOptItemId() );
            }

            
pUser->AddDefinedTextTID_COSTUME_COSTUMEMIXCOMPLETE );
        }
                else
                {
                   
//FAIL CODE
                

It looks to me that it will always succeed cause its an 100% and if its lower then 10000 it still succeeds in this am i correct and do i need to change the xRandom?

With kind regards
raventh1984 is offline  
Old 09/04/2013, 12:32   #2
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
xRandom returns a random number between 1 (or mby 0) and the given number.

In your case it is 10000.

1% of 10000 is 10.

if(xRandom(10000)<10)
...
Mognakor is offline  
Thanks
1 User
Old 09/04/2013, 21:42   #3
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,760
Received Thanks: 501
Quote:
Originally Posted by Mognakor View Post
xRandom returns a random number between 1 (or mby 0) and the given number.

In your case it is 10000.

1% of 10000 is 10.

if(xRandom(10000)<10)
...
Use my ItemUpgrade.cpp then you can change the chance in ItemUpgrade.lua

Quote:
nFashionCombineChance = 2500
Velmore is offline  
Thanks
1 User
Old 09/05/2013, 05:36   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
With you ItemUpgrade.cpp i have more an lot of more fixes to do then with my own itemupgrade. You are reffering to your topic for the fixes of the itemupgrade however i never had errors in my itemupgrade.

However i have fixed it on an other way that is also good for my.

So i will thank you both and this can be closed.
raventh1984 is offline  
Old 09/05/2013, 12:03   #5


 
Reavern's Avatar
 
elite*gold: 15
Join Date: May 2010
Posts: 5,996
Received Thanks: 2,283
#closed
Reavern is offline  
Closed Thread


Similar Threads Similar Threads
CS Fashion Combination
03/11/2012 - Flyff Private Server - 6 Replies
Hat einer das CS Fashion Combi. system welches auch funktionier? Es muss nicht das von offi sein kann auch ein ähnlich nach gecodetes sein. oder gibt es bereits einen release?
Fashion Combination System
01/15/2012 - Flyff Private Server - 0 Replies
Can someone post the resdata files for fashion combination system pls?
Better success rate
12/05/2011 - Archlord - 78 Replies
WZ just increased the chance, any know the new chance, last time it was 2.5% ▷ Combination success rate increased (Training Server Only) - Fearless Necklace and Swagger Ring combinations
Success Rate: 24% Bad
10/03/2008 - Diablo 2 - 22 Replies
moin, also ich hab meinen bot letzte nacht laufen gelassen. heut früh habi mal nachgesehen was er so getrieben hat. Success Rate: 24% Bad - in 102 Runs hab ihm dann gleich ma zugeschaut was er denn falsch macht. is komisch, aber ich hab das gefühl, dass er die ganzen discs usw. chronisch wiederholt.



All times are GMT +2. The time now is 15:30.


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.