[Sammelthread]kleinere sources Releases

09/02/2014 09:46 galetlefrancais#1
[EN]Hello, I make this post for people who want to use srcs tips & tutorial and not help or anything like this, so I think it is really helpful, because srcs tutorial are mixed between tutorial & help.

So, what do you want if a thread of src tutorial are here :awesome: ? Post here your tuts ! :mofo:
09/02/2014 21:17 callmax#2
i think, its still a good idea, so i reported all posts with no tuts / changes for the source

antispam:

if your db core is fucked up every ~third-second time you start it, disable hotbackup

PHP Code:
    int iDisableHotBackup;
    if (
CConfig::instance().GetValue("DISABLE_HOTBACKUP", &iDisableHotBackup))
    {
        if (
iDisableHotBackup)
        {    
            
sys_log(0"CONFIG: DISABLE_HOTBACKUP");
            
g_bHotBackup false;
        }
    } 
its possible that you must uncomment all things they are reffering to "g_bHotBackup"

then you write in conf.txt

DISABLE_HOTBACKUP = 1
09/08/2014 21:40 galetlefrancais#3
Thanks, so I will carry with mine, how to activate ds_drop flag in game to drop needed item (gemstone) for dragonsoul !

You must go in : item_manager.cpp

And then replace :
PHP Code:
    //if (pkChr->GetLevel() >= 30 && (GetDropPerKillPct(50, 100, iDeltaPercent, "ds_drop") >= number(1, iRandRange)))
    //{
    //    const static DWORD dragon_soul_gemstone = 30270;
    //    if ((item = CreateItem(dragon_soul_gemstone, 1, 0, true)))
    //        vec_item.push_back(item);
    //} 
by
PHP Code:
    if (pkChr->GetLevel() >= 30 && (GetDropPerKillPct(50100iDeltaPercent"ds_drop") >= number(1iRandRange)))
    {
        const static 
DWORD dragon_soul_gemstone 30270;
        if ((
item CreateItem(dragon_soul_gemstone10true)))
            
vec_item.push_back(item);
    } 
Compile, and in game, type : /e ds_drop 1

Have a nice day [:)]