Hello devs,May i ask if where i can find the code that generate the item after the player press the button "Generate" in the source code.? because i need to modify the code so that players can craft upgraded weapon and upgrade will not vanish instead it will move into new crafted item. i scan some code and i found this ItemMixWindow.cpp but i don't think so this is the right code.
ItemMixWindow.cpp
Code:VOID CItemMixWindow::TranslateUIMessage(UIGUID ControlID, DWORD dwMsg) { switch (ControlID) { case ITEM_COMPOUND_GENERATE_BUTTON: if (CHECK_KEYFOCUSED(dwMsg) || CHECK_MOUSEIN_LBUPLIKE(dwMsg)) { if (!m_bOK) { DoItemMix(); } SetMessageEx(dwMsg &= ~UIMSG_KEY_FOCUSED); } break; } CUIWindowEx::TranslateUIMessage(ControlID, dwMsg); } VOID CItemMixWindow::DoItemMix() { GLCHARLOGIC & ref_CharData = GLGaeaClient::GetInstance().GetCharacterLogic(); LONGLONG lnGold = ref_CharData.m_lnMoney; DWORD dwPrice = GLGaeaClient::GetInstance().GetCharacter() - > GetItemMixMoney(); if (lnGold >= (LONGLONG) dwPrice) m_bIsOK = true; if (dwPrice == UINT_MAX) { CInnerInterface::GetInstance().PrintMsgText(NS_UITEXTCOLOR::DISABLE, ID2GAMEINTEXT("EMITEM_MIX_FB_NOMIX")); SetItemMixResult(ID2GAMEINTEXT("EMITEM_MIX_FB_NOMIX")); return; } if (dwPrice > 0) { CString strTemp; strTemp.Format(ID2GAMEINTEXT("ITEM_MIX_MONEY_OKQUESTION"), dwPrice); DoModal(strTemp, MODAL_QUESTION, YESNO, MODAL_ITEMMIX_OKQUESTION); } else { DoModal(ID2GAMEINTEXT("ITEM_MIX_OKQUESTION"), MODAL_QUESTION, YESNO, MODAL_ITEMMIX_OKQUESTION); } }



Reply With Quote

Seems that no one can help me in this problem so
