Jump to content

DevilTower Minor Bug Fix


MrLibya

Recommended Posts

  • Premium

Hello

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

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("±¹°ي؟، µ·ہج ؛خء·اد°إ³ھ µ·ہ» °،ء®؟أ¼ِ ¾ّ´آ »َب²ہش´د´ظ"));
                }

 


sry 4 my english
 

 

  • Metin2 Dev 1
  • Love 4

If you're going to do something, then do it right.

Link to comment
Share on other sites

  • 5 months later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.