StrinG 0 Posted April 21, 2015 Share Posted April 21, 2015 Hello, I have a problem because I don't know where is a function. maybe char_item.cpp? Source mainline_sg Please, help me @ and where change time getting up ? with 10 s on 1 or 0 s ? Link to comment Share on other sites More sharing options...
Denis 1474 Posted April 21, 2015 Share Posted April 21, 2015 CHARACTER::UseArrow this is what you're looking for. Link to comment Share on other sites More sharing options...
Grudge 5 Posted April 21, 2015 Share Posted April 21, 2015 (edited) Try change this void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount) { int iCount = pkArrow->GetCount(); DWORD dwVnum = pkArrow->GetVnum(); iCount = iCount - MIN(iCount, dwArrowCount); pkArrow->SetCount(iCount); if (iCount == 0) { LPITEM pkNewArrow = FindSpecifyItem(dwVnum); sys_log(0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer(pkNewArrow)); if (pkNewArrow) EquipItem(pkNewArrow); } } to this void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount) { } char_battle.cpp or remove function Edited April 21, 2015 by Grudge 1 Link to comment Share on other sites More sharing options...
Active Member Koray 1998 Posted April 21, 2015 Active Member Share Posted April 21, 2015 in char_battle.cpp Function: CHARACTER::UseArrow Remove or comment this part pkArrow->SetCount(iCount); And find this(not one, multi part) m_me->UseArrow(pkArrow, iUseArrow); Remove or comment this parts 4 Link to comment Share on other sites More sharing options...
StrinG 0 Posted April 21, 2015 Author Share Posted April 21, 2015 Oke, I comment all function : void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount) { //int iCount = pkArrow->GetCount(); //DWORD dwVnum = pkArrow->GetVnum(); //iCount = iCount - MIN(iCount, dwArrowCount); //pkArrow->SetCount(iCount); //if (iCount == 0) //{ //LPITEM pkNewArrow = FindSpecifyItem(dwVnum); //sys_log(0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer(pkNewArrow)); //if (pkNewArrow) //EquipItem(pkNewArrow); //} } All working when I use skill or kill mob arrow don't disappears. Now help me with change getting up where change this time ? 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