Item appraisal drop fix
Posted: Mon May 12, 2008 1:25 pm
Well I haven't tested it yet so it could be possible that it doesnt work perfect or that there is a little error somewhere, but still.
With this change blue items (and the occasional unique in pre evo, like the CF ones) have item appraisal 100% of the time and other items never.
in serverfunctions.cpp, find:
and replace it with
I'm not sure if it works, I'll try it out soon.
With this change blue items (and the occasional unique in pre evo, like the CF ones) have item appraisal 100% of the time and other items never.
in serverfunctions.cpp, find:
- randv = RandNumber( 1, 100 );
- if( randv < 30 ) // 30%
- newdrop->item.stats = rand()%300;
- newdrop->item.appraised = newdrop->item.stats==0?true:false;
and replace it with
- if (newdrop->item.itemtype=2 && (newdrop->item.itemnum>300 && newdrop->item.itemnum<756))
- {
- newdrop->item.appraised = true;
- }
- else if (newdrop->item.itemtype=3 && (newdrop->item.itemnum>199 && newdrop->item.itemnum<656))
- {
- newdrop->item.appraised = true;
- }
- else if (newdrop->item.itemtype=4 && (newdrop->item.itemnum>199 && newdrop->item.itemnum<655))
- {
- newdrop->item.appraised = true;
- }
- else if (newdrop->item.itemtype=5 && (newdrop->item.itemnum>199 && newdrop->item.itemnum<656))
- {
- newdrop->item.appraised = true;
- }
- else if (newdrop->item.itemtype=8 && (newdrop->item.itemnum>491 && newdrop->item.itemnum<994))
- {
- newdrop->item.appraised = true;
- }
- else
- {
- newdrop->item.appraised = false;
- randv = RandNumber( 1, 100 );
- if( randv < 30 ) // 30%
- newdrop->item.stats = rand()%300;
- }
I'm not sure if it works, I'll try it out soon.