Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 21:22

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

Advertisement



LoadPropMover : bIfParts

Discussion on LoadPropMover : bIfParts within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2018
Posts: 50
Received Thanks: 3
LoadPropMover : bIfParts

WorldServer crash

pProperty->dwProbRarity = scanner.GetNumber()

if i change scanner.getnumber to 3 or other number dont crash anymore , someone how know to fix it ?

Code:
BOOL CProject::LoadRarityProp()
{
    CScript s;
    if (!s.Load("RarityItem.inc"))
        return FALSE;

    for (int i = 0; i < 4; i++)
    {
        s.GetToken();
        int nMax = s.GetNumber();
        s.GetToken();    // {
        for (int y = 0; y < nMax; y++)
        {
            int nDestParam = s.GetNumber();
            int nRarity = s.GetNumber();
            //Error("[%d]: nDestParam: %d, nRarity: %d", i, nDestParam, nRarity);
            switch (i)
            {
            case 0:
                m_map_Rarity1.insert(MAP_RARITY1::value_type(nDestParam, nRarity)); break;
            case 1:
                m_map_Rarity2.insert(MAP_RARITY2::value_type(nDestParam, nRarity)); break;
            case 2:
                m_map_Rarity3.insert(MAP_RARITY3::value_type(nDestParam, nRarity)); break;
            case 3:
                m_map_Rarity4.insert(MAP_RARITY4::value_type(nDestParam, nRarity)); break;
            }
        }
        s.GetToken();
    }
    return TRUE;
}
Thx
Tiparaco is offline  
Reply




All times are GMT +1. The time now is 21:23.


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.