This doesn't seems right.. wouldn't it make much more sense inside EVENTFUNC(mining_event):
int iPct = GetOrePct(ch);
if (number(1, 100) <= iPct)
{
OreDrop(ch, load->GetRaceNum());
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("䱤¿¡ ¼º°øÇÏ¿´½À´Ï´Ù."));
}
and change it to this:
int iPct = GetOrePct(ch);
LPITEM pick_costume = ch->GetWear(WEAR_COSTUME_WEAPON);
if (pick_costume && pick_costume->GetVnum() == YOUR_ITEM_VNUM)
iPct += 10;
if (number(1, 100) <= iPct)
{
OreDrop(ch, load->GetRaceNum());
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("䱤¿¡ ¼º°øÇÏ¿´½À´Ï´Ù."));
}
EDIT: Nvm, he wants double drop, i thought he wanted to increase the chance of dropping by 10%, i'm sorry
EDIT2: It still doesn't seems right, shouldn't this:
if (number(1, 100) <= 10)
{
dwRawOreVnum = YOUR_ITEM_VNUM_TO_DROP;
}
be:
if (number(1, 100) <= 10)
{
iFractionCount *= 2;
}