solved ~! for all server owner who got a zulie drop problem ;)

Status
Not open for further replies.
Since zuly has no item number it cannot be added to a drops file.

There is only one way to make th server drop zuly and that is to code it.
the code that sets it can be found in "CDrop* CWorldServer::GetDrop( CMonster* thismon )" in ServerFunctions.cpp

just look for a bit of code that looks like this
Code:
if(randv <= 30)//30% zuly [zulies will count as mapdrop]
    {
        if(thismon->MonsterDrop->mapdrop->level_max >= thismon->MonsterDrop->firstlevel)
        {
            newdrop->type = 1; //Drop Zuly
            newdrop->amount = thismon->thisnpc->level * 5 * Config.ZULY_RATE + RandNumber( 1, 10 );
            return  newdrop;
        }
        delete newdrop;
        return NULL;
    }
The random number in "randv" is the thing that determines whether the drop is a zuly drop or not. In this code, if the value is lower than 30 then it becomes a zuly drop and returns with the amount and "newdrop->type" set to 1
That will result in a zuly drop which is generated in 'battle.cpp" "DoNormalAttack"

Personally I don't even use the regular drops code. I scrapped it and replaced the whole damn lot with a much more efficient and easier to edit system.
 
Status
Not open for further replies.
Back