neversayyes9981 1 Posted July 18, 2019 Share Posted July 18, 2019 Hi guys im searching for a fix that removes only one item from stack: i have 20 experience rings in stack when i use one it use all 20 i want to make it automaticly remove and wear one of them and keep rest in eq. can somewon help me? Link to comment Share on other sites More sharing options...
Honorable Member Mali 42066 Posted July 18, 2019 Honorable Member Share Posted July 18, 2019 52 minutes ago, neversayyes9981 said: Hi guys im searching for a fix that removes only one item from stack: i have 20 experience rings in stack when i use one it use all 20 i want to make it automaticly remove and wear one of them and keep rest in eq. can somewon help me? //Find at char_item.cpp if (true == item->IsEquipped()) { ///Add if (item->GetCount() > 1) { AutoGiveItem(item->GetVnum(), item->GetCount() - 1, -1, false); item->SetCount(1); } For stackable rings are using USE_AFFECT. I think you should use this 1 Link to comment Share on other sites More sharing options...
neversayyes9981 1 Posted July 18, 2019 Author Share Posted July 18, 2019 6 minut temu, Mali61 napisał: //Find at char_item.cpp if (true == item->IsEquipped()) { ///Add if (item->GetCount() > 1) { AutoGiveItem(item->GetVnum(), item->GetCount() - 1); item->SetCount(1); } For stackable rings are using USE_AFFECT. I think you should use this will this work also for wind shoes and thief gloves? Link to comment Share on other sites More sharing options...
Honorable Member Mali 42066 Posted July 18, 2019 Honorable Member Share Posted July 18, 2019 1 hour ago, neversayyes9981 said: will this work also for wind shoes and thief gloves? Code is for: https://youtu.be/KMk2hDFcuhQ and your question:Yes 1 Link to comment Share on other sites More sharing options...
neversayyes9981 1 Posted July 18, 2019 Author Share Posted July 18, 2019 2 minuty temu, Mali61 napisał: I got it worng. He is not looking for this, sorry. Code is for: https://youtu.be/KMk2hDFcuhQ and your question:Yes thank you really much, you dont even know how long i was searching for a fix Link to comment Share on other sites More sharing options...
twetwe 0 Posted March 29 Share Posted March 29 can't remove the item which equipped 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