xxx30xxx 0 Posted January 7, 2017 Share Posted January 7, 2017 Hello dev i need your help i want to make the blacksmith on the demon tower , when you upgrade your items he will not break it when an item fails. it will be at the same(+) Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 8, 2017 Author Share Posted January 8, 2017 up Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 9, 2017 Author Share Posted January 9, 2017 up Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 10, 2017 Author Share Posted January 10, 2017 up Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 12, 2017 Author Share Posted January 12, 2017 up Link to comment Share on other sites More sharing options...
Active Member Exygo 1097 Posted January 12, 2017 Active Member Share Posted January 12, 2017 It's not hard but there's a lot of code, it's a mess, takes some time to find the correct part but you can start by searching the vnum 20074(as I remmember) https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted January 12, 2017 Premium Share Posted January 12, 2017 char_item.cpp Inside: void CHARACTER::ReceiveItem (LPCHARACTER from, LPITEM item) Look for: case DEVILTOWER_BLACKSMITH_WEAPON_MOB: case DEVILTOWER_BLACKSMITH_ARMOR_MOB: case DEVILTOWER_BLACKSMITH_ACCESSORY_MOB: if (item->GetRefinedVnum() != 0 && item->GetRefineSet() != 0 && item->GetRefineSet() < 500) { from->SetRefineNPC (this); from->RefineInformation (item->GetCell(), REFINE_TYPE_MONEY_ONLY); } else { from->ChatPacket (CHAT_TYPE_INFO, LC_TEXT ("ÀÌ ¾ÆÀÌÅÛÀº °³·®ÇÒ ¼ö ¾ø½À´Ï´Ù.")); } break; change REFINE_TYPE_MONEY_ONLY into REFINE_TYPE_MUSIN I dont remember if it was musin, i cant test it now. Check item_lenght.h for all types or: REFINE_TYPE_NORMAL REFINE_TYPE_SCROLL REFINE_TYPE_HYUNIRON REFINE_TYPE_MONEY_ONLY REFINE_TYPE_MUSIN REFINE_TYPE_BDRAGON 2 Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 12, 2017 Author Share Posted January 12, 2017 Anyone can give me explain do i want him need just Money Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted January 12, 2017 Premium Share Posted January 12, 2017 Read above post. Recompile source. Upload game. Test if works. 2 Link to comment Share on other sites More sharing options...
Premium North 1191 Posted January 13, 2017 Premium Share Posted January 13, 2017 13 hours ago, tierrilopes said: Read above post. Recompile source. Upload game. Test if works. I think the best solution is to modify the DoRefine linked to that because musin uses DoRefineWithScrolls else { // 실패! 모든 아이템이 사라짐. DBManager::instance().SendMoneyLog(MONEY_LOG_REFINE, item->GetVnum(), -cost); NotifyRefineFail(this, item, IsRefineThroughGuild() ? "GUILD" : "POWER"); item->AttrLog(); ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (REFINE FAIL)"); //PointChange(POINT_GOLD, -cost); PayRefineFee(cost); } return true; } Here is the part you will need to add a check, like if mapindex = deviltower then { DBManager::instance().SendMoneyLog(MONEY_LOG_REFINE, item->GetVnum(), -cost); NotifyRefineFail(this, item, IsRefineThroughGuild() ? "GUILD" : "POWER"); item->AttrLog(); PayRefineFee(cost); } else { // 실패! 모든 아이템이 사라짐. DBManager::instance().SendMoneyLog(MONEY_LOG_REFINE, item->GetVnum(), -cost); NotifyRefineFail(this, item, IsRefineThroughGuild() ? "GUILD" : "POWER"); item->AttrLog(); ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (REFINE FAIL)"); //PointChange(POINT_GOLD, -cost); PayRefineFee(cost); } This is not tested, try on your own If im wrong let me understand it Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 13, 2017 Author Share Posted January 13, 2017 when i upgrade item nothing happen 14 hours ago, tierrilopes said: Read above post. Recompile source. Upload game. Test if works. Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted January 13, 2017 Premium Share Posted January 13, 2017 Test how flow said I used only musin but prob changed something else, i cant acess that test sv in the next few days. Link to comment Share on other sites More sharing options...
xxx30xxx 0 Posted January 15, 2017 Author Share Posted January 15, 2017 up Link to comment Share on other sites More sharing options...
Premium North 1191 Posted January 16, 2017 Premium Share Posted January 16, 2017 On 15/1/2017 at 9:16 AM, xxx30xxx said: up We gave you the answers you need to do that, try reading and understanding them again. No one is gonna show up and give you free code to copy - paste into your source, you will not learn nothing from it Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now