It's a minor bug but it's important , when u kill the devil tower boss and get ur reward and try to upgrade ur weapon or anything if u press yes and u haee money less then the cost u will lost the reward .
so here even if u have no money u will not lost the reward
to fix it :
open input_main.cpp
Code:
add :
#include "refine.h"
// find this
if (!item)
{
ch->ClearRefineMode();
return;
}
// a new code block
const TRefineTable * prt = CRefineManager::instance().GetRefineRecipe(item->GetRefineSet());
if (!prt)
{
ch->ClearRefineMode();
return;
}
now search for :
if (ch->GetQuestFlag("deviltower_zone.can_refine"))
replace the whole condition with this :
if (ch->GetQuestFlag("deviltower_zone.can_refine"))
{
if (ch->GetGold() >= prt->cost)
{
ch->DoRefine(item, true);
ch->SetQuestFlag("deviltower_zone.can_refine", 0);
}
else
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("±¹°ي؟، µ·ہج ؛خء·اد°إ³ھ µ·ہ» °،ء®؟أ¼ِ ¾ّ´آ »َب²ہش´د´ظ"));
}






