Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How can i get that monsters drop zulie??

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 2, 2007
Messages
28
Reaction score
0
hello,,:smilie4:

How can i get that monsters drop zulie?!?!:blink:
Please tell me...:pissed:
 
Last of the OsRose Devs
Loyal Member
Joined
Oct 15, 2006
Messages
2,154
Reaction score
101
Oh crap not this again.....

I've fixed this so many times now.....

You have a stupid line of code in GetDrop() in serverfunctions.cpp

it should look like this
Code:
if(thismon->MonsterDrop->mapdrop->level_max<thismon->MonsterDrop->firstlevel) randv = 100;
comment it out then recompile.
 
Junior Spellweaver
Joined
Apr 30, 2009
Messages
170
Reaction score
28
Oh crap not this again.....

I've fixed this so many times now.....

You have a stupid line of code in GetDrop() in serverfunctions.cpp

it should look like this
Code:
if(thismon->MonsterDrop->mapdrop->level_max<thismon->MonsterDrop->firstlevel) randv = 100;
comment it out then recompile.

thanks
needed too :huh:

Code:
// Build Drop
CDrop* CWorldServer::GetDrop( CMonster* thismon )
{
    CDrop* newdrop = new (nothrow) CDrop; 
    if(newdrop==NULL)
    {
        Log(MSG_WARNING, "Error allocing memory [getdrop]" );
        return NULL;
    }
    newdrop->clientid = GetNewClientID( );
    newdrop->posMap = thismon->Position->Map;
    newdrop->pos = RandInCircle( thismon->Position->current, 3 );
    newdrop->droptime = time(NULL);
    newdrop->owner = thismon->MonsterDrop->firsthit;
    newdrop->thisparty = thismon->thisparty;
    ClearItem(newdrop->item);
    int randv = RandNumber( 1, 100);
//    if(thismon->MonsterDrop->mapdrop->level_max<thismon->MonsterDrop->firstlevel) randv = 100;
    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;
    }
 
Status
Not open for further replies.
Back
Top